1#include "macros.inc"
2
3test_suite bi
4
5test beqi
6    movi    a2, 7
7    beqi    a2, 7, 1f
8    test_fail
91:
10    movi    a2, 1
11    beqi    a2, 7, 1f
12    j       2f
131:
14    test_fail
152:
16test_end
17
18test bnei
19    movi    a2, 1
20    bnei    a2, 7, 1f
21    test_fail
221:
23    movi    a2, 7
24    bnei    a2, 7, 1f
25    j       2f
261:
27    test_fail
282:
29test_end
30
31test blti
32    movi    a2, 6
33    blti    a2, 7, 1f
34    test_fail
351:
36    movi    a2, 0xffffffff
37    blti    a2, 7, 1f
38    test_fail
391:
40    movi    a2, 7
41    blti    a2, 7, 1f
42    j       2f
431:
44    test_fail
452:
46test_end
47
48test bgei
49    movi    a2, 7
50    bgei    a2, 7, 1f
51    test_fail
521:
53    movi    a2, 6
54    bgei    a2, 7, 1f
55    j       2f
561:
57    test_fail
582:
59    movi    a2, 0xffffffff
60    bgei    a2, 7, 1f
61    j       2f
621:
63    test_fail
642:
65test_end
66
67test bltui
68    movi    a2, 6
69    bltui   a2, 7, 1f
70    test_fail
711:
72    movi    a2, 7
73    bltui   a2, 7, 1f
74    j       2f
751:
76    test_fail
772:
78    movi    a2, 0xffffffff
79    bltui   a2, 7, 1f
80    j       2f
811:
82    test_fail
832:
84test_end
85
86test bgeui
87    movi    a2, 7
88    bgeui   a2, 7, 1f
89    test_fail
901:
91    movi    a2, 0xffffffff
92    bgeui   a2, 7, 1f
93    test_fail
941:
95    movi    a2, 6
96    bgeui   a2, 7, 1f
97    j       2f
981:
99    test_fail
1002:
101test_end
102
103test_suite_end
104