diff options
author | Cui, Lili <lili.cui@intel.com> | 2024-04-23 15:24:42 +0800 |
---|---|---|
committer | Cui, Lili <lili.cui@intel.com> | 2024-05-06 18:33:45 +0800 |
commit | c8866e3ec5e23b394d1258d623ff337abc4cd41d (patch) | |
tree | 26fabf166a0ff289e8627f1cf0d55cf28a76195c /gas/config/tc-i386.c | |
parent | 0820c9f5fc13047b4b25361d6d3bb0ceb2a611d8 (diff) | |
download | binutils-c8866e3ec5e23b394d1258d623ff337abc4cd41d.zip binutils-c8866e3ec5e23b394d1258d623ff337abc4cd41d.tar.gz binutils-c8866e3ec5e23b394d1258d623ff337abc4cd41d.tar.bz2 |
x86: Drop using extension_opcode to encode vvvv register
gas/ChangeLog:
* config/tc-i386.c (build_modrm_byte): Dropped the use of
extension_opcode to encode the vvvv register.
* testsuite/gas/i386/x86-64-sse2avx.d: Added new testcases.
* testsuite/gas/i386/x86-64-sse2avx.s: Diito.
opcodes/ChangeLog:
* i386-opc.tbl: Added DstVVVV to some extension_opcode instructions.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 9d50752..339e849 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -10463,12 +10463,9 @@ build_modrm_byte (void) break; } - if (i.tm.extension_opcode != None) - { - if (dest != source) - v = dest; - dest = ~0; - } + if (dest == source) + dest = ~0; + gas_assert (source < dest); if (v < MAX_OPERANDS) |