git subrepo pull --force deps/lightrec
[pcsx_rearmed.git] / deps / lightning / check / alu_com.tst
CommitLineData
4a71579b
PC
1#include "alu.inc"
2
3.code
4 prolog
5
6#define COM(N, I0, V) UN(N, com, I0, V)
7
8#if __WORDSIZE == 32
9 COM(0, 0, 0xffffffff)
10 COM(1, 1, 0xfffffffe)
11 COM(2, 0xffffffff, 0)
12 COM(3, 0x80000000, 0x7fffffff)
13 COM(4, 0x7fffffff, 0x80000000)
14 COM(5, 0x80000001, 0x7ffffffe)
15#else
16 COM(0, 0, 0xffffffffffffffff)
17 COM(1, 1, 0xfffffffffffffffe)
18 COM(2, 0xffffffff, 0xffffffff00000000)
19 COM(3, 0x80000000, 0xffffffff7fffffff)
20 COM(4, 0x7fffffff, 0xffffffff80000000)
21 COM(5, 0x80000001, 0xffffffff7ffffffe)
22 COM(6, 0xffffffffffffffff, 0)
23 COM(7, 0x8000000000000000, 0x7fffffffffffffff)
24 COM(8, 0x7fffffffffffffff, 0x8000000000000000)
25 COM(9, 0x8000000000000001, 0x7ffffffffffffffe)
26#endif
27
28 prepare
29 pushargi ok
30 ellipsis
31 finishi @printf
32 ret
33 epilog