aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2006-03-17 01:12:33 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2006-03-17 01:12:33 +0000
commitd97c12956f0d920c2a2cd617a2c7c08db7d0cfa7 (patch)
tree8948f37657bd8d3adc66d47bb80ef60b3cd32110 /gcc/rtl.h
parent192d0f895b931ae17d477ea07046980f15dc0ec5 (diff)
downloadgcc-d97c12956f0d920c2a2cd617a2c7c08db7d0cfa7.zip
gcc-d97c12956f0d920c2a2cd617a2c7c08db7d0cfa7.tar.gz
gcc-d97c12956f0d920c2a2cd617a2c7c08db7d0cfa7.tar.bz2
rtl.h (CONST_INT_P): Define.
* rtl.h (CONST_INT_P): Define. * config/vax/vax.c (print_operand_address): Use CONST_INT_P() instead of GET_CODE(x) == CONST_INT. (vax_rtx_costs): Likewise. (vax_output_int_move): Likewise. (vax_output_int_add): Likewise. (legitimate_constant_address_p): Likewise. (index_term_p): Likewise. * config/vax/vax.h (PRINT_OPERAND): Likewise. * config/vax/vax.md (and<mode>3): Likewise. (ashrsi3): Likewise. (extv): Likewise. (movstricthi): Likewise. (movstrictqi): Likewise. (rotrsi3): Likewise. (five unnamed insns): Likewise. From-SVN: r112169
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 22ecd16..cad48cb 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -361,6 +361,9 @@ struct rtvec_def GTY(()) {
/* Predicate yielding nonzero iff X is an rtx for a memory location. */
#define MEM_P(X) (GET_CODE (X) == MEM)
+/* Prediacte 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 a label insn. */
#define LABEL_P(X) (GET_CODE (X) == CODE_LABEL)