PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / divcmp-3.c
blobba52c9e24141647400a26bf7939245697b15de69
1 extern void abort(void);
3 int test1(char x)
5 return x/100 == 3;
8 int test1u(unsigned char x)
10 return x/100 == 3;
13 int test2(char x)
15 return x/100 != 3;
18 int test2u(unsigned char x)
20 return x/100 != 3;
23 int test3(char x)
25 return x/100 < 3;
28 int test3u(unsigned char x)
30 return x/100 < 3;
33 int test4(char x)
35 return x/100 <= 3;
38 int test4u(unsigned char x)
40 return x/100 <= 3;
43 int test5(char x)
45 return x/100 > 3;
48 int test5u(unsigned char x)
50 return x/100 > 3;
53 int test6(char x)
55 return x/100 >= 3;
58 int test6u(unsigned char x)
60 return x/100 >= 3;
64 int main()
66 int c;
68 for (c=-128; c<256; c++)
70 if (test1(c) != 0)
71 abort ();
72 if (test1u(c) != 0)
73 abort ();
74 if (test2(c) != 1)
75 abort ();
76 if (test2u(c) != 1)
77 abort ();
78 if (test3(c) != 1)
79 abort ();
80 if (test3u(c) != 1)
81 abort ();
82 if (test4(c) != 1)
83 abort ();
84 if (test4u(c) != 1)
85 abort ();
86 if (test5(c) != 0)
87 abort ();
88 if (test5u(c) != 0)
89 abort ();
90 if (test6(c) != 0)
91 abort ();
92 if (test6u(c) != 0)
93 abort ();
95 return 0;