re PR target/23424 (cris.md rtl canonicalization bug)
authorHans-Peter Nilsson <hp@axis.com>
Fri, 4 Nov 2005 21:24:20 +0000 (21:24 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Fri, 4 Nov 2005 21:24:20 +0000 (21:24 +0000)
PR target/23424
* gcc.dg/torture/pr23424-1.c: New test.

From-SVN: r106507

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr23424-1.c [new file with mode: 0644]

index 0b0b8ad04cd9faf11b2b9a29d4fa454bcd80a06f..cd669e3285cb4772ca885214b4cd9191b8be8d32 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR target/23424
+       * gcc.dg/torture/pr23424-1.c: New test.
+
 2005-11-04  Richard Henderson  <rth@redhat.com>
 
        * gcc.target/i386/20000609-1.c, gcc.target/i386/20000614-1.c,
diff --git a/gcc/testsuite/gcc.dg/torture/pr23424-1.c b/gcc/testsuite/gcc.dg/torture/pr23424-1.c
new file mode 100644 (file)
index 0000000..91950d7
--- /dev/null
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+extern char *x;
+extern void foo (void);
+void f (char *s, char *se, char *mp, char *y)
+{
+  while (s != se)
+    {
+      char *p;
+      foo ();
+      p = s + *mp;
+      *y++ = *p;
+      s = p;
+    }
+
+  x = s;
+}