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_compound1(void)
28 uchar0 = (uchar0 + 1) & 0x0f;
34 void and_compound2(void)
36 uchar0 = (uchar1 + 1) & 0x0f;
45 void or_compound1(void)
47 uchar0 = (uchar0 + 0xe) | 0x0f;
53 void or_compound2(void)
55 uchar0 = (uchar1 + 0xf) | 0x0f;
64 void xor_compound1(void)
66 uchar0 = (uchar0 + 1) ^ 0x0f;
72 void xor_compound2(void)
74 uchar0 = (uchar1 + 0xf) ^ 0x0f;
83 void neg_compound1(void)
85 uchar0 = ~(uchar0 + 1);
115 printf("failures: %d\n",failures);