aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-06-24 06:39:55 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2015-06-24 06:39:55 +0000
commit920cc6968d3778a196f1495144de13225f408d2f (patch)
treea3820484b4860399da528d3b7c86007327384bc1
parent0600d22cbb5a667ed8277298a826608a2c545c9d (diff)
downloadgcc-920cc6968d3778a196f1495144de13225f408d2f.zip
gcc-920cc6968d3778a196f1495144de13225f408d2f.tar.gz
gcc-920cc6968d3778a196f1495144de13225f408d2f.tar.bz2
S/390: Disable effect of support_vector_misalignment
gcc/ChangeLog: 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390.c (s390_support_vector_misalignment): Call default implementation for !TARGET_VX. From-SVN: r224869
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/s390/s390.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9485cc2..d9a8a90 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+ * config/s390/s390.c (s390_support_vector_misalignment): Call
+ default implementation for !TARGET_VX.
+
+2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
* config/s390/s390.c (s390_legitimate_constant_p): Add
TARGET_VX check.
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index ae5e9ab..b3845f8 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -13719,7 +13719,11 @@ s390_support_vector_misalignment (machine_mode mode ATTRIBUTE_UNUSED,
int misalignment ATTRIBUTE_UNUSED,
bool is_packed ATTRIBUTE_UNUSED)
{
- return true;
+ if (TARGET_VX)
+ return true;
+
+ return default_builtin_support_vector_misalignment (mode, type, misalignment,
+ is_packed);
}
/* The vector ABI requires vector types to be aligned on an 8 byte