diff options
author | Michael Meissner <meissner@linux.vnet.ibm.com> | 2011-12-29 17:45:11 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2011-12-29 17:45:11 +0000 |
commit | 497081e8cf71fed0a409afcb21590856a1f0536d (patch) | |
tree | 9724788ef52c60f0cb50c52db352f64bb2cd2852 /gcc | |
parent | 1893a69a50e1baae2fe767b9ab8c883588e87c0a (diff) | |
download | gcc-497081e8cf71fed0a409afcb21590856a1f0536d.zip gcc-497081e8cf71fed0a409afcb21590856a1f0536d.tar.gz gcc-497081e8cf71fed0a409afcb21590856a1f0536d.tar.bz2 |
Fix 51702 testsuite failures
From-SVN: r182726
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr35442.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/scal-to-vec1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/scal-to-vec2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr36891.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vector-compare-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vector-compare-2.c | 1 |
8 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fb3daff..c49c100 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,17 @@ +2011-12-29 Michael Meissner <meissner@linux.vnet.ibm.com> + + PR testsuite/51702 + * gcc.dg/scal-to-vec1.c: If 32-bit powerpc-linux, add the + -mabi=altivec option, which suppresses a warning message about + passing vectors by reference. The extra warning causes some tests + to fail. + * gcc.dg/scal-to-vec2.c: Likewise. + * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Likewise. + * gcc.dg/pr35442.c: Likewise. + * gcc.dg/vector-compare-1.c: Likewise. + * gcc.dg/vector-compare-2.c: Likewise. + * gcc.dg/torture/pr36891.c: Likewise. + 2012-12-29 Kai Tietz <ktietz@redhat.com> * g++.dg/abi/bitfield3.C: Make sure test runs diff --git a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c index 29b1e98..42b3935 100644 --- a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c +++ b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -Wall" } */ +/* { dg-options "-O2 -Wall -mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__)); diff --git a/gcc/testsuite/gcc.dg/pr35442.c b/gcc/testsuite/gcc.dg/pr35442.c index 206853b..6534ba4 100644 --- a/gcc/testsuite/gcc.dg/pr35442.c +++ b/gcc/testsuite/gcc.dg/pr35442.c @@ -1,5 +1,6 @@ /* PR c/35442 */ /* { dg-bogus "not supported by" "" { target *-*-* } 0 } */ +/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ typedef char A __attribute__ ((vector_size (64))); typedef int B __attribute__ ((vector_size (64))); diff --git a/gcc/testsuite/gcc.dg/scal-to-vec1.c b/gcc/testsuite/gcc.dg/scal-to-vec1.c index 503426d..0c1a509 100644 --- a/gcc/testsuite/gcc.dg/scal-to-vec1.c +++ b/gcc/testsuite/gcc.dg/scal-to-vec1.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-Wno-long-long" } */ +/* { dg-options "-Wno-long-long -mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ + #define vector(elcount, type) \ __attribute__((vector_size((elcount)*sizeof(type)))) type diff --git a/gcc/testsuite/gcc.dg/scal-to-vec2.c b/gcc/testsuite/gcc.dg/scal-to-vec2.c index 9ff8c05..1897b93 100644 --- a/gcc/testsuite/gcc.dg/scal-to-vec2.c +++ b/gcc/testsuite/gcc.dg/scal-to-vec2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */ +/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ /* Test for C_MAYBE_CONST are folded correctly when expanding an expression to vector. */ diff --git a/gcc/testsuite/gcc.dg/torture/pr36891.c b/gcc/testsuite/gcc.dg/torture/pr36891.c index 5a8e5c3..ab58e43 100644 --- a/gcc/testsuite/gcc.dg/torture/pr36891.c +++ b/gcc/testsuite/gcc.dg/torture/pr36891.c @@ -2,6 +2,7 @@ /* { dg-options "-ffast-math" } */ /* { dg-options "-ffast-math -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ /* { dg-require-effective-target sse { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-options "-ffast-math -mabi=altivec" { target { { powerpc*-*-linux* } && ia32 } } } */ #define __vector __attribute__((vector_size(16) )) __vector float f(void); diff --git a/gcc/testsuite/gcc.dg/vector-compare-1.c b/gcc/testsuite/gcc.dg/vector-compare-1.c index b568239..f6c1b40 100644 --- a/gcc/testsuite/gcc.dg/vector-compare-1.c +++ b/gcc/testsuite/gcc.dg/vector-compare-1.c @@ -1,4 +1,6 @@ /* { dg-do compile } */ +/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ + #define vector(elcount, type) \ __attribute__((vector_size((elcount)*sizeof(type)))) type diff --git a/gcc/testsuite/gcc.dg/vector-compare-2.c b/gcc/testsuite/gcc.dg/vector-compare-2.c index f42986f..8cbcf07 100644 --- a/gcc/testsuite/gcc.dg/vector-compare-2.c +++ b/gcc/testsuite/gcc.dg/vector-compare-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */ +/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ /* Test if C_MAYBE_CONST are folded correctly when creating VEC_COND_EXPR. */ |