diff mbox series

[committed] testsuite: Add testcase for already fixed PR [PR90311]

Message ID 20200305160330.GE2156@tucnak
State New
Headers show
Series [committed] testsuite: Add testcase for already fixed PR [PR90311] | expand

Commit Message

Jakub Jelinek March 5, 2020, 4:03 p.m. UTC
Hi!

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))
and x86_64-linux and i686-linux, committed to trunk as obvious.

2020-03-05  Jakub Jelinek  <jakub@redhat.com>

	PR target/90311
	* gcc.c-torture/execute/pr90311.c: New test.


	Jakub

Comments

Jakub Jelinek March 6, 2020, 8:06 a.m. UTC | #1
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
diff mbox series

Patch

--- 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;
+}