diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2016-05-03 13:44:13 +0200 |
---|---|---|
committer | Claudiu Zissulescu <claziss@synopsys.com> | 2016-05-04 16:18:32 +0200 |
commit | 945e0f82dad31db89a107b496532886fe215c011 (patch) | |
tree | 2d9fda4f448c3e7347ffb9cad26bb9a831e70bd8 /include | |
parent | edf689f02787121a49ea0e36cfaa051b06852c8b (diff) | |
download | gdb-945e0f82dad31db89a107b496532886fe215c011.zip gdb-945e0f82dad31db89a107b496532886fe215c011.tar.gz gdb-945e0f82dad31db89a107b496532886fe215c011.tar.bz2 |
[ARC] Add SYNTAX_NOP and SYNTAX_1OP for extension instructions
gas/
2016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
* config/tc-arc.c (syntaxclass): Add SYNTAX_NOP and SYNTAX_1OP.
(arc_extinsn): Handle new introduced syntax.
* testsuite/gas/arc/textinsn1op.d: New file.
* testsuite/gas/arc/textinsn1op.s: Likewise.
* doc/c-arc.texi: Document SYNTAX_NOP and SYNTAX_1OP.
opcodes/
2016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
* arc-ext.c (dump_ARC_extmap): Handle SYNATX_NOP and SYNTAX_1OP.
(arcExtMap_genOpcode): Likewise.
* arc-opc.c (arg_32bit_rc): Define new variable.
(arg_32bit_u6): Likewise.
(arg_32bit_limm): Likewise.
include/
2016-05-03 Claudiu Zissulescu <claziss@synopsys.com>
* opcode/arc.h (ARC_SYNTAX_1OP): Declare
(ARC_SYNTAX_NOP): Likewsie.
(ARC_OP1_MUST_BE_IMM): Update defined value.
(ARC_OP1_IMM_IMPLIED): Likewise.
(arg_32bit_rc, arg_32bit_u6, arg_32bit_limm): Declare.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 8 | ||||
-rw-r--r-- | include/opcode/arc.h | 12 |
2 files changed, 18 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index df2ebb3..2f4a96a 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,11 @@ +2016-05-03 Claudiu Zissulescu <claziss@synopsys.com> + + * opcode/arc.h (ARC_SYNTAX_1OP): Declare + (ARC_SYNTAX_NOP): Likewsie. + (ARC_OP1_MUST_BE_IMM): Update defined value. + (ARC_OP1_IMM_IMPLIED): Likewise. + (arg_32bit_rc, arg_32bit_u6, arg_32bit_limm): Declare. + 2016-04-28 Nick Clifton <nickc@redhat.com> PR target/19722 diff --git a/include/opcode/arc.h b/include/opcode/arc.h index 1d4a844..d10e311 100644 --- a/include/opcode/arc.h +++ b/include/opcode/arc.h @@ -516,8 +516,12 @@ extern const unsigned arc_num_relax_opcodes; /* Various constants used when defining an extension instruction. */ #define ARC_SYNTAX_3OP (1 << 0) #define ARC_SYNTAX_2OP (1 << 1) -#define ARC_OP1_MUST_BE_IMM (1 << 2) -#define ARC_OP1_IMM_IMPLIED (1 << 3) +#define ARC_SYNTAX_1OP (1 << 2) +#define ARC_SYNTAX_NOP (1 << 3) +#define ARC_SYNTAX_MASK (0x0F) + +#define ARC_OP1_MUST_BE_IMM (1 << 0) +#define ARC_OP1_IMM_IMPLIED (1 << 1) #define ARC_SUFFIX_NONE (1 << 0) #define ARC_SUFFIX_COND (1 << 1) @@ -566,4 +570,8 @@ extern const unsigned char arg_32bit_limmu6[MAX_INSN_ARGS + 1]; extern const unsigned char arg_32bit_limms12[MAX_INSN_ARGS + 1]; extern const unsigned char arg_32bit_limmlimm[MAX_INSN_ARGS + 1]; +extern const unsigned char arg_32bit_rc[MAX_INSN_ARGS + 1]; +extern const unsigned char arg_32bit_u6[MAX_INSN_ARGS + 1]; +extern const unsigned char arg_32bit_limm[MAX_INSN_ARGS + 1]; + #endif /* OPCODE_ARC_H */ |