On Wed, Apr 08, 2020 at 08:34:08PM +0200, Martin Jambor wrote: > 2020-04-08 Martin Jambor <mjam...@suse.cz> > Richard Biener <rguent...@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 <ja...@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. --- 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 Jakub