The gcc.dg/tree-ssa/vrp47.c test case fails on powerpc apple darwin as follows... Executing on host: /sw/src/fink.build/gcc44-4.3.999-20081120/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20081120/darwin_objdir/gcc/ /sw/src/fink.build/gcc44-4.3.999-20081120/gcc-4.4-20081120/gcc/testsuite/gcc.dg/tree-ssa/vrp47.c -O2 -fdump-tree-vrp -fdump-tree-dom -S -o vrp47.s (timeout = 300) PASS: gcc.dg/tree-ssa/vrp47.c (test for excess errors) FAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "[xy][^ ]* !=" 0 FAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times dom1 "x[^ ]* & y" 1 XFAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "x[^ ]* & y" 1 PASS: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "x[^ ]* [|] y" 1 PASS: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "x[^ ]* \^ 1" 1
Created attachment 16741 [details] assembly file for gcc.dg/tree-ssa/vrp47.c on powerpc-apple-darwin9
The patch which introduced this testcase: http://gcc.gnu.org/ml/gcc-patches/2008-08/msg01925.html I thought I reported this failure to Paolo but I can't find the email.
This test also fails on powerpc64-unknown-linux-gnu for both -m32 and -m64.
See the analysis in http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00801.html which skips the test for MIPS targets.
So should we have... Index: gcc/testsuite/gcc.dg/tree-ssa/vrp47.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/vrp47.c (revision 144342) +++ gcc/testsuite/gcc.dg/tree-ssa/vrp47.c (working copy) @@ -30,10 +30,10 @@ /* Test that x and y are never compared to 0 -- they're always known to be 0 or 1. */ -/* { dg-final { scan-tree-dump-times "\[xy\]\[^ \]* !=" 0 "vrp1" } } */ +/* { dg-final { scan-tree-dump-times "\[xy\]\[^ \]* !=" 0 "vrp1" { xfail powerpc*-*-* } } } */ /* This one needs more copy propagation that only happens in dom1. */ -/* { dg-final { scan-tree-dump-times "x\[^ \]* & y" 1 "dom1" } } */ +/* { dg-final { scan-tree-dump-times "x\[^ \]* & y" 1 "dom1" { xfail powerpc*-*-* } } } */ /* { dg-final { scan-tree-dump-times "x\[^ \]* & y" 1 "vrp1" { xfail *-*-* } } } */ /* These two are fully simplified by VRP. */
Subject: Re: gcc.dg/tree-ssa/vrp47.c fails on powerpc I'd rather do so only on the branch when it is created. I'm pretty sure this can be fixed, but it's probably not stage4 stuff.
I'm seeing the same on i386-unknown-freebsd7.1. PASS: gcc.dg/tree-ssa/vrp47.c (test for excess errors) FAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "[xy][^ ]* !=" 0 FAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times dom1 "x[^ ]* & y" 1 XFAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "x[^ ]* & y" 1 FAIL: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "x[^ ]* [|] y" 1 PASS: gcc.dg/tree-ssa/vrp47.c scan-tree-dump-times vrp1 "x[^ ]* \^ 1" 1 Is this the same issue, or should I open a different report?
Subject: Re: gcc.dg/tree-ssa/vrp47.c fails on powerpc > Is this the same issue, or should I open a different report? I think it is the same, I will verify.
See the same on hppa1.1-hp-hpux10.20 but not on hppa2.0w-hp-hpux11.11: http://gcc.gnu.org/ml/gcc-testresults/2009-08/msg00185.html
Any new activity here? Still failing on powerpc.
Still fails on hppa1.1-hp-hpux10.20 with 4.6.0 revision 170207.
Fails on m68k-linux too, with gcc-4.4.5, 4.5.2, and 4.6-20110219.
Confirming that this also still fails on i386-pc-solaris2.10. Should probably change the bug title and the target as it fails on more than just powerpc.
*** Bug 51942 has been marked as a duplicate of this bug. ***
As of 186222, no longer seems to fail on i386-pc-solaris2.10
http://gcc.gnu.org/ml/gcc-testresults/2013-12/msg02265.html
This test no longer fails on powerpc after my patch to make powerpc*-*-* a logical_op_short_circuit target (https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00637.html). Searching the test-results, looks like m68k is the only other target where it's still failing(https://gcc.gnu.org/ml/gcc-testresults/2014-07/msg00700.html). More than likely for the same reason since it looks like that target doesn't define LOGICAL_OP_NON_SHORT_CIRCUIT or BRANCH_COST, which means it should default to false.
For powerpc, I only see the failures in 4.8.5 and 4.9.{3,4} results: /home/msebor/Documents/GCC/testresults/2016-01/msg02767.html They are present in m68k-unknown-linux-gnu results for 6.0 so I added it to the list of targets: /home/msebor/Documents/GCC/testresults/2016-01/msg02733.html
Author: law Date: Thu Nov 17 23:54:46 2016 New Revision: 242576 URL: https://gcc.gnu.org/viewcvs?rev=242576&root=gcc&view=rev Log: PR middle-end/38219 * gcc.dg/tree-ssa/vrp47.c: Do not run on m68k. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp47.c
Fixed on the trunk.