1 /* PR middle-end/16790. */
5 static void test1(unsigned int u1
)
7 unsigned int y_final_1
;
9 unsigned int y_final_2
;
11 y_final_1
= (unsigned int)( (signed short)(u1
* 2) * 3 );
12 y_middle
= (signed short)(u1
* 2);
13 y_final_2
= (unsigned int)( y_middle
* 3 );
15 if (y_final_1
!= y_final_2
)
20 static void test2(unsigned int u1
)
22 unsigned int y_final_1
;
23 signed short y_middle
;
24 unsigned int y_final_2
;
26 y_final_1
= (unsigned int)( (signed short)(u1
<< 1) * 3 );
27 y_middle
= (signed short)(u1
<< 1);
28 y_final_2
= (unsigned int)( y_middle
* 3 );
30 if (y_final_1
!= y_final_2
)