summaryrefslogtreecommitdiffstats
path: root/gcc/rtl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 81388eb8b74..b1218d0ef1c 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -237,6 +237,13 @@ struct rtvec_def {
/* Predicate yielding nonzero iff X is a barrier insn. */
#define BARRIER_P(X) (GET_CODE (X) == BARRIER)
+/* Predicate yielding nonzero iff X is cc0. */
+#ifdef HAVE_cc0
+#define CC0_P(X) ((X) == cc0_rtx)
+#else
+#define CC0_P(X) 0
+#endif
+
/* Predicate yielding nonzero iff X is a data for a jump table. */
#define JUMP_TABLE_DATA_P(INSN) \
(JUMP_P (INSN) && (GET_CODE (PATTERN (INSN)) == ADDR_VEC || \
OpenPOWER on IntegriCloud