aio-win32: Factor out duplicate code into aio_dispatch_handlers
[qemu/ar7.git] / tests / tcg / lm32 / test_sub.S
blob44b74a9e103537fb905b54de1068b2ae7a3190b0
1 .include "macros.inc"
3 start
5 test_name SUB_1
6 mvi r1, 0
7 mvi r2, 0
8 sub r3, r1, r2
9 check_r3 0
11 test_name SUB_2
12 mvi r1, 0
13 mvi r2, 1
14 sub r3, r1, r2
15 check_r3 -1
17 test_name SUB_3
18 mvi r1, 1
19 mvi r2, 0
20 sub r3, r1, r2
21 check_r3 1
23 test_name SUB_4
24 mvi r1, 1
25 mvi r2, -1
26 sub r3, r1, r2
27 check_r3 2
29 test_name SUB_5
30 mvi r1, -1
31 mvi r2, 1
32 sub r3, r1, r2
33 check_r3 -2
35 test_name SUB_6
36 mvi r1, -1
37 mvi r2, 0
38 sub r3, r1, r2
39 check_r3 -1
41 test_name SUB_7
42 mvi r1, 0
43 mvi r2, -1
44 sub r3, r1, r2
45 check_r3 1
47 test_name SUB_8
48 mvi r3, 2
49 sub r3, r3, r3
50 check_r3 0
52 test_name SUB_9
53 mvi r1, 4
54 mvi r3, 2
55 sub r3, r1, r3
56 check_r3 2
58 test_name SUB_10
59 mvi r1, 4
60 mvi r3, 2
61 sub r3, r3, r1
62 check_r3 -2
64 test_name SUB_11
65 mvi r1, 4
66 sub r3, r1, r1
67 check_r3 0
69 test_name SUB_12
70 load r1 0x12345678
71 load r2 0xabcdef97
72 sub r3, r1, r2
73 check_r3 0x666666e1
75 end