Commit | Line | Data |
---|---|---|
4a71579b PC |
1 | #include "alu.inc" |
2 | ||
3 | .code | |
4 | prolog | |
5 | ||
6 | #define AND(N, I0, I1, V) ALU(N, , and, I0, I1, V) | |
7 | ||
8 | AND(0, 0x7fffffff, 1, 1) | |
9 | AND(1, 1, 0x7fffffff, 1) | |
10 | AND(2, 0x80000000, 1, 0) | |
11 | AND(3, 1, 0x80000000, 0) | |
12 | AND(4, 0x7fffffff, 0x80000000, 0) | |
13 | AND(5, 0x80000000, 0x7fffffff, 0) | |
14 | AND(6, 0x7fffffff, 0xffffffff, 0x7fffffff) | |
15 | AND(7, 0xffffffff, 0x7fffffff, 0x7fffffff) | |
16 | AND(8, 0xffffffff, 0xffffffff, 0xffffffff) | |
17 | AND(9, 0x7fffffff, 0, 0) | |
18 | AND(10, 0, 0x7fffffff, 0) | |
19 | #if __WORDSIZE == 64 | |
20 | AND(11, 0x7fffffffffffffff, 1, 1) | |
21 | AND(12, 1, 0x7fffffffffffffff, 1) | |
22 | AND(13, 0x8000000000000000, 1, 0) | |
23 | AND(14, 1, 0x8000000000000000, 0) | |
24 | AND(15, 0x7fffffffffffffff, 0x8000000000000000, 0) | |
25 | AND(16, 0x8000000000000000, 0x7fffffffffffffff, 0) | |
26 | AND(17, 0x7fffffffffffffff, 0xffffffffffffffff, 0x7fffffffffffffff) | |
27 | AND(18, 0xffffffffffffffff, 0x7fffffffffffffff, 0x7fffffffffffffff) | |
28 | AND(19, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff) | |
29 | #endif | |
30 | ||
31 | prepare | |
32 | pushargi ok | |
33 | ellipsis | |
34 | finishi @printf | |
35 | ret | |
36 | epilog |