1 /* PR tree-optimization/55831 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O -fstrict-overflow -ftree-vectorize -Wno-unused-label" } */ 4 5 int g; 6 short p, q; 7 8 void foo(void)9foo (void) 10 { 11 short a = p, b = q, i; 12 13 if (a) 14 { 15 label: 16 for (i = 0; i < 8; i++) 17 b ^= a++; 18 19 if (!b) 20 g = 0; 21 } 22 } 23 24 void bar(void)25bar (void) 26 { 27 short a = p, b = q, i; 28 29 if (a) 30 { 31 label: 32 for (i = 0; i < 8; i++) 33 b ^= (a = a + 1); 34 35 if (!b) 36 g = 0; 37 } 38 } 39 40