Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / unroll-1.c
blob5ff07e21e81c30ddb68ff1600f85563c2f340ff5
1 /* PR optimization/8599 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -funroll-loops" } */
4 /* { dg-options "-mtune=k6 -O2 -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
7 extern void abort (void);
9 int array[6] = { 1,2,3,4,5,6 };
11 void foo()
13 int i;
15 for (i = 0; i < 5; i++)
16 array[i] = 0;
19 int main()
21 foo();
22 if (array[0] || array [1] || array[2] || array[3] || array[4])
23 abort ();
24 if (array[5] != 6)
25 abort ();
26 return 0;