[PowerPC VLE] Add LSP (Lightweight Signal Processing) instruction support
authorAlexander Fedotov <alfedotov@gmail.com>
Mon, 21 Aug 2017 12:45:59 +0000 (15:45 +0300)
committerAlan Modra <amodra@gmail.com>
Mon, 21 Aug 2017 13:59:13 +0000 (23:29 +0930)
commite3c2f928b8f9afce6fdedaa1ddedfaa1d305aa9d
treef95567d041ed05d808ab6c3a7537c6035cfddbb8
parentbf223d3e808e6fec9ee165d3d48beb74837796de
[PowerPC VLE] Add LSP (Lightweight Signal Processing) instruction support

include/
* opcode/ppc.h (PPC_OPCODE_LSP): New define.
opcodes/
* ppc-opc.c (insert_evuimm2_ex0): New function.
(extract_evuimm2_ex0): Likewise.
(insert_evuimm4_ex0): Likewise.
(extract_evuimm4_ex0): Likewise.
(insert_evuimm8_ex0): Likewise.
(extract_evuimm8_ex0): Likewise.
(insert_evuimm_lt16): Likewise.
(extract_evuimm_lt16): Likewise.
(insert_rD_rS_even): Likewise.
(extract_rD_rS_even): Likewise.
(insert_off_lsp): Likewise.
(extract_off_lsp): Likewise.
(RD_EVEN): New operand.
(RS_EVEN): Likewise.
(RSQ): Adjust.
(EVUIMM_LT16): New operand.
(HTM_SI): Adjust.
(EVUIMM_2_EX0): New operand.
(EVUIMM_4): Adjust.
(EVUIMM_4_EX0): New operand.
(EVUIMM_8): Adjust.
(EVUIMM_8_EX0): New operand.
(WS): Adjust.
(VX_OFF): New operand.
(VX_LSP): New macro.
(VX_LSP_MASK): Likewise.
(VX_LSP_OFF_MASK): Likewise.
(PPC_OPCODE_LSP): Likewise.
(vle_opcodes): Add LSP opcodes.
* ppc-dis.c (ppc_mopt): Add PPC_OPCODE_LSP flag to "vle" entry.
gas/
* testsuite/gas/ppc/lsp-checks.d,
* testsuite/gas/ppc/lsp-checks.l,
* testsuite/gas/ppc/lsp-checks.s: New test.
* testsuite/gas/ppc/lsp.d,
* testsuite/gas/ppc/lsp.s: New test.
* testsuite/gas/ppc/ppc.exp: Run new tests.
12 files changed:
gas/ChangeLog
gas/testsuite/gas/ppc/lsp-checks.d [new file with mode: 0644]
gas/testsuite/gas/ppc/lsp-checks.l [new file with mode: 0644]
gas/testsuite/gas/ppc/lsp-checks.s [new file with mode: 0644]
gas/testsuite/gas/ppc/lsp.d [new file with mode: 0644]
gas/testsuite/gas/ppc/lsp.s [new file with mode: 0644]
gas/testsuite/gas/ppc/ppc.exp
include/ChangeLog
include/opcode/ppc.h
opcodes/ChangeLog
opcodes/ppc-dis.c
opcodes/ppc-opc.c