x86: avoid attaching suffixes to unambiguous insns
authorJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2020 06:53:55 +0000 (08:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2020 06:53:55 +0000 (08:53 +0200)
commit36938cabf0efcb053d1585e8580a4b3db438ca4e
treee7193f8c5b4f0cc83b6a76a4d5a35f0b86058abd
parenta8a48c756c0da3a49008662e14ae582764ddd0bb
x86: avoid attaching suffixes to unambiguous insns

"Unambiguous" is is in particular taking as reference the assembler,
which also accepts certain insns - despite them allowing for varying
operand size, and hence in principle being ambiguous - without any
suffix. For example, from the very beginning of the life of x86-64 I had
trouble understanding why a plain and simple RET had to be printed as
RETQ. In case someone really used the 16-bit form, RETW disambiguates
the two quite fine.
196 files changed:
gas/ChangeLog
gas/testsuite/gas/i386/disassem.d
gas/testsuite/gas/i386/ilp32/x86-64-branch.d
gas/testsuite/gas/i386/intel.d
gas/testsuite/gas/i386/jump16.d
gas/testsuite/gas/i386/lfence-load.d
gas/testsuite/gas/i386/noreg16.d
gas/testsuite/gas/i386/noreg32.d
gas/testsuite/gas/i386/noreg64-rex64.d
gas/testsuite/gas/i386/noreg64.d
gas/testsuite/gas/i386/notrack.d
gas/testsuite/gas/i386/opcode.d
gas/testsuite/gas/i386/solaris/x86-64-branch-2.d
gas/testsuite/gas/i386/solaris/x86-64-jump.d
gas/testsuite/gas/i386/solaris/x86-64-mpx-branch-1.d
gas/testsuite/gas/i386/solaris/x86-64-nop-3.d
gas/testsuite/gas/i386/solaris/x86-64-nop-4.d
gas/testsuite/gas/i386/solaris/x86-64-nop-5.d
gas/testsuite/gas/i386/solaris/x86-64-relax-2.d
gas/testsuite/gas/i386/solaris/x86-64-relax-3.d
gas/testsuite/gas/i386/x86-64-align-branch-1a.d
gas/testsuite/gas/i386/x86-64-align-branch-1b.d
gas/testsuite/gas/i386/x86-64-align-branch-1c.d
gas/testsuite/gas/i386/x86-64-align-branch-1d.d
gas/testsuite/gas/i386/x86-64-align-branch-1e.d
gas/testsuite/gas/i386/x86-64-align-branch-1f.d
gas/testsuite/gas/i386/x86-64-align-branch-1g.d
gas/testsuite/gas/i386/x86-64-align-branch-1h.d
gas/testsuite/gas/i386/x86-64-align-branch-1i.d
gas/testsuite/gas/i386/x86-64-align-branch-2a.d
gas/testsuite/gas/i386/x86-64-align-branch-2b.d
gas/testsuite/gas/i386/x86-64-align-branch-2c.d
gas/testsuite/gas/i386/x86-64-align-branch-3.d
gas/testsuite/gas/i386/x86-64-align-branch-4a.d
gas/testsuite/gas/i386/x86-64-align-branch-4b.d
gas/testsuite/gas/i386/x86-64-align-branch-5.d
gas/testsuite/gas/i386/x86-64-align-branch-6.d
gas/testsuite/gas/i386/x86-64-branch-2.d
gas/testsuite/gas/i386/x86-64-branch-3.d
gas/testsuite/gas/i386/x86-64-branch.d
gas/testsuite/gas/i386/x86-64-disassem.d
gas/testsuite/gas/i386/x86-64-disp32.d
gas/testsuite/gas/i386/x86-64-gotpcrel-no-relax.d
gas/testsuite/gas/i386/x86-64-gotpcrel.d
gas/testsuite/gas/i386/x86-64-ifunc.d
gas/testsuite/gas/i386/x86-64-jump.d
gas/testsuite/gas/i386/x86-64-lfence-byte.d
gas/testsuite/gas/i386/x86-64-lfence-indbr-a.d
gas/testsuite/gas/i386/x86-64-lfence-indbr-b.d
gas/testsuite/gas/i386/x86-64-lfence-indbr-c.d
gas/testsuite/gas/i386/x86-64-lfence-load.d
gas/testsuite/gas/i386/x86-64-lfence-ret-a.d
gas/testsuite/gas/i386/x86-64-lfence-ret-b.d
gas/testsuite/gas/i386/x86-64-lfence-ret-c.d
gas/testsuite/gas/i386/x86-64-lfence-ret-d.d
gas/testsuite/gas/i386/x86-64-lfence-ret-e.d
gas/testsuite/gas/i386/x86-64-mpx-add-bnd-prefix.d
gas/testsuite/gas/i386/x86-64-mpx-branch-1.d
gas/testsuite/gas/i386/x86-64-mpx.d
gas/testsuite/gas/i386/x86-64-nop-3.d
gas/testsuite/gas/i386/x86-64-nop-4.d
gas/testsuite/gas/i386/x86-64-nop-5.d
gas/testsuite/gas/i386/x86-64-nops-7.d
gas/testsuite/gas/i386/x86-64-notrack.d
gas/testsuite/gas/i386/x86-64-opcode.d
gas/testsuite/gas/i386/x86-64-relax-2.d
gas/testsuite/gas/i386/x86-64-relax-3.d
gas/testsuite/gas/i386/x86-64-relax-4.d
gas/testsuite/gas/i386/x86-64-rtm.d
gas/testsuite/gas/i386/x86-64-stack.d
gas/testsuite/gas/i386/x86-64-unique.d
gas/testsuite/gas/i386/x86_64-intel.d
ld/ChangeLog
ld/testsuite/ld-i386/ibt-plt-1.d
ld/testsuite/ld-i386/ibt-plt-2a.d
ld/testsuite/ld-i386/ibt-plt-2c.d
ld/testsuite/ld-i386/ibt-plt-3a.d
ld/testsuite/ld-i386/ibt-plt-3c.d
ld/testsuite/ld-i386/plt-pic.pd
ld/testsuite/ld-i386/plt-pic2.dd
ld/testsuite/ld-i386/plt.pd
ld/testsuite/ld-i386/plt2.dd
ld/testsuite/ld-i386/pr19636-1d.d
ld/testsuite/ld-i386/pr19636-1l.d
ld/testsuite/ld-i386/pr19636-2c.d
ld/testsuite/ld-i386/pr20830.d
ld/testsuite/ld-i386/vxworks1-lib.dd
ld/testsuite/ld-i386/vxworks1.dd
ld/testsuite/ld-ifunc/ifunc-2-i386-now.d
ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d
ld/testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d
ld/testsuite/ld-ifunc/ifunc-2-x86-64-now.d
ld/testsuite/ld-ifunc/ifunc-21-x86-64.d
ld/testsuite/ld-ifunc/ifunc-22-x86-64.d
ld/testsuite/ld-ifunc/pr17154-i386-now.d
ld/testsuite/ld-ifunc/pr17154-i386.d
ld/testsuite/ld-ifunc/pr17154-x86-64-now.d
ld/testsuite/ld-ifunc/pr17154-x86-64.d
ld/testsuite/ld-x86-64/align-branch-1.d
ld/testsuite/ld-x86-64/bnd-branch-1-now.d
ld/testsuite/ld-x86-64/bnd-branch-1.d
ld/testsuite/ld-x86-64/bnd-ifunc-1-now.d
ld/testsuite/ld-x86-64/bnd-ifunc-1.d
ld/testsuite/ld-x86-64/bnd-ifunc-2-now.d
ld/testsuite/ld-x86-64/bnd-ifunc-2.d
ld/testsuite/ld-x86-64/bnd-plt-1-now.d
ld/testsuite/ld-x86-64/bnd-plt-1.d
ld/testsuite/ld-x86-64/call1a.d
ld/testsuite/ld-x86-64/call1b.d
ld/testsuite/ld-x86-64/call1d.d
ld/testsuite/ld-x86-64/call1e.d
ld/testsuite/ld-x86-64/call1f.d
ld/testsuite/ld-x86-64/call1g.d
ld/testsuite/ld-x86-64/call1h.d
ld/testsuite/ld-x86-64/call1i.d
ld/testsuite/ld-x86-64/gotpcrel1.dd
ld/testsuite/ld-x86-64/hidden2.d
ld/testsuite/ld-x86-64/ibt-plt-1-x32.d
ld/testsuite/ld-x86-64/ibt-plt-1.d
ld/testsuite/ld-x86-64/ibt-plt-2a-x32.d
ld/testsuite/ld-x86-64/ibt-plt-2a.d
ld/testsuite/ld-x86-64/ibt-plt-2c-x32.d
ld/testsuite/ld-x86-64/ibt-plt-2c.d
ld/testsuite/ld-x86-64/ibt-plt-3a-x32.d
ld/testsuite/ld-x86-64/ibt-plt-3a.d
ld/testsuite/ld-x86-64/ibt-plt-3c-x32.d
ld/testsuite/ld-x86-64/ibt-plt-3c.d
ld/testsuite/ld-x86-64/libno-plt-1b.dd
ld/testsuite/ld-x86-64/mpx3.dd
ld/testsuite/ld-x86-64/mpx3n.dd
ld/testsuite/ld-x86-64/mpx4.dd
ld/testsuite/ld-x86-64/mpx4n.dd
ld/testsuite/ld-x86-64/no-plt-1a.dd
ld/testsuite/ld-x86-64/no-plt-1b.dd
ld/testsuite/ld-x86-64/no-plt-1c.dd
ld/testsuite/ld-x86-64/no-plt-1d.dd
ld/testsuite/ld-x86-64/no-plt-1e.dd
ld/testsuite/ld-x86-64/no-plt-1f.dd
ld/testsuite/ld-x86-64/no-plt-1g.dd
ld/testsuite/ld-x86-64/plt-main-bnd.dd
ld/testsuite/ld-x86-64/plt-main-ibt-x32.dd
ld/testsuite/ld-x86-64/plt-main-ibt.dd
ld/testsuite/ld-x86-64/plt.pd
ld/testsuite/ld-x86-64/plt2.dd
ld/testsuite/ld-x86-64/pr19609-5a.d
ld/testsuite/ld-x86-64/pr19609-5b.d
ld/testsuite/ld-x86-64/pr19609-5c.d
ld/testsuite/ld-x86-64/pr19609-5e.d
ld/testsuite/ld-x86-64/pr19609-7b.d
ld/testsuite/ld-x86-64/pr19609-7d.d
ld/testsuite/ld-x86-64/pr19636-2d.d
ld/testsuite/ld-x86-64/pr19636-2l.d
ld/testsuite/ld-x86-64/pr20253-1b.d
ld/testsuite/ld-x86-64/pr20253-1d.d
ld/testsuite/ld-x86-64/pr20253-1f.d
ld/testsuite/ld-x86-64/pr20253-1h.d
ld/testsuite/ld-x86-64/pr20253-1j.d
ld/testsuite/ld-x86-64/pr20253-1l.d
ld/testsuite/ld-x86-64/pr20830a-now.d
ld/testsuite/ld-x86-64/pr20830a.d
ld/testsuite/ld-x86-64/pr20830b-now.d
ld/testsuite/ld-x86-64/pr20830b.d
ld/testsuite/ld-x86-64/pr21038a-now.d
ld/testsuite/ld-x86-64/pr21038a.d
ld/testsuite/ld-x86-64/pr21038b-now.d
ld/testsuite/ld-x86-64/pr21038b.d
ld/testsuite/ld-x86-64/pr21038c-now.d
ld/testsuite/ld-x86-64/pr21038c.d
ld/testsuite/ld-x86-64/pr23930-x32.d
ld/testsuite/ld-x86-64/pr23930.d
ld/testsuite/ld-x86-64/pr25416-1a.d
ld/testsuite/ld-x86-64/pr25416-2a.d
ld/testsuite/ld-x86-64/pr26018.d
ld/testsuite/ld-x86-64/protected2-k1om.d
ld/testsuite/ld-x86-64/protected2-l1om.d
ld/testsuite/ld-x86-64/protected2.d
ld/testsuite/ld-x86-64/protected3.d
ld/testsuite/ld-x86-64/protected8.d
ld/testsuite/ld-x86-64/tlsbin.dd
ld/testsuite/ld-x86-64/tlsbin2.dd
ld/testsuite/ld-x86-64/tlsbindesc.dd
ld/testsuite/ld-x86-64/tlsdesc.dd
ld/testsuite/ld-x86-64/tlsdesc.pd
ld/testsuite/ld-x86-64/tlsgd10.dd
ld/testsuite/ld-x86-64/tlsgd7.dd
ld/testsuite/ld-x86-64/tlsgd8.dd
ld/testsuite/ld-x86-64/tlsgd9.dd
ld/testsuite/ld-x86-64/tlsgdesc.dd
ld/testsuite/ld-x86-64/tlsld3.dd
ld/testsuite/ld-x86-64/tlsld4.dd
ld/testsuite/ld-x86-64/tlspic.dd
ld/testsuite/ld-x86-64/tlspic2.dd
ld/testsuite/ld-x86-64/tlspie2b.d
ld/testsuite/ld-x86-64/tlspie2c.d
opcodes/ChangeLog
opcodes/i386-dis.c