Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / m68k / pr47192.c
blob5bbef586632be34ac9e2902c11ba1051ac750a6c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mcpu=51qe -fdisable-ipa-pure-const -fdump-rtl-pro_and_epilogue" } */
3 /* { dg-final { scan-rtl-dump-times "unspec_volatile" 1 "pro_and_epilogue"} } */
6 char F(short *ty);
8 short V(char cmd)
10 static short st256;
11 static short stc;
12 short sc;
13 short scd;
14 short d;
16 F(&sc);
18 if (cmd == 4)
20 st256 = 0;
21 d = 0;
23 else
25 scd = sc - stc;
26 if (scd < -128)
28 scd += 256;
30 d = st256 >> 8;
31 st256 -= d << 8;
33 stc = sc;
34 return d;