Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/20070501-1.c

raw
1 typedef signed int signed16 __attribute__ ((__mode__ (__HI__)));
2 typedef unsigned int unsigned16 __attribute__ ((__mode__ (__HI__)));
3 typedef signed16 HI;
4 typedef unsigned16 UHI;
5 unsigned short f(int y)
6 {
7 HI tmp_b4;
8 tmp_b4 = y;
9 UHI opval;
10 if (tmp_b4 == -32768)
11 opval = 32767;
12 else
13 opval = -tmp_b4;
14 return opval;
15 }
16