aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-04-11 07:50:50 +0200
committerJakub Jelinek <jakub@redhat.com>2020-04-11 07:50:50 +0200
commitbb87d5cc77db1f28083990f44e20b6c0728d925e (patch)
treedda9278f1926c2f7c15353980462501bf063d9d5
parenta615ea71bc8fbf31b9bc71cb373a7ca5b9cca44a (diff)
downloadgcc-bb87d5cc77db1f28083990f44e20b6c0728d925e.zip
gcc-bb87d5cc77db1f28083990f44e20b6c0728d925e.tar.gz
gcc-bb87d5cc77db1f28083990f44e20b6c0728d925e.tar.bz2
testsuite: Fix up pr94482.c testcase [PR94482]
The test FAILs on powerpc64-linux with -m32 due to psabi warnings. Furthermore, the test needs really -msse2 to reproduce on x86 -m32 at -O2. 2020-04-11 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/94482 * gcc.dg/torture/pr94482.c: Add -Wno-psabi -w. Don't add -msse and sse_runtime effective target on x86, instead only add -msse2 if target is sse2_runtime.
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr94482.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 91b7027..8f7ef8f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2020-04-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/94482
+ * gcc.dg/torture/pr94482.c: Add -Wno-psabi -w. Don't add -msse
+ and sse_runtime effective target on x86, instead only add -msse2
+ if target is sse2_runtime.
+
2020-04-10 Iain Sandoe <iain@sandoe.co.uk>
PR c++/94528
diff --git a/gcc/testsuite/gcc.dg/torture/pr94482.c b/gcc/testsuite/gcc.dg/torture/pr94482.c
index d9ccaf3..9264842 100644
--- a/gcc/testsuite/gcc.dg/torture/pr94482.c
+++ b/gcc/testsuite/gcc.dg/torture/pr94482.c
@@ -1,6 +1,6 @@
/* { dg-do run } */
-/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
-/* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-additional-options "-Wno-psabi -w" } */
+/* { dg-additional-options "-msse2" { target sse2_runtime } } */
typedef unsigned V __attribute__ ((__vector_size__ (16)));
union U