2 pr16790-1.c from the execute part of the gcc torture tests.
11 /* PR middle-end/16790. */
15 static void test1(unsigned int u1
)
17 unsigned int y_final_1
;
18 signed short y_middle
;
19 unsigned int y_final_2
;
21 y_final_1
= (unsigned int)( (signed short)(u1
* 2) * 3 );
22 y_middle
= (signed short)(u1
* 2);
23 y_final_2
= (unsigned int)( y_middle
* 3 );
25 if (y_final_1
!= y_final_2
)
30 static void test2(unsigned int u1
)
32 unsigned int y_final_1
;
33 signed short y_middle
;
34 unsigned int y_final_2
;
36 y_final_1
= (unsigned int)( (signed short)(u1
<< 1) * 3 );
37 y_middle
= (signed short)(u1
<< 1);
38 y_final_2
= (unsigned int)( y_middle
* 3 );
40 if (y_final_1
!= y_final_2
)
46 testTortureExecute (void)