From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id 852A73858D34; Thu, 28 Mar 2024 10:51:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 852A73858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711623071; bh=PjT+WI4S8zBRpeLbwJn+4ZotnoZbOXMG7V3fpX9v++s=; h=From:To:Subject:Date:From; b=lif3DKahaHUK8cWVSMuzIzZNLJqxFjrz/tCgrlbdvRtykLiFtjD1MbhP5S1hiARP+ eBsR6gsBIK3F/+k3IsONPvN9+kiUvP2jawbS6ZoJdjZQUiP0MFzrNEnpNdYcLrKmxm ltjsdEWyGt16wc9Ynj1svjrxEBYWg/sKxshtAmrw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: binutils-cvs@sourceware.org Subject: [binutils-gdb] x86: templatize RAO-INT insns X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: b38b161e54fc5213343b0f5b160e4aa55e15b148 X-Git-Newrev: 5fc0b1f79fba21cbaf31c197d279773a00a63ef0 Message-Id: <20240328105111.852A73858D34@sourceware.org> Date: Thu, 28 Mar 2024 10:51:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D5fc0b1f79fba= 21cbaf31c197d279773a00a63ef0 commit 5fc0b1f79fba21cbaf31c197d279773a00a63ef0 Author: Jan Beulich Date: Thu Mar 28 11:50:27 2024 +0100 x86: templatize RAO-INT insns =20 It's only four of them, but still better to reduce redundancy. Diff: --- opcodes/i386-opc.tbl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/opcodes/i386-opc.tbl b/opcodes/i386-opc.tbl index 493afb70798..8aeb316b96b 100644 --- a/opcodes/i386-opc.tbl +++ b/opcodes/i386-opc.tbl @@ -3388,14 +3388,10 @@ wrmsrlist, 0xf30f01c6, MSRLIST, NoSuf, {} =20 // RAO-INT instructions. =20 -aadd, 0xf38fc, RAO_INT, Modrm|IgnoreSize|CheckOperandSize|NoSuf, { Reg32|R= eg64, Dword|Qword|Unspecified|BaseIndex } -aadd, 0xfc, RAO_INT&APX_F, Modrm|CheckOperandSize|NoSuf|EVexMap4, { Reg32|= Reg64, Dword|Qword|Unspecified|BaseIndex } -aand, 0x660f38fc, RAO_INT, Modrm|IgnoreSize|CheckOperandSize|NoSuf, { Reg3= 2|Reg64, Dword|Qword|Unspecified|BaseIndex } -aand, 0x66fc, RAO_INT&APX_F, Modrm|CheckOperandSize|NoSuf|EVexMap4, { Reg3= 2|Reg64, Dword|Qword|Unspecified|BaseIndex } -aor, 0xf20f38fc, RAO_INT, Modrm|IgnoreSize|CheckOperandSize|NoSuf, { Reg32= |Reg64, Dword|Qword|Unspecified|BaseIndex } -aor, 0xf2fc, RAO_INT&APX_F, Modrm|CheckOperandSize|NoSuf|EVexMap4, { Reg32= |Reg64, Dword|Qword|Unspecified|BaseIndex } -axor, 0xf30f38fc, RAO_INT, Modrm|IgnoreSize|CheckOperandSize|NoSuf, { Reg3= 2|Reg64, Dword|Qword|Unspecified|BaseIndex } -axor, 0xf3fc, RAO_INT&APX_F, Modrm|CheckOperandSize|NoSuf|EVexMap4, { Reg3= 2|Reg64, Dword|Qword|Unspecified|BaseIndex } + +a, 0x0f38fc, RAO_INT, Modrm|IgnoreSize|CheckOperandSize|NoSu= f, { Reg32|Reg64, Dword|Qword|Unspecified|BaseIndex } +a, 0xfc, RAO_INT&APX_F, Modrm|CheckOperandSize|NoSuf|EVexMap= 4, { Reg32|Reg64, Dword|Qword|Unspecified|BaseIndex } + =20 // RAO-INT instructions end.