Message ID | 20200305160330.GE2156@tucnak |
---|---|
State | New |
Headers | show |
Series | [committed] testsuite: Add testcase for already fixed PR [PR90311] | expand |
On Thu, Mar 05, 2020 at 05:03:30PM +0100, Jakub Jelinek wrote: > This PR has been fixed by r10-3970. Testcase tested with cross to > armv7hl-linux-gnueabi (all of r10-3969 (FAIL), r10-3970 and current trunk (PASS)) It was actually fixed by r10-1963-g24990170d318194b265c2fc76d93965275da462c aka svn r273572 and that is what I've tested it with. Sorry for the confusion. > 2020-03-05 Jakub Jelinek <jakub@redhat.com> > > PR target/90311 > * gcc.c-torture/execute/pr90311.c: New test. Jakub
--- gcc/testsuite/gcc.c-torture/execute/pr90311.c.jj 2020-03-05 16:35:46.183005546 +0100 +++ gcc/testsuite/gcc.c-torture/execute/pr90311.c 2020-03-05 16:35:33.390195187 +0100 @@ -0,0 +1,16 @@ +/* PR rtl-optimization/90311 */ + +int a, b; + +int +main () +{ + unsigned long long x; + unsigned int c; + __builtin_add_overflow ((unsigned char) a, b, &c); + b -= c < (unsigned char) a; + x = b; + if (x) + __builtin_abort (); + return 0; +}