re PR testsuite/92125 (New test gcc.dg/ipa/pr91088.c introduced in r277054 fails)
authorFeng Xue <fxue@os.amperecomputing.com>
Thu, 17 Oct 2019 09:55:37 +0000 (09:55 +0000)
committerFeng Xue <fxue@gcc.gnu.org>
Thu, 17 Oct 2019 09:55:37 +0000 (09:55 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr91088.c

index eb3112d..38dd0d2 100644 (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
index a81c59f..cc146a8 100644 (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" } } */