[PATCH] Clean reg class and base_reg for input output operand (%dx).
Cui, Lili
lili.cui@intel.com
Wed Dec 6 13:12:28 GMT 2023
This patch is to clean reg class and base_reg for input output operand (%dx).
For special processing of input and output operands (%dx),
the state of some variables needs to be cleared.
gas/ChangeLog:
* config/tc-i386.c (i386_att_operand): Clean reg class and
i.base_reg for input output operand (%dx).
---
gas/config/tc-i386.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 4f3864f2ba7..ffb2f14c4ec 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.types[this_operand].bitfield.class = 0;
+ i.base_reg = NULL;
i.input_output_operand = true;
return 1;
}
--
2.25.1
More information about the Binutils
mailing list