2 20020423-1.c from the execute part of the gcc torture suite.
12 /* Verify that the multiplicative folding code is not fooled
13 by the mix between signed variables and unsigned constants. */
15 void testTortureExecute (void)
20 result
= ((my_int
*2 + 4) - 8U) / 2;
24 result
= ((my_int
*2 - 4U) + 2) / 2;
28 result
= (((my_int
+ 2) * 2) - 8U - 4) / 2;
31 result
= (((my_int
+ 2) * 2) - (8U + 4)) / 2;
35 result
= ((my_int
*4 + 2U) - 4U) / 2;