aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mips-formats.h
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/mips-formats.h')
-rw-r--r--opcodes/mips-formats.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes/mips-formats.h b/opcodes/mips-formats.h
index afc9e4a..116d7c8 100644
--- a/opcodes/mips-formats.h
+++ b/opcodes/mips-formats.h
@@ -134,3 +134,11 @@
static const struct mips_operand op = { OP_##TYPE, SIZE, LSB }; \
return &op; \
}
+
+#define PREV_CHECK(SIZE, LSB, GT_OK, LT_OK, EQ_OK, ZERO_OK) \
+ { \
+ static const struct mips_check_prev_operand op = { \
+ { OP_CHECK_PREV, SIZE, LSB }, GT_OK, LT_OK, EQ_OK, ZERO_OK \
+ }; \
+ return &op.root; \
+ }