2 !!DESCRIPTION!! regression testing program for comparing longs
3 !!ORIGIN!! SDCC regression tests
4 !!LICENCE!! GPL, read COPYING.GPL
14 #define COMPARE_OUT_OF_RANGE 1
16 unsigned char success = 0;
17 unsigned char failures = 0;
18 unsigned char dummy = 0;
26 unsigned long ulong0 = 0;
27 unsigned long ulong1 = 0;
150 /* compare to 0x20000
162 if(ulong0 != 0x20000)
168 if(ulong1 == 0x20000)
177 /* if(long0 < 0x12345)
211 #ifdef COMPARE_OUT_OF_RANGE
233 #ifdef COMPARE_OUT_OF_RANGE
262 #ifdef COMPARE_OUT_OF_RANGE
263 if(int0 == 0x1234abcd)
268 /* assumes char1 == 0 */
286 printf("long0:%ld long1:%ld\n",long0,long1);
288 printf("(long0 != -1)\n");
293 printf("(long0 > 0)\n");
298 printf("(long1 < 0)\n");
310 long0 = long1 = ulong0 = ulong1 == 0
312 void c_long2long_eq(void)
340 void c_long2long_neq(void)
392 printf("c_0: %d\n",failures);
395 printf("c_long2long_eq: %d\n",failures);
400 printf("c_1: %d\n",failures);
402 printf("c_long2long_neq: %d\n",failures);
407 printf("c_2: %d\n",failures);
412 printf("c_ff: %d\n",failures);
417 printf("c_200: %d\n",failures);
422 printf("c_20000: %d\n",failures);
426 printf("c_minus1: %d\n",failures);
431 printf("c_long2neglit: %d\n",failures);
436 printf("failures: %d\n",failures);