From: Jan Beulich Date: Fri, 27 Sep 2024 09:20:37 +0000 (+0200) Subject: x86: correct {,V}PEXTR{D,Q} optimization X-Git-Tag: gdb-16-branchpoint~789 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fcb4bfcd40d8d35ac76555a64cf4d6fcc07d0b8;p=thirdparty%2Fbinutils-gdb.git x86: correct {,V}PEXTR{D,Q} optimization A possible relocation associated with a memory operand also needs moving. --- diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index dcb660b005d..23d75d7644b 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5545,6 +5545,7 @@ optimize_encoding (void) i.op[1].regs = i.op[2].regs; i.types[1] = i.types[2]; i.flags[1] = i.flags[2]; + i.reloc[1] = i.reloc[2]; i.tm.operand_types[1] = i.tm.operand_types[2]; i.operands = 2;