diff options
author | Cui, Lili <lili.cui@intel.com> | 2023-12-13 06:07:36 +0000 |
---|---|---|
committer | Cui, Lili <lili.cui@intel.com> | 2023-12-13 06:07:36 +0000 |
commit | b70a487d5945b13e5ab503be4fc37b964819ec0e (patch) | |
tree | 71639fe34bdcc9616a9816a7a3fdecc5970ea1b6 /opcodes | |
parent | f0a4cb15c3fea691388dbce15f48b7485f1d40f9 (diff) | |
download | gdb-b70a487d5945b13e5ab503be4fc37b964819ec0e.zip gdb-b70a487d5945b13e5ab503be4fc37b964819ec0e.tar.gz gdb-b70a487d5945b13e5ab503be4fc37b964819ec0e.tar.bz2 |
Make const_1_mode print $1 in AT&T syntax
Make const_1_mode print $1 in AT&T syntax, otherwise
there will be correctness issues when it is extended
to support APX NDD,
gas/ChangeLog:
* testsuite/gas/i386/intel.d: Adjust testcase.
* testsuite/gas/i386/lfence-load.d: Ditto.
* testsuite/gas/i386/noreg16-data32.d: Ditto.
* testsuite/gas/i386/noreg16.d: Ditto.
* testsuite/gas/i386/noreg32-data16.d: Ditto.
* testsuite/gas/i386/noreg32.d: Ditto.
* testsuite/gas/i386/noreg64-data16.d: Ditto.
* testsuite/gas/i386/noreg64-rex64.d: Ditto.
* testsuite/gas/i386/noreg64.d: Ditto.
* testsuite/gas/i386/opcode-suffix.d: Ditto.
* testsuite/gas/i386/opcode.d: Ditto.
* testsuite/gas/i386/x86-64-lfence-load.d: Ditto.
* testsuite/gas/i386/x86-64-opcode.d: Ditto.
opcodes/ChangeLog:
* i386-dis.c (OP_I): Make const_1_mode print $1 in AT&T syntax.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/i386-dis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 2e2043d..e432b61 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -12090,6 +12090,8 @@ OP_I (instr_info *ins, int bytemode, int sizeflag) case const_1_mode: if (ins->intel_syntax) oappend (ins, "1"); + else + oappend (ins, "$1"); return true; default: oappend (ins, INTERNAL_DISASSEMBLER_ERROR); |