]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR testsuite/92125
authorfxue <fxue@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2019 09:55:37 +0000 (09:55 +0000)
committerfxue <fxue@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2019 09:55:37 +0000 (09:55 +0000)
2019-10-17  Feng Xue  <fxue@os.amperecomputing.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277095 138bc75d-0d04-0410-961f-82ee72b054a4

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

index eb3112d2672b4cf60d160a9b7bc5b62961568d9e..38dd0d2c253403a00dc67f3659343d322721ee01 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 a81c59f98b16769832fd1064cd0606be8bd2f649..cc146a88134e335de4b3d9fe3ac5c466a104f961 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" } } */