* gcc.dg/i386-unroll-1.c: New test.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Thu, 21 Nov 2002 22:08:15 +0000 (22:08 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 21 Nov 2002 22:08:15 +0000 (22:08 +0000)
From-SVN: r59361

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

index 510a9132b811934f066eb3feb126828c355b43e4..24b69002af81f8879759fd3dc0de154d95cd6f1a 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.dg/i386-unroll-1.c: New test.
+
 2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.c-torture/compile/20021120-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/i386-unroll-1.c b/gcc/testsuite/gcc.dg/i386-unroll-1.c
new file mode 100644 (file)
index 0000000..9aa2275
--- /dev/null
@@ -0,0 +1,17 @@
+/* PR optimization/8599 */
+/* { dg-do run { target i?86-*-* } } */
+/* { dg-options "-mcpu=k6 -O2 -funroll-loops" } */
+
+extern void exit (int);
+
+void *array[4];
+
+int main ()
+{
+  int i;
+  for (i = 0; i < 4; i++)
+    array[i] = 0;
+
+  exit (0);
+}