PowerPC table driven -Mraw disassembly
authorAlan Modra <amodra@gmail.com>
Fri, 28 May 2021 03:54:16 +0000 (13:24 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 29 May 2021 11:36:06 +0000 (21:06 +0930)
commit1ff6a3b8e562d09aec8dcf1d8b0ef67f271126fc
tree1873db0b13b3360f8a280dfbcc1195d0a4a49757
parentd6249f5f1cfc5c37bf026a90a031e8c6463f169b
PowerPC table driven -Mraw disassembly

opcodes/
* ppc-dis.c (lookup_powerpc): Test deprecated field when -Many.
Don't special case PPC_OPCODE_RAW.
(lookup_prefix): Likewise.
(lookup_vle, lookup_spe2): Similarly.  Add dialect parameter and..
(print_insn_powerpc): ..update caller.
* ppc-opc.c (EXT): Define.
(powerpc_opcodes): Mark extended mnemonics with EXT.
(prefix_opcodes, vle_opcodes): Likewise.
(XISEL, XISEL_MASK): Add cr field and simplify.
(powerpc_opcodes): Use XISEL with extended isel mnemonics and sort
all isel variants to where the base mnemonic belongs.  Sort dstt,
dststt and dssall.
gas/
* testsuite/gas/ppc/raw.s,
* testsuite/gas/ppc/raw.d: New test.
* testsuite/gas/ppc/ppc.exp: Run it.
gas/ChangeLog
gas/testsuite/gas/ppc/ppc.exp
gas/testsuite/gas/ppc/raw.d [new file with mode: 0644]
gas/testsuite/gas/ppc/raw.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/ppc-dis.c
opcodes/ppc-opc.c