diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-21 22:08:15 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-21 22:08:15 +0000 |
commit | 790088f319969f84937d5904c4cdd461d45ce77d (patch) | |
tree | 5b0e1689a00d4f12c2e640846fd039b3e57ec7f8 /gcc/testsuite/gcc.dg/i386-unroll-1.c | |
parent | aef309a12f6689011d284190a21133e79a9f7cd2 (diff) | |
download | gcc-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.c | 17 |
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); +} |