i386: Correct adcx suffix in disassembler
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jan 2024 19:58:53 +0000 (11:58 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jan 2024 19:58:53 +0000 (11:58 -0800)
commitf322084c7c842fbfd8c3291ff3f8d114173b4674
tree43d0859a32a401ae413e792d549a0a0f42e6461f
parentf6c714d65b7296b466089f7d0d0270a12d51742f
i386: Correct adcx suffix in disassembler

Since 0x66 is the opcode prefix for adcx, it is wrong to use the 'S'
prefix:

  'S' => print 'w', 'l' or 'q' if suffix_always is true

on adcx.  Add

  'L' => print 'l' or 'q' if suffix_always is true

replace S with L on adcx and adox.

gas/

PR binutils/31219
* testsuite/gas/i386/suffix.d: Updated.
* testsuite/gas/i386/x86-64-suffix.d: Likewise.
* testsuite/gas/i386/suffix.s: Add tests for adcx and adox.
* testsuite/gas/i386/x86-64-suffix.s: Likewise.

opcodes/

PR binutils/31219
* i386-dis.c: Add the 'L' suffix.
(prefix_table): Replace S with L on adcx and adox.
(putop): Handle the 'L' suffix.
gas/testsuite/gas/i386/suffix.d
gas/testsuite/gas/i386/suffix.s
gas/testsuite/gas/i386/x86-64-suffix.d
gas/testsuite/gas/i386/x86-64-suffix.s
opcodes/i386-dis.c