From nobody Mon Nov 23 04:34:31 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1794250657; cv=none; d=zohomail.com; s=zohoarc; b=CwFmmimREHs83xZd7f/64UJMaDqumxOmU255qHLjBfirrda1DZo4kh8n1xgFrMqy2MDi+Um2kb58EX0tOY9e62vIGFyzDaRQ6eMNsTQwta3VWGP34a+GxF3duryKkq4zVdQjkuCAZfAC79ftkNlfUjbvQoKumkGN3kbdzwTGgEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794250657; h=Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=/hNje6YUHdnu3aRo8fA0Fhrbju+nZwVH0sRanEkzr14=; b=Z3341wiOEnfe0LkhlUbStpYaJtf+XpQnQGnL9ZhODiuMYNGZO6Agy6Z+VsE/t284CaNaxP4lG7zP2GZARXezGyzFC9xDY2g2gVFrveHImkHlPTW5Mnf2RT6N9UDJWg9h5Qoo87TEAD7nhk/rCphu7wxmWrZFL/rOP1CJjQ398o0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179425065761849.74088534716793; Mon, 9 Nov 2026 10:57:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQUYY-0007nk-Jl; Mon, 09 Nov 2026 13:57:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQUYH-0007Tu-79 for qemu-devel@nongnu.org; Mon, 09 Nov 2026 13:57:09 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQUYF-00067P-Hx for qemu-devel@nongnu.org; Mon, 09 Nov 2026 13:57:08 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-195-bzr-1n4nMwe13W2vP3WPbg-1; Mon, 09 Nov 2026 13:57:05 -0500 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 92C711955F01 for ; Mon, 9 Nov 2026 18:57:04 +0000 (UTC) Received: from pbonzini-thinkpadx1carbon6th.rmtit.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E3F3B30001A2 for ; Mon, 9 Nov 2026 18:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1794250626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/hNje6YUHdnu3aRo8fA0Fhrbju+nZwVH0sRanEkzr14=; b=IyTMCC9N7eHSvsaUTU/jvwh6piOr26FrlW+3P4e5gxOHaLr1N9711+UAmokbsBl0H9jgab vZTyRLGjExPNpOAOAJ4a/nBG8b2Euqj7kwAQCXFbi+fWHHGCANzdwnrNeXs6i3N6NbFwgG Scom4jmEEqHHRmDIlrOfHBCG6BUh2P0= X-MC-Unique: bzr-1n4nMwe13W2vP3WPbg-1 X-Mimecast-MFC-AGG-ID: bzr-1n4nMwe13W2vP3WPbg_1794250624 From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] target/i386/tcg: remove unused operand sizes Date: Mon, 9 Nov 2026 19:57:02 +0100 Message-ID: <20261109185702.1068916-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1794250658196158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson --- target/i386/tcg/decode-new.h | 4 ---- target/i386/tcg/decode-new.c.inc | 10 ++++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/target/i386/tcg/decode-new.h b/target/i386/tcg/decode-new.h index 7f7ed3b6cf4..72ab6473e4a 100644 --- a/target/i386/tcg/decode-new.h +++ b/target/i386/tcg/decode-new.h @@ -73,15 +73,11 @@ typedef enum X86OpSize { X86_SIZE_d, /* 32-bit */ X86_SIZE_dq, /* SSE/AVX 128-bit */ X86_SIZE_p, /* Far pointer */ - X86_SIZE_pd, /* SSE/AVX packed double precision */ - X86_SIZE_pi, /* MMX */ - X86_SIZE_ps, /* SSE/AVX packed single precision */ X86_SIZE_q, /* 64-bit */ X86_SIZE_qq, /* AVX 256-bit */ X86_SIZE_s, /* Descriptor */ X86_SIZE_sd, /* SSE/AVX scalar double precision */ X86_SIZE_ss, /* SSE/AVX scalar single precision */ - X86_SIZE_si, /* 32-bit GPR */ X86_SIZE_v, /* 16/32/64-bit, based on operand size */ X86_SIZE_w, /* 16-bit */ X86_SIZE_x, /* 128/256-bit, based on operand size */ diff --git a/target/i386/tcg/decode-new.c.inc b/target/i386/tcg/decode-new.= c.inc index 731434ff50b..19c76a12009 100644 --- a/target/i386/tcg/decode-new.c.inc +++ b/target/i386/tcg/decode-new.c.inc @@ -73,8 +73,8 @@ * the V/U/H/W types to P/N/P/Q if there is no prefix, as well as changing * "x" to "q" if there is no prefix. * - * In addition, the ss/ps/sd/pd types are sometimes mushed together as "x" - * if the difference is expressed via prefixes. Individual instructions + * In addition, the ss/sd types are sometimes mushed together as "x" + * if the difference is expressed via prefixes; individual instructions * are separated by prefix in the generator functions. * * There is a custom size "xh" used to address half of a SSE/AVX operand. @@ -82,6 +82,8 @@ * for 256-bit AVX operands, etc. It is used for conversion operations * such as VCVTPH2PS or VCVTSS2SD. * + * pi/ps/pd are simply written as "q" or "x". + * * There are a couple cases in which instructions (e.g. MOVD) write the * whole XMM or MM register but are established incorrectly in the manual * as "d" or "q". These have to be fixed for the decoder to work correctl= y. @@ -2448,7 +2450,6 @@ static bool decode_op_size(DisasContext *s, X86OpEntr= y *e, X86OpSize size, MemOp *ot =3D s->dflag; return true; =20 - case X86_SIZE_pi: /* MMX */ case X86_SIZE_q: /* 64-bit */ case X86_SIZE_sd: /* SSE/AVX scalar double precision */ *ot =3D MO_64; @@ -2497,9 +2498,6 @@ static bool decode_op_size(DisasContext *s, X86OpEntr= y *e, X86OpSize size, MemOp *ot =3D MO_64; return true; } - /* fall through */ - case X86_SIZE_ps: /* SSE/AVX packed single precision */ - case X86_SIZE_pd: /* SSE/AVX packed double precision */ *ot =3D s->vex_l ? MO_256 : MO_128; return true; =20 --=20 2.56.0