aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-02-03 08:21:11 +0100
committerJan Beulich <jbeulich@suse.com>2023-02-03 08:21:11 +0100
commit691963912563534ed4eb4dd5d1b4349e3cd74ece (patch)
tree327af84b4a475da43330fb8a074d63b68071a900 /gas
parent0655669b86e8651244187561b2d29f49c2a4646b (diff)
downloadgdb-691963912563534ed4eb4dd5d1b4349e3cd74ece.zip
gdb-691963912563534ed4eb4dd5d1b4349e3cd74ece.tar.gz
gdb-691963912563534ed4eb4dd5d1b4349e3cd74ece.tar.bz2
x86-64: respect MOVABS when choosing alternative encodings
The alternative encoding is valid for MOV, but there's no such thing for MOVABS.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 438180c..235deb8 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -6888,7 +6888,8 @@ match_template (char mnem_suffix)
continue;
if (t->base_opcode == MOV_AX_DISP32
- && t->opcode_modifier.opcodespace == SPACE_BASE)
+ && t->opcode_modifier.opcodespace == SPACE_BASE
+ && t->mnem_off != MN_movabs)
{
/* Force 0x8b encoding for "mov foo@GOT, %eax". */
if (i.reloc[0] == BFD_RELOC_386_GOT32)