PR tree-optimization/81913
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr81913.c
blob11eec4e1eafac5142df71be6cffb0d4e1b0218e9
1 /* PR tree-optimization/81913 */
3 typedef unsigned char u8;
4 typedef unsigned int u32;
6 static u32
7 b (u8 d, u32 e, u32 g)
9 do
11 e += g + 1;
12 d--;
14 while (d >= (u8) e);
16 return e;
19 int
20 main (void)
22 u32 x = b (1, -0x378704, ~0xba64fc);
23 if (x != 0xd93190d0)
24 __builtin_abort ();
25 return 0;