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
This commit is contained in:
Feng Xue 2019-10-17 09:55:37 +00:00 committed by Feng Xue
parent 7ca9ca86bd
commit e9934c8c08
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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>
PR tree-optimization/92056

View File

@ -76,7 +76,7 @@ int callee2 (short *p)
int callee3 (int v)
{
if ((27 % ((1 - (char) v) * 3)) < 6)
if ((27 % ((1 - (v & 0xff)) * 3)) < 6)
{
large_code;
return v + 2;
@ -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 "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,\\(\\(char\\) #\\),\\(\\(int\\) #\\),\\(1 - #\\),\\(# \\* 3\\),\\(27 % #\\) <" "cp" } } */
/* { dg-final { scan-ipa-dump "op0,\\(# & 255\\),\\(1 - #\\),\\(# \\* 3\\),\\(27 % #\\) <" "cp" } } */