]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Xfail gcc.dg/tree-ssa/ssa-fre-100.c for ! natural_alignment_32
authorHans-Peter Nilsson <hp@axis.com>
Thu, 23 Mar 2023 14:46:05 +0000 (15:46 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 23 Mar 2023 20:53:00 +0000 (21:53 +0100)
The test gcc.dg/tree-ssa/ssa-fre-100.c fails the
scan-tree-dump-not fre1 "baz" for at least m68k-linux,
pru-elf, and cris-elf according to posts on gcc-testresults.

GCC requires int-size-alignment for a target to see through
the "int *" dereference and perform value-numbering.  See
comments in PR91419 and also the recent patch to
gcc.dg/tree-ssa/pr100359.c.  This is a flaw in gcc rather
than the target, so prefer an xfail rather than skipping
the test.

* gcc.dg/tree-ssa/ssa-fre-100.c: XFAIL for ! natural_alignment_32.

gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-100.c

index ead76548f3df38b509745011b994864d2a3af7a3..1b6a3a398a4e66e8358e3ba7fec94559b6209d27 100644 (file)
@@ -22,4 +22,4 @@ void foo (int *p, int n)
   while (--n);
 }
 
-/* { dg-final { scan-tree-dump-not "baz" "fre1" } } */
+/* { dg-final { scan-tree-dump-not "baz" "fre1" { xfail { ! natural_alignment_32 } } } } */