aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arc-opc.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-03-24 17:18:41 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-03-31 14:06:46 +0100
commit2cce10e71897b8b985c786c6c323922321408b39 (patch)
treeeb915fdfc18cdc23d7a040422912ffd155f3cf85 /opcodes/arc-opc.c
parente7ea3ec7c623be0b9be1eaf4929794652a84be11 (diff)
downloadgdb-2cce10e71897b8b985c786c6c323922321408b39.zip
gdb-2cce10e71897b8b985c786c6c323922321408b39.tar.gz
gdb-2cce10e71897b8b985c786c6c323922321408b39.tar.bz2
opcodes/arc/nps: Fix some operand flags
Some operands accidentally had the ARC_OPERAND_NCHK flag (due to copy & paste mistake), meaning the operand value was skipping the overflow check before being inserted. This commit removes the unwanted flags. opcodes/ChangeLog: * arc-opc.c (arc_operands): Fix operand flags for NPS_R_DST, and NPS_R_SRC1.
Diffstat (limited to 'opcodes/arc-opc.c')
-rw-r--r--opcodes/arc-opc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/arc-opc.c b/opcodes/arc-opc.c
index 24d6f6b..231ef4b 100644
--- a/opcodes/arc-opc.c
+++ b/opcodes/arc-opc.c
@@ -1311,10 +1311,10 @@ const struct arc_operand arc_operands[] =
{ 3, 21, 0, ARC_OPERAND_IR | ARC_OPERAND_NCHK, insert_nps_3bit_src2, extract_nps_3bit_src2 },
#define NPS_R_DST (NPS_R_SRC2_3B + 1)
- { 6, 21, 0, ARC_OPERAND_IR | ARC_OPERAND_NCHK, NULL, NULL },
+ { 6, 21, 0, ARC_OPERAND_IR, NULL, NULL },
#define NPS_R_SRC1 (NPS_R_DST + 1)
- { 6, 21, 0, ARC_OPERAND_IR | ARC_OPERAND_DUPLICATE | ARC_OPERAND_NCHK, NULL, NULL },
+ { 6, 21, 0, ARC_OPERAND_IR | ARC_OPERAND_DUPLICATE, NULL, NULL },
#define NPS_BITOP_DST_POS (NPS_R_SRC1 + 1)
{ 5, 5, 0, ARC_OPERAND_UNSIGNED, 0, 0 },