Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / m68k / pr39726.c
blob94d41ba2159957482e3fb53bee2fed53560fc751
1 /* { dg-do assemble } /*
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
3 /* { dg-final { object-size text <= 228 } } */
5 unsigned char v;
7 int a0bs (unsigned char u, unsigned char w)
9 if ((u - w) & 0x80)
10 v = 1;
13 int a1bs (unsigned char u, unsigned char w)
15 if ((u + w) & 0x80)
16 v = 1;
19 int a0b (unsigned char u, unsigned char w)
21 if ((u - w) & 0x22)
22 v = 1;
25 int a1b (unsigned char u, unsigned char w)
27 if ((u + w) & 0x22)
28 v = 1;
31 int a0ws (unsigned short u, unsigned short w)
33 if ((u - w) & 0x8000)
34 v = 1;
37 int a1ws (unsigned short u, unsigned short w)
39 if ((u + w) & 0x8000)
40 v = 1;
43 int a0wbs (unsigned short u, unsigned short w)
45 if ((u - w) & 0x80)
46 v = 1;
49 int a1wbs (unsigned short u, unsigned short w)
51 if ((u + w) & 0x80)
52 v = 1;
55 int a0w (unsigned short u, unsigned short w)
57 if ((u - w) & 0x8421)
58 v = 1;
61 int a1w (unsigned short u, unsigned short w)
63 if ((u + w) & 0x8421)
64 v = 1;