Commit e9934c8c by Feng Xue Committed by Feng Xue

re PR testsuite/92125 (New test gcc.dg/ipa/pr91088.c introduced in r277054 fails)

PR testsuite/92125

2019-10-17  Feng Xue  <fxue@os.amperecomputing.com>

        PR testsuite/92125
        * gcc.dg/ipa/pr91088.c: Change char conversion to bitand.

From-SVN: r277095
parent 7ca9ca86
2019-10-17 Feng Xue <fxue@os.amperecomputing.com>
PR testsuite/92125
* gcc.dg/ipa/pr91088.c: Change char conversion to bitand.
2019-10-17 Jakub Jelinek <jakub@redhat.com> 2019-10-17 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/92056 PR tree-optimization/92056
......
...@@ -76,7 +76,7 @@ int callee2 (short *p) ...@@ -76,7 +76,7 @@ int callee2 (short *p)
int callee3 (int v) int callee3 (int v)
{ {
if ((27 % ((1 - (char) v) * 3)) < 6) if ((27 % ((1 - (v & 0xff)) * 3)) < 6)
{ {
large_code; large_code;
return v + 2; return v + 2;
...@@ -117,4 +117,4 @@ int caller () ...@@ -117,4 +117,4 @@ int caller ()
/* { dg-final { scan-ipa-dump-times "Creating a specialized node of callee3" 1 "cp" } } */ /* { dg-final { scan-ipa-dump-times "Creating a specialized node of callee3" 1 "cp" } } */
/* { dg-final { scan-ipa-dump "op0\\\[offset: 32],\\(\\(short int\\) #\\),\\(\\(int\\) #\\),\\(1300 / #\\) == 19" "cp" } } */ /* { dg-final { scan-ipa-dump "op0\\\[offset: 32],\\(\\(short int\\) #\\),\\(\\(int\\) #\\),\\(1300 / #\\) == 19" "cp" } } */
/* { dg-final { scan-ipa-dump "op0\\\[ref offset: 0],\\(# \\^ 1\\) <" "cp" } } */ /* { dg-final { scan-ipa-dump "op0\\\[ref offset: 0],\\(# \\^ 1\\) <" "cp" } } */
/* { dg-final { scan-ipa-dump "op0,\\(\\(char\\) #\\),\\(\\(int\\) #\\),\\(1 - #\\),\\(# \\* 3\\),\\(27 % #\\) <" "cp" } } */ /* { dg-final { scan-ipa-dump "op0,\\(# & 255\\),\\(1 - #\\),\\(# \\* 3\\),\\(27 % #\\) <" "cp" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment