PowerPC SPE disassembly and tests
authorAlan Modra <amodra@gmail.com>
Thu, 13 Oct 2022 05:40:15 +0000 (16:10 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 14 Oct 2022 11:37:18 +0000 (22:07 +1030)
commit5abb5d3f67d6469cbb21978df09187f1ae93f5ea
tree51c95396255e9c45b881db9eec885112fd1058fd
parent61a457e5da46bad626bc3b6985a58fb5ae41842d
PowerPC SPE disassembly and tests

Where sub and subf forms of an instruction exist we generally
disassemble to the extended insn sub form rather than the underlying
machine subf instruction.  Do so for SPE evsubw and evsubiw too.

spe_ambiguous.d always was a bit too optimistic.  There is no sensible
way to disassemble identical bytes back to different and original
source.  Instead change the test to check -Mraw results.

gas/
* testsuite/gas/ppc/ppc.exp: Run spe_ambiguous test.
* testsuite/gas/ppc/spe.d: Expect evsubw and evsubiw rather than
evsubfw and evsubifw.
* testsuite/gas/ppc/spe_ambiguous.s: Test evnor form equivalent
to evnot.
* testsuite/gas/ppc/spe_ambiguous.d: Test Mraw.
opcodes/
* ppc-opc.c (powerpc_opcodes): Move evsubw before evsubfw and
evsubiw before evsubifw and mark EXT.
gas/testsuite/gas/ppc/ppc.exp
gas/testsuite/gas/ppc/spe.d
gas/testsuite/gas/ppc/spe_ambiguous.d
gas/testsuite/gas/ppc/spe_ambiguous.s
opcodes/ppc-opc.c