1 #include "gpsim_assert.h"
3 unsigned char failures=0;
6 unsigned int uint0 = 0;
7 unsigned int uint1 = 0;
8 unsigned char uchar0 = 0;
9 unsigned char uchar1 = 0;
10 unsigned long ulong0 = 0;
15 ASSERT(MANGLE(failures) == 0);
20 void and_compound1(void)
22 uchar0 = (uchar0 + 1) & 0x0f;
29 void and_compound2(void)
31 uchar0 = (uchar1 + 1) & 0x0f;
40 void or_compound1(void)
42 uchar0 = (uchar0 + 0xe) | 0x0f;
49 void or_compound2(void)
51 uchar0 = (uchar1 + 0xf) | 0x0f;
62 void xor_compound1(void)
64 uchar0 = (uchar0 + 1) ^ 0x0f;
71 void xor_compound2(void)
73 uchar0 = (uchar1 + 0xf) ^ 0x0f;
82 void neg_compound1(void)
84 uchar0 = ~(uchar0 + 1);