This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48754] New: FAIL: gcc.dg/binop-xor(1|3).c scan-tree-dump-times optimized "<bb[^>]*>" *
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Apr 2011 15:33:05 +0000
- Subject: [Bug target/48754] New: FAIL: gcc.dg/binop-xor(1|3).c scan-tree-dump-times optimized "<bb[^>]*>" *
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48754
Summary: FAIL: gcc.dg/binop-xor(1|3).c scan-tree-dump-times
optimized "<bb[^>]*>" *
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dominiq@lps.ens.fr
Target: powerpc*-*-*
gcc.dg/binop-xor(1|3).c is failing on powerpc:
FAIL: gcc.dg/binop-xor1.c scan-tree-dump-times optimized "<bb[^>]*>" 5
FAIL: gcc.dg/binop-xor1.c scan-tree-dump-times optimized "\\^" 1
FAIL: gcc.dg/binop-xor3.c scan-tree-dump-times optimized "<bb[^>]*>" 1
FAIL: gcc.dg/binop-xor3.c scan-tree-dump-times optimized "\\^" 1
(see http://gcc.gnu.org/ml/gcc-testresults/2011-04/msg02081.html and
http://gcc.gnu.org/ml/gcc-testresults/2011-04/msg01980.html ).
The optimized dump is
;; Function foo (foo)
foo (int a, int b, int c)
{
_Bool D.2857;
int D.2843;
<bb 2>:
if (a_2(D) != 0)
goto <bb 3>;
else
goto <bb 4>;
<bb 3>:
if (b_3(D) == 0)
goto <bb 5>;
else
goto <bb 6>;
<bb 4>:
Invalid sum of incoming frequencies 5000, should be 3750
if (b_3(D) != 0)
goto <bb 5>;
else
goto <bb 6>;
<bb 5>:
D.2857_11 = c_4(D) != 0;
D.2843_9 = (int) D.2857_11;
<bb 6>:
Invalid sum of incoming frequencies 8750, should be 10000
# D.2843_1 = PHI <D.2843_9(5), 0(4), 0(3)>
return D.2843_1;
}
instead of
;; Function foo (foo)
foo (int a, int b, int c)
{
_Bool D.2734;
_Bool D.2726;
_Bool D.2725;
_Bool D.2724;
int D.2720;
<bb 2>:
D.2724_3 = a_2(D) != 0;
D.2725_5 = b_4(D) != 0;
D.2726_6 = D.2725_5 ^ D.2724_3;
if (D.2726_6 != 0)
goto <bb 3>;
else
goto <bb 4>;
<bb 3>:
D.2734_12 = c_7(D) != 0;
D.2720_13 = (int) D.2734_12;
<bb 4>:
# D.2720_1 = PHI <D.2720_13(3), 0(2)>
return D.2720_1;
}
on x86_64-apple-darwin10.