[gcc/devel/ranger] testsuite: Fix up pr94482.c testcase [PR94482]

Aldy Hernandez aldyh@gcc.gnu.org
Wed Jun 17 20:22:26 GMT 2020


https://gcc.gnu.org/g:bb87d5cc77db1f28083990f44e20b6c0728d925e

commit bb87d5cc77db1f28083990f44e20b6c0728d925e
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Apr 11 07:50:50 2020 +0200

    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.

Diff:
---
 gcc/testsuite/ChangeLog                | 7 +++++++
 gcc/testsuite/gcc.dg/torture/pr94482.c | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 91b70275ba6..8f7ef8f6483 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 d9ccaf39049..9264842e349 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


More information about the Gcc-cvs mailing list