gcc/ChangeLog: * config/s390/s390.c (s390_legitimate_constant_p): Add TARGET_VX check. --- gcc/config/s390/s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 934f7c0..859ed68 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -3611,7 +3611,7 @@ legitimate_pic_operand_p (rtx op) static bool s390_legitimate_constant_p (machine_mode mode, rtx op) { - if (VECTOR_MODE_P (mode) && GET_CODE (op) == CONST_VECTOR) + if (TARGET_VX && VECTOR_MODE_P (mode) && GET_CODE (op) == CONST_VECTOR) { if (GET_MODE_SIZE (mode) != 16) return 0; -- 1.7.9.5