diff mbox series

[committed] testsuite: Fix up pr94482.c testcase [PR94482]

Message ID 20200411055417.GU2212@tucnak
State New
Headers show
Series [committed] testsuite: Fix up pr94482.c testcase [PR94482] | expand

Commit Message

Li, Pan2 via Gcc-patches April 11, 2020, 5:54 a.m. UTC
On Wed, Apr 08, 2020 at 08:34:08PM +0200, Martin Jambor wrote:
> 2020-04-08  Martin Jambor  <mjambor@suse.cz>
> 	    Richard Biener  <rguenther@suse.de>
> 
> 	PR tree-optimization/94482
> 	* tree-sra.c (create_access_replacement): Dump new replacement with
> 	TDF_UID.
> 	(sra_modify_expr): Fix handling of cases when the original EXPR writes
> 	to only part of the replacement.
> 	* tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
> 	the first operand of combinations into REAL/IMAGPART_EXPR and
> 	BIT_FIELD_REF.
> 
> 	testsuite/
> 	* gcc.dg/torture/pr94482.c: New test.

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.

Fixed thusly, tested on x86_64-linux and powerpc64-linux -m32/-m64 and on
the former -m32/-mno-sse too, committed to trunk as obvious.

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.



	Jakub
diff mbox series

Patch

--- gcc/testsuite/gcc.dg/torture/pr94482.c
+++ 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