1 /* PR rtl-optimization/80903 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O3 -funroll-loops" } */ 4 5 short int a; 6 7 void foo(int x,short int y,short int z)8foo (int x, short int y, short int z) 9 { 10 if (y != 0) 11 { 12 const short int b = 37; 13 y = 0; 14 while (y < b) 15 { 16 while (y < b) 17 { 18 lab: 19 ++y; 20 } 21 for (y = 0; y < b - 1; ++y) 22 ; 23 if (z != 0) 24 { 25 --a; 26 y *= a; 27 } 28 z = x; 29 } 30 x = 0; 31 } 32 33 goto lab; 34 } 35