]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Don't display eiz with no scale
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Jul 2020 13:49:45 +0000 (06:49 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Jul 2020 14:18:49 +0000 (07:18 -0700)
commitae310391c7d68c50778b3dad73678ee8f972f1f1
tree57fa62acece30c532b7b5b9dc7cd897144853832
parentb3239a5e9ee881c390ef688ba7948f652dd8ae71
x86: Don't display eiz with no scale

Change

67 48 8b 1c 25 ef cd ab 89  mov    0x89abcdef(,%eiz,1),%rbx

to

67 48 8b 1c 25 ef cd ab 89  mov    0x89abcdef,%rbx

in AT&T syntax and

67 48 8b 1c 25 ef cd ab 89  mov    rbx,QWORD PTR [eiz*1+0x89abcdef]

to

67 48 8b 1c 25 ef cd ab 89  mov    rbx,QWORD PTR ds:0x89abcdef

in Intel syntax.

gas/

PR gas/26237
* testsuite/gas/i386/evex-no-scale-64.d: Updated.
* testsuite/gas/i386/addr32.d: Likewise.
* testsuite/gas/i386/x86-64-addr32-intel.d: Likewise.
* testsuite/gas/i386/x86-64-addr32.d: Likewise.

opcodes/

PR gas/26237
* i386-dis.c (OP_E_memory): Don't display eiz with no scale
without base nor index registers.

(cherry picked from commit 04c662e2b66bedd050f97adec19afe0fcfce9ea7)
gas/ChangeLog
gas/testsuite/gas/i386/evex-no-scale-64.d
gas/testsuite/gas/i386/x86-64-addr32-intel.d
gas/testsuite/gas/i386/x86-64-addr32.d
opcodes/ChangeLog
opcodes/i386-dis.c