PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / sms-13.c
blobcd7bb62006ce0424e8f94d19d1bee2cdf9eaaf5a
1 /* PR target/83507 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fmodulo-sched -fno-tree-ter -fno-tree-coalesce-vars" } */
5 void
6 foo (unsigned short int x, unsigned char y)
8 unsigned char *a = &y;
9 unsigned short int b;
10 int c;
12 while (y < 3)
14 if (x != 0)
15 ++y;
16 ++y;
19 for (c = 0; c < 5; ++c)
21 int d = 1;
22 d += b > x;
23 y &= d;
28 c += y;
29 x = c;
31 while (x != 0);