Abt testcase fold-cond-1.c
Mohamed Shafi
shafitvm@gmail.com
Tue Nov 21 09:08:00 GMT 2006
Hello all,
The testcase fold-cond-1.c is comparing the tree dump *.original and
matches with the patten given in the testcase.
For my target the dump file is like this
/ ---- /
;; Function test2 (test2)
;; enabled by -tree-original
{
return (int) (_Bool) (c == 0 || d != 0);
}
/ ----- /
;; Function test4 (test4)
;; enabled by -tree-original
{
return (int) (_Bool) (g != 0 || h != 0);
}
And the test case is failing because it fails to match with the
pattern for test4, which should be
{ dg-final { scan-tree-dump-times "\\(g \\| h\\) != 0" 1 "original" } }
according to the test case.
My question is
1.When in the dumps the pattern for test2 and test4 are almost
similar, why the test case is looking for a different pattern for
test4 and not one similar to that of test2 ?
When i checked with the testsuites for gcc4.2, there also the expected
pattern for test2 and test4 are different when both the functions are
almost same.
2. Can i ignore this failure ?
Thanks in advance,
Regards,
Shafi
More information about the Gcc
mailing list