summaryrefslogtreecommitdiff
path: root/cpu/m32c.opc
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2006-03-14 04:20:53 +0000
committerDJ Delorie <dj@delorie.com>2006-03-14 04:20:53 +0000
commit8a3108a3dec3ab8a40fee56ad2749fc2ac10c9b9 (patch)
tree93abdedc1f712fd066d48908b4aa315e34a57dc5 /cpu/m32c.opc
parent9d1b1ea27932964ed9b0b6f5c36959078daeeaba (diff)
downloadbinutils-redhat-8a3108a3dec3ab8a40fee56ad2749fc2ac10c9b9.tar.gz
* m32c.cpu (Bit3-S): New.
(btst:s): New. * m32c.opc (parse_bit3_S): New.
Diffstat (limited to 'cpu/m32c.opc')
-rw-r--r--cpu/m32c.opc18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpu/m32c.opc b/cpu/m32c.opc
index 62353267f4..f664e9a2cd 100644
--- a/cpu/m32c.opc
+++ b/cpu/m32c.opc
@@ -534,6 +534,24 @@ parse_imm3_S (CGEN_CPU_DESC cd, const char **strp,
}
static const char *
+parse_bit3_S (CGEN_CPU_DESC cd, const char **strp,
+ int opindex, signed long *valuep)
+{
+ const char *errmsg = 0;
+ signed long value;
+
+ errmsg = cgen_parse_signed_integer (cd, strp, opindex, & value);
+ if (errmsg)
+ return errmsg;
+
+ if (value < 0 || value > 7)
+ return _("immediate is out of range 0-7");
+
+ *valuep = value;
+ return 0;
+}
+
+static const char *
parse_lab_5_3 (CGEN_CPU_DESC cd,
const char **strp,
int opindex ATTRIBUTE_UNUSED,