Make vector-{1,2}.c run correctly on PowerPC 32-bit
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Tue, 22 Mar 2011 14:36:11 +0000 (14:36 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 22 Mar 2011 14:36:11 +0000 (14:36 +0000)
From-SVN: r171289

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/vector-1.c
gcc/testsuite/gcc.dg/torture/vector-2.c

index a5d78c94ccaab83184f8d7edffeefdecf81483b6..d13fab08bc4f1ce8498f82524ec26a159cf8c6d6 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       * gcc.dg/torture/vector-1.c: On powerpc add -fabi=altivec to avoid
+       failure on 32-bit systems.
+       * gcc.dg/torture/vector-2.c: Ditto.
+
 2011-03-22  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/48228
index 9ab78aaf53e353e98ce16fc21c50324f2de89dd8..205fee6d6de9b7d4e36134a27eab491448b83477 100644 (file)
@@ -3,6 +3,8 @@
 /* { dg-do run } */
 /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
 /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "-mabi=altivec" { target { powerpc-*-* powerpc64-*-* } } } */
+/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */
 
 #define vector __attribute__((vector_size(16) ))
 
index bff9f82cdad26879f3bf3f5ccb27ac9d4840dae3..6cc56cfae7851d640f1003431146e461d31bea54 100644 (file)
@@ -3,6 +3,8 @@
 /* { dg-do run } */
 /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
 /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "-mabi=altivec" { target { powerpc-*-* powerpc64-*-* } } } */
+/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */
 
 #define vector __attribute__((vector_size(16) ))