Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / pr16790-1.c
blobdc6a77404b592df2937b3abaf94d3f8984f53c43
1 /* PR middle-end/16790. */
3 extern void abort ();
5 static void test1(unsigned int u1)
7 unsigned int y_final_1;
8 signed short y_middle;
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)
16 abort ();
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)
31 abort ();
35 int main()
37 test1(0x4000U);
38 test2(0x4000U);
39 return 0;