aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2012-09-17 15:08:13 +0000
committerGeorg-Johann Lay <avr@gjlay.de>2012-09-17 15:08:13 +0000
commit764fa26705459c9d84c86027e8c6c66937a68011 (patch)
tree8d2abe3bfe22ece9fd8264d4f8b7200655f63f43 /gcc/rtl.h
parentc8bcfcd73a42488a0e76a43f5494905e2dcd8368 (diff)
* rtl.h (CONST_FIXED_P): New predicate macro.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191388 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index cf52efb6389..43e5980936c 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -419,6 +419,9 @@ struct GTY((variable_size)) rtvec_def {
/* Predicate yielding nonzero iff X is an rtx for a constant integer. */
#define CONST_INT_P(X) (GET_CODE (X) == CONST_INT)
+/* Predicate yielding nonzero iff X is an rtx for a constant fixed-point. */
+#define CONST_FIXED_P(X) (GET_CODE (X) == CONST_FIXED)
+
/* Predicate yielding true iff X is an rtx for a double-int
or floating point constant. */
#define CONST_DOUBLE_P(X) (GET_CODE (X) == CONST_DOUBLE)