From: Andreas Krebbel Date: Wed, 24 Jun 2015 06:38:32 +0000 (+0000) Subject: S/390: Limit legitimate_constant_p changes to TARGET_VX. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0600d22cbb5a667ed8277298a826608a2c545c9d;p=gcc.git S/390: Limit legitimate_constant_p changes to TARGET_VX. gcc/ChangeLog: 2015-06-23 Andreas Krebbel * config/s390/s390.c (s390_legitimate_constant_p): Add TARGET_VX check. From-SVN: r224868 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 57ab9e8e29c..9485cc25b28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-24 Andreas Krebbel + + * config/s390/s390.c (s390_legitimate_constant_p): Add + TARGET_VX check. + 2015-06-24 Andreas Krebbel * config/s390/s390.c (s390_vector_abi): New variable definition. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 4408d4c9be0..ae5e9abdb48 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -3602,7 +3602,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;