OSDN Git Service

* gcc.dg/i386-unroll-1.c: New test.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Nov 2002 22:08:15 +0000 (22:08 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Nov 2002 22:08:15 +0000 (22:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59361 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 510a913..24b6900 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);
+}