]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: correct {,V}PEXTR{D,Q} optimization
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2024 09:20:37 +0000 (11:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2024 09:20:37 +0000 (11:20 +0200)
A possible relocation associated with a memory operand also needs
moving.

gas/config/tc-i386.c

index dcb660b005da68b420252d1adcd2c95edbd4ea48..23d75d7644b0ca1326f39af4b3721a890f39cae6 100644 (file)
@@ -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;