Add file I missed. Whoops.
authorSegher Boessenkool <segher@gcc.gnu.org>
Thu, 22 Jan 2015 00:37:17 +0000 (01:37 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 22 Jan 2015 00:37:17 +0000 (01:37 +0100)
From-SVN: r219982

gcc/testsuite/gcc.c-torture/execute/pr64682.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/pr64682.c b/gcc/testsuite/gcc.c-torture/execute/pr64682.c
new file mode 100644 (file)
index 0000000..58f610a
--- /dev/null
@@ -0,0 +1,26 @@
+/* PR rtl-optimization/64682 */
+
+int a, b = 1;
+
+__attribute__((noinline, noclone)) void
+foo (int x)
+{
+  if (x != 5)
+    __builtin_abort ();
+}
+
+int
+main ()
+{
+  int i;
+  for (i = 0; i < 56; i++)
+    for (; a; a--)
+      ;
+  int *c = &b;
+  if (*c)
+    *c = 1 % (unsigned int) *c | 5;
+
+  foo (b);
+
+  return 0;
+}