x86: add tests to cover defaulting of operand sizes for ambiguous insns
authorJan Beulich <jbeulich@suse.com>
Wed, 30 Oct 2019 08:09:13 +0000 (09:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 Oct 2019 08:09:13 +0000 (09:09 +0100)
commita961a1e1749443516d8fe6e0570cf808a09e8f89
treed761185365bf08f9559b47031b05273a330b63b0
parent3cc17af5890d5877b8ac53eb5cd9a2adf82467e6
x86: add tests to cover defaulting of operand sizes for ambiguous insns

Prior to changing the logic in the assembler install tests to make sure
the present defaulting of operand sizes won't get broken. There are a
few anomalies pointed out by this:
- arithmetic insns (add, sub, etc) allow defaulting when their immediate
  fits in (signed) 8 bits, but they fail to assemble with larger values,
- mov, other than arithmetic insns, doesn't allow any defaulting,
- movsx/movzx default to byte sources (in AT&T mode), and their special
  casing needs to be adjusted first
- bt and friends allow defaulting, while shl and friends don't,
- ambiguous AVX and AVX512 insns don't allow defaulting.
This should ultimately all become consistent (perhaps with the exception
some of the SIMD insns); respective tests will be added to the test
cases here as the issues get addressed.
gas/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/noreg16.d [new file with mode: 0644]
gas/testsuite/gas/i386/noreg16.s [new file with mode: 0644]
gas/testsuite/gas/i386/noreg32.d [new file with mode: 0644]
gas/testsuite/gas/i386/noreg32.s [new file with mode: 0644]
gas/testsuite/gas/i386/noreg64.d [new file with mode: 0644]
gas/testsuite/gas/i386/noreg64.s [new file with mode: 0644]
This page took 0.024771 seconds and 4 git commands to generate.