From: Cui, Lili Date: Wed, 13 Dec 2023 06:04:15 +0000 (+0000) Subject: Clean base_reg and assign correct values to regs for input_output_operand (%dx). X-Git-Tag: binutils-2_42~614 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0a4cb15c3fea691388dbce15f48b7485f1d40f9;p=thirdparty%2Fbinutils-gdb.git Clean base_reg and assign correct values to regs for input_output_operand (%dx). For special processing of input and output operands (%dx), the state of some variables needs to be cleaned. gas/ChangeLog: * config/tc-i386.c (i386_att_operand): Assign values to regs and clean i.base_reg for input output operand (%dx). --- diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 4f3864f2ba7..3f1b39baddc 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -13016,6 +13016,8 @@ i386_att_operand (char *operand_string) && !operand_type_check (i.types[this_operand], disp)) { i.types[this_operand] = i.base_reg->reg_type; + i.op[this_operand].regs = i.base_reg; + i.base_reg = NULL; i.input_output_operand = true; return 1; }