libstdc++: Remove workaround for modules issue [PR113814]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / usmul.c
blob11d485109de99196b3b698929718a8ff064b2d35
1 /* { dg-require-effective-target int32plus } */
2 void abort (void);
3 void exit (int);
5 int __attribute__ ((noinline)) foo (short x, unsigned short y)
7 return x * y;
10 int __attribute__ ((noinline)) bar (unsigned short x, short y)
12 return x * y;
15 int main ()
17 if (foo (-2, 0xffff) != -131070)
18 abort ();
19 if (foo (2, 0xffff) != 131070)
20 abort ();
21 if (foo (-32768, 0x8000) != -1073741824)
22 abort ();
23 if (foo (32767, 0x8000) != 1073709056)
24 abort ();
26 if (bar (0xffff, -2) != -131070)
27 abort ();
28 if (bar (0xffff, 2) != 131070)
29 abort ();
30 if (bar (0x8000, -32768) != -1073741824)
31 abort ();
32 if (bar (0x8000, 32767) != 1073709056)
33 abort ();
35 exit (0);