2015-07-23 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jul 2015 11:19:26 +0000 (11:19 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jul 2015 11:19:26 +0000 (11:19 +0000)
PR tree-optimization/66952
* gcc.dg/torture/pr66952.c: Use signed char.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr66952.c

index 6f33103..672be70 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-23  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/66952
+       * gcc.dg/torture/pr66952.c: Use signed char.
+
 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
 
        PR tree-optimization/66926,66951
index 2a98d2e..a5f6e63 100644 (file)
@@ -3,7 +3,7 @@
 int a = 128, b;
 
 static int
-fn1 (char p1, int p2)
+fn1 (signed char p1, int p2)
 {
   return p1 < 0 || p1 > 1 >> p2 ? 0 : p1 << 1;
 }
@@ -11,7 +11,7 @@ fn1 (char p1, int p2)
 static int
 fn2 ()
 {
-  char c = a;
+  signed char c = a;
   b = fn1 (c, 1);
   if ((128 | c) < 0 ? 1 : 0)
     return 1;