PowerPC32 extended instructions in powerpc_macros
authorAlan Modra <amodra@gmail.com>
Tue, 15 Mar 2022 23:35:37 +0000 (10:05 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 15 Mar 2022 23:35:37 +0000 (10:05 +1030)
commitf304c63d24ef12f3c01b978929ed026b1ec85f56
treee9c07556d20437ddd0ae62c8d76c4f7494bdecfa
parent42952a9605b00e4b1d6514de9b30e56d4dcb8bbe
PowerPC32 extended instructions in powerpc_macros

As for PowerPC64, move instructions to the main opcode table.

opcodes/
* ppc-opc.c (insert_crwn, extract_crwn, insert_elwn, extract_elwn),
(insert_erwn, extract_erwn, insert_erwb, extract_erwb),
(insert_cslwn, extract_cslwb, insert_ilwb, extract_ilwn),
(insert_irwb, extract_irwn, insert_rrwn, extract_rrwn),
(insert_slwn, extract_slwn, insert_srwn, extract_srwn): New functions.
(CRWn, ELWn, ERWn, ERWb, CSLWb, CSLWn, ILWn, ILWb, IRWn, IRWb),
(RRWn, SLWn, SRWn): Define and add powerpc_operands entries.
(MMB_MASK, MME_MASK, MSHMB_MASK): Define.
(powerpc_opcodes): Add "inslwi", "insrwi", "rotrwi", "clrrwi",
"slwi", "srwi", "extlwi", "extrwi", "sli", "sri" and corresponding
record (ie. dot suffix) forms.
(powerpc_macros): Delete same.
gas/
* testsuite/gas/ppc/476.d: Update.
* testsuite/gas/ppc/simpshft.d: Update.
gas/testsuite/gas/ppc/476.d
gas/testsuite/gas/ppc/simpshft.d
opcodes/ppc-opc.c