summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-unroll-1.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-21 22:08:15 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-21 22:08:15 +0000
commit790088f319969f84937d5904c4cdd461d45ce77d (patch)
tree5b0e1689a00d4f12c2e640846fd039b3e57ec7f8 /gcc/testsuite/gcc.dg/i386-unroll-1.c
parentaef309a12f6689011d284190a21133e79a9f7cd2 (diff)
downloadgcc-790088f319969f84937d5904c4cdd461d45ce77d.tar.gz
* gcc.dg/i386-unroll-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59361 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/i386-unroll-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/i386-unroll-1.c17
1 files changed, 17 insertions, 0 deletions
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 00000000000..9aa227512f1
--- /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);
+}