Revert SeaBIOS change due to overzealous commit -a
[qemu/mdroth.git] / tests / lm32 / test_cmpg.S
blob012407874cdbfb66246796aed6ab9986938153c8
1 .include "macros.inc"
3 start
5 test_name CMPG_1
6 mvi r1, 0
7 mvi r2, 0
8 cmpg r3, r1, r2
9 check_r3 0
11 test_name CMPG_2
12 mvi r1, 0
13 mvi r2, 1
14 cmpg r3, r1, r2
15 check_r3 0
17 test_name CMPG_3
18 mvi r1, 1
19 mvi r2, 0
20 cmpg r3, r1, r2
21 check_r3 1
23 test_name CMPG_4
24 mvi r1, 1
25 mvi r2, 1
26 cmpg r3, r1, r2
27 check_r3 0
29 test_name CMPG_5
30 mvi r1, 0
31 mvi r2, -1
32 cmpg r3, r1, r2
33 check_r3 1
35 test_name CMPG_6
36 mvi r1, -1
37 mvi r2, 0
38 cmpg r3, r1, r2
39 check_r3 0
41 test_name CMPG_7
42 mvi r1, -1
43 mvi r2, -1
44 cmpg r3, r1, r2
45 check_r3 0
47 test_name CMPG_8
48 mvi r3, 0
49 mvi r2, 1
50 cmpg r3, r3, r2
51 check_r3 0
53 test_name CMPG_9
54 mvi r3, 1
55 mvi r2, 0
56 cmpg r3, r3, r2
57 check_r3 1
59 test_name CMPG_10
60 mvi r3, 0
61 cmpg r3, r3, r3
62 check_r3 0
64 end