diff options
author | Cui, Lili <lili.cui@intel.com> | 2023-12-13 06:04:15 +0000 |
---|---|---|
committer | Cui, Lili <lili.cui@intel.com> | 2023-12-13 06:04:15 +0000 |
commit | f0a4cb15c3fea691388dbce15f48b7485f1d40f9 (patch) | |
tree | e79dafec638ede12b192af3bf35ba24d25d511d8 | |
parent | b05f7f798585b225481051bb02b337daa94ad072 (diff) | |
download | gdb-f0a4cb15c3fea691388dbce15f48b7485f1d40f9.zip gdb-f0a4cb15c3fea691388dbce15f48b7485f1d40f9.tar.gz gdb-f0a4cb15c3fea691388dbce15f48b7485f1d40f9.tar.bz2 |
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).
-rw-r--r-- | gas/config/tc-i386.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 4f3864f..3f1b39b 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; } |