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-*-* } && ia32 } } } */ 5 6 7 extern void abort (void); 8 9 int array[6] = { 1,2,3,4,5,6 }; 10 foo()11void foo() 12 { 13 int i; 14 15 for (i = 0; i < 5; i++) 16 array[i] = 0; 17 } 18 main()19int main() 20 { 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; 27 } 28