forked from Imagelibrary/binutils-gdb
[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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user