From 0fcb4bfcd40d8d35ac76555a64cf4d6fcc07d0b8 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 27 Sep 2024 11:20:37 +0200 Subject: [PATCH] x86: correct {,V}PEXTR{D,Q} optimization A possible relocation associated with a memory operand also needs moving. --- gas/config/tc-i386.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5