7 return (x
^ INT_MIN
) ^ 0x1234;
10 unsigned int test1u(unsigned int x
)
12 return (x
^ (unsigned int)INT_MIN
) ^ 0x1234;
17 return (x
^ 0x1234) ^ INT_MIN
;
20 unsigned int test2u(unsigned int x
)
22 return (x
^ 0x1234) ^ (unsigned int)INT_MIN
;
27 return (x
+ INT_MIN
) ^ 0x1234;
30 unsigned int test3u(unsigned int x
)
32 return (x
+ (unsigned int)INT_MIN
) ^ 0x1234;
37 return (x
^ 0x1234) + INT_MIN
;
40 unsigned int test4u(unsigned int x
)
42 return (x
^ 0x1234) + (unsigned int)INT_MIN
;
47 return (x
- INT_MIN
) ^ 0x1234;
50 unsigned int test5u(unsigned int x
)
52 return (x
- (unsigned int)INT_MIN
) ^ 0x1234;
57 return (x
^ 0x1234) - INT_MIN
;
60 unsigned int test6u(unsigned int x
)
62 return (x
^ 0x1234) - (unsigned int)INT_MIN
;
72 unsigned int test7u(unsigned int x
)
74 unsigned int y
= (unsigned int)INT_MIN
;
75 unsigned int z
= 0x1234;
86 unsigned int test8u(unsigned int x
)
88 unsigned int y
= 0x1234;
89 unsigned int z
= (unsigned int)INT_MIN
;
100 unsigned int test9u(unsigned int x
)
102 unsigned int y
= (unsigned int)INT_MIN
;
103 unsigned int z
= 0x1234;
114 unsigned int test10u(unsigned int x
)
116 unsigned int y
= 0x1234;
117 unsigned int z
= (unsigned int)INT_MIN
;
128 unsigned int test11u(unsigned int x
)
130 unsigned int y
= (unsigned int)INT_MIN
;
131 unsigned int z
= 0x1234;
142 unsigned int test12u(unsigned int x
)
144 unsigned int y
= 0x1234;
145 unsigned int z
= (unsigned int)INT_MIN
;
150 void test(int a
, int b
)
178 void testu(unsigned int a
, unsigned int b
)
209 #if INT_MAX == 2147483647
210 test(0x00000000,0x80001234);
211 test(0x00001234,0x80000000);
212 test(0x80000000,0x00001234);
213 test(0x80001234,0x00000000);
214 test(0x7fffffff,0xffffedcb);
215 test(0xffffffff,0x7fffedcb);
217 testu(0x00000000,0x80001234);
218 testu(0x00001234,0x80000000);
219 testu(0x80000000,0x00001234);
220 testu(0x80001234,0x00000000);
221 testu(0x7fffffff,0xffffedcb);
222 testu(0xffffffff,0x7fffedcb);
233 testu(0x0000,0x9234);
234 testu(0x8000,0x1234);
235 testu(0x1234,0x8000);
236 testu(0x9234,0x0000);
237 testu(0x7fff,0xedcb);
238 testu(0xffff,0x6dcb);