try a new github issue template
[pcsx_rearmed.git] / deps / lightning / check / alu_xor.tst
1 #include "alu.inc"
2
3 .code
4         prolog
5
6 #define XOR(N, I0, I1, V)       ALU(N, , xor, I0, I1, V)
7
8         XOR(0,  0x7fffffff,         1,                  0x7ffffffe)
9         XOR(1,  1,                  0x7fffffff,         0x7ffffffe)
10         XOR(2,  0x80000000,         1,                  0x80000001)
11         XOR(3,  1,                  0x80000000,         0x80000001)
12         XOR(4,  0x7fffffff,         0x80000000,         0xffffffff)
13         XOR(5,  0x80000000,         0x7fffffff,         0xffffffff)
14         XOR(6,  0x7fffffff,         0xffffffff,         0x80000000)
15         XOR(7,  0xffffffff,         0x7fffffff,         0x80000000)
16         XOR(9,  0xffffffff,         0xffffffff,         0)
17         XOR(10, 0x7fffffff,         0,                  0x7fffffff)
18         XOR(11, 0,                  0x7fffffff,         0x7fffffff)
19 #if __WORDSIZE == 64
20         XOR(12, 0x7fffffffffffffff, 1,                  0x7ffffffffffffffe)
21         XOR(13, 1,                  0x7fffffffffffffff, 0x7ffffffffffffffe)
22         XOR(14, 0x8000000000000000, 1,                  0x8000000000000001)
23         XOR(15, 1,                  0x8000000000000000, 0x8000000000000001)
24         XOR(16, 0x7fffffffffffffff, 0x8000000000000000, 0xffffffffffffffff)
25         XOR(17, 0x8000000000000000, 0x7fffffffffffffff, 0xffffffffffffffff)
26         XOR(18, 0x7fffffffffffffff, 0xffffffffffffffff, 0x8000000000000000)
27         XOR(19, 0xffffffffffffffff, 0x7fffffffffffffff, 0x8000000000000000)
28         XOR(20, 0xffffffffffffffff, 0xffffffffffffffff, 0)
29 #endif
30
31         prepare
32                 pushargi ok
33                 ellipsis
34         finishi @printf
35         ret
36         epilog