Add testcase for PR97596
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 29 Oct 2020 14:14:10 +0000 (10:14 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 29 Oct 2020 14:18:23 +0000 (10:18 -0400)
Add testcase

gcc/testsuite
* gcc.dg/pr97596.c: New.

gcc/testsuite/gcc.dg/pr97596.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/pr97596.c b/gcc/testsuite/gcc.dg/pr97596.c
new file mode 100644 (file)
index 0000000..4a1c91d
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+void
+q8 (__int128 *uv, unsigned short int nf)
+{
+  __int128 i4;
+
+  i4 = -nf;
+  if (i4 << 1 != 0)
+    *uv += nf;
+}