diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2018-05-21 17:31:07 -0500 |
---|---|---|
committer | Peter Bergner <bergner@vnet.ibm.com> | 2018-05-21 17:31:07 -0500 |
commit | 98553ad33eba6353b0e4181ae51dfdf2d7e652ac (patch) | |
tree | 9ecea4fa3f1729ae33534493394bef05f3c8c1de /include | |
parent | 122b53ea6a99c8811fb9cb84869b949b1ac55b22 (diff) | |
download | gdb-98553ad33eba6353b0e4181ae51dfdf2d7e652ac.zip gdb-98553ad33eba6353b0e4181ae51dfdf2d7e652ac.tar.gz gdb-98553ad33eba6353b0e4181ae51dfdf2d7e652ac.tar.bz2 |
Remove fake operand handling for extended mnemonics.
opcodes/
* ppc-opc.c (insert_bat, extract_bat, insert_bba, extract_bba,
insert_rbs, extract_rbs, insert_xb6s, extract_xb6s): Delete functions.
(insert_bab, extract_bab, insert_btab, extract_btab,
insert_rsb, extract_rsb, insert_xab6, extract_xab6): New functions.
(BAT, BBA VBA RBS XB6S): Delete macros.
(BTAB, BAB, VAB, RAB, RSB, XAB6): New macros.
(BB, BD, RBX, XC6): Update for new macros.
(powerpc_opcodes) <evmr, evnot, vmr, vnot, crnot, crclr, crset,
crmove, not, not., mr, mr., xxspltd, xxswapd, xvmovsp, xvmovdp,
e_crnot, e_crclr, e_crset, e_crmove>: Likewise.
* ppc-dis.c (print_insn_powerpc): Delete handling of fake operands.
include/
* opcode/ppc.h (PPC_OPERAND_FAKE): Delete macro.
gas/
* config/tc-ppc.c (md_assemble): Delete handling of fake operands.
* testsuite/gas/ppc/common.s (crmove, cror, or., or, nor., nor): Add
test of extended mnemonics.
* testsuite/gas/ppc/common.d: Likewise. Don't match instruction offset.
* testsuite/gas/ppc/spe.s (evor, evnor): Add test of extended mnemonics.
* testsuite/gas/ppc/spe.d: Likewise. Don't match instruction offset.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/ppc.h | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 71d2eb6..8b303bd 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2018-05-21 Peter Bergner <bergner@vnet.ibm.com.com> + + * opcode/ppc.h (PPC_OPERAND_FAKE): Delete macro. + 2018-05-18 Kito Cheng <kito.cheng@gmail.com> * elf/riscv.h (EF_RISCV_RVE): New define. diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h index f0b6437..44445bc 100644 --- a/include/opcode/ppc.h +++ b/include/opcode/ppc.h @@ -405,14 +405,6 @@ extern const unsigned int num_powerpc_operands; /* Valid range of operand is 0..n rather than 0..n-1. */ #define PPC_OPERAND_PLUS1 (0x20000) -/* This operand does not actually exist in the assembler input. This - is used to support extended mnemonics such as mr, for which two - operands fields are identical. The assembler should call the - insert function with any op value. The disassembler should call - the extract function, ignore the return value, and check the value - placed in the valid argument. */ -#define PPC_OPERAND_FAKE (0x40000) - /* This operand is optional, and is zero if omitted. This is used for example, in the optional BF field in the comparison instructions. The assembler must count the number of operands remaining on the line, |