diff options
author | Richard Biener <rguenther@suse.de> | 2015-07-23 11:19:26 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-07-23 11:19:26 +0000 |
commit | f45dacba22647dcee6d6b60751bca39940bbaaf2 (patch) | |
tree | 6fd21bfa2f3f92aaadc60e9d631b2484804970cf /gcc | |
parent | b5fd0440dc8b97f416e8d39d0a1af77124a23cfe (diff) | |
download | gcc-f45dacba22647dcee6d6b60751bca39940bbaaf2.zip gcc-f45dacba22647dcee6d6b60751bca39940bbaaf2.tar.gz gcc-f45dacba22647dcee6d6b60751bca39940bbaaf2.tar.bz2 |
re PR tree-optimization/66952 (wrong code at -O2 and -O3 on x86_64-linux-gnu)
2015-07-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/66952
* gcc.dg/torture/pr66952.c: Use signed char.
From-SVN: r226104
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr66952.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6f33103..672be70 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/torture/pr66952.c b/gcc/testsuite/gcc.dg/torture/pr66952.c index 2a98d2e..a5f6e63 100644 --- a/gcc/testsuite/gcc.dg/torture/pr66952.c +++ b/gcc/testsuite/gcc.dg/torture/pr66952.c @@ -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; |