1 /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ 2 /* { dg-options "-O -fschedule-insns2 -fselective-scheduling2" } */ 3 4 struct S 5 { 6 volatile long vl; 7 int i; 8 }; 9 struct S s1, s2; 10 11 void foo(int j,int c)12foo (int j, int c) 13 { 14 int i; 15 for (i = 0; i <= j; i++) 16 { 17 if (c) 18 s2.vl += s1.vl; 19 s1 = s2; 20 } 21 } 22