1 /* { dg-require-effective-target int32plus } */
5 int __attribute__ ((noinline
)) foo (short x
, unsigned short y
)
10 int __attribute__ ((noinline
)) bar (unsigned short x
, short y
)
17 if (foo (-2, 0xffff) != -131070)
19 if (foo (2, 0xffff) != 131070)
21 if (foo (-32768, 0x8000) != -1073741824)
23 if (foo (32767, 0x8000) != 1073709056)
26 if (bar (0xffff, -2) != -131070)
28 if (bar (0xffff, 2) != 131070)
30 if (bar (0x8000, -32768) != -1073741824)
32 if (bar (0x8000, 32767) != 1073709056)