x86-64: Display eiz for address with the addr32 prefix
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 14 Aug 2018 16:55:43 +0000 (09:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 14 Aug 2018 16:56:00 +0000 (09:56 -0700)
commit1bc60e562458b1e1c25be808a62adb1cb6c20ff0
tree921b96f2c8781d43d529cf330c33f046b979906f
parent26fb3983d7062c6f6bc43028ae2074cc29d22c7e
x86-64: Display eiz for address with the addr32 prefix

In 64-bit mode, display eiz for address with the addr32 prefix and without
base nor index registers.  For

mov -0xccddef(,%eiz,), %rax

disassembler now displays:

67 48 8b 04 25 11 22 33 ff  mov -0xccddef(,%eiz,1),%rax

instead of

67 48 8b 04 25 11 22 33 ff  addr32 mov 0xffffffffff332211,%rax

gas/

* testsuite/gas/i386/evex-no-scale-64.d: Updated.
* testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
* testsuite/gas/i386/x86-64-addr32.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-addr32-intel.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-addr32.d: Likewise.
* testsuite/gas/i386/x86-64-addr32.s: Add %eiz tests.

opcodes/

* i386-dis.c (OP_E_memory): In 64-bit mode, display eiz for
address with the addr32 prefix and without base nor index
registers.
gas/ChangeLog
gas/testsuite/gas/i386/evex-no-scale-64.d
gas/testsuite/gas/i386/ilp32/x86-64-addr32-intel.d
gas/testsuite/gas/i386/ilp32/x86-64-addr32.d
gas/testsuite/gas/i386/x86-64-addr32-intel.d
gas/testsuite/gas/i386/x86-64-addr32.d
gas/testsuite/gas/i386/x86-64-addr32.s
opcodes/ChangeLog
opcodes/i386-dis.c