2019-08-05 Arvind Sankar <nived...@alum.mit.edu> gcc/ChangeLog:
* rtl.h: Add a predicate macro for checking CONST_VECTOR. 1 file changed, 3 insertions(+) diff --git a/gcc/rtl.h b/gcc/rtl.h index 28b5a82d651..45e2b85867d 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -818,6 +818,9 @@ struct GTY(()) rtvec_def { #define CONST_DOUBLE_AS_FLOAT_P(X) \ (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) != VOIDmode) +/* Predicate yielding nonzero iff X is an rtx for a vector const. */ +#define CONST_VECTOR_P(X) (GET_CODE (X) == CONST_VECTOR) + /* Predicate yielding true iff X is an rtx for a integer const. */ #if TARGET_SUPPORTS_WIDE_INT #define CONST_SCALAR_INT_P(X) \ -- 2.21.0