3 !!ORIGIN!! SDCC regression tests
4 !!LICENCE!! GPL, read COPYING.GPL
10 unsigned char success=0;
11 unsigned char failures=0;
12 unsigned char dummy=0;
14 unsigned int uint0 = 0;
15 unsigned int uint1 = 0;
16 unsigned char uchar0 = 0;
17 unsigned char uchar1 = 0;
18 unsigned long ulong0 = 0;
26 void and_lit2uchar(void)
47 void and_lit2uint(void)
88 void and_lit2ulong(void)
90 if(ulong0 != 0xffffffff)
95 if(ulong0 != 0x7fffffff)
100 if(ulong0 != 0x7f00ffff)
103 ulong0 &= 0xfeff00ff;
105 if(ulong0 != 0x7e0000ff)
110 void and_uchar2uchar(void)
119 uchar0 = uchar1 & 0xfe;
142 printf("failures: %d\n",failures);