aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2002-11-21 22:08:15 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2002-11-21 22:08:15 +0000
commit75c2b9730dd2764b603d48f756b76cc2965ab7b5 (patch)
tree5b0e1689a00d4f12c2e640846fd039b3e57ec7f8
parent1c83ea9fd0f1a301ec09499ae9d8bca527c41e6c (diff)
downloadgcc-75c2b9730dd2764b603d48f756b76cc2965ab7b5.zip
gcc-75c2b9730dd2764b603d48f756b76cc2965ab7b5.tar.gz
gcc-75c2b9730dd2764b603d48f756b76cc2965ab7b5.tar.bz2
* gcc.dg/i386-unroll-1.c: New test.
From-SVN: r59361
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/i386-unroll-1.c17
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 510a913..24b6900 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..9aa2275
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/i386-unroll-1.c
@@ -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);
+}