xref: /openbmc/qemu/tests/tcg/xtensa/test_bz.S (revision 05fd3bf2a1c9fc26414d3cf608732c40d0d9eb23)
1*a2e67072SMax Filippov#include "macros.inc"
2c09015ddSAnthony Liguori
3c09015ddSAnthony Liguoritest_suite bz
4c09015ddSAnthony Liguori
5c09015ddSAnthony Liguoritest beqz
6c09015ddSAnthony Liguori    movi    a2, 0
7c09015ddSAnthony Liguori    _beqz   a2, 1f
8c09015ddSAnthony Liguori    test_fail
9c09015ddSAnthony Liguori1:
10c09015ddSAnthony Liguori    movi    a2, 1
11c09015ddSAnthony Liguori    _beqz   a2, 1f
12c09015ddSAnthony Liguori    j       2f
13c09015ddSAnthony Liguori1:
14c09015ddSAnthony Liguori    test_fail
15c09015ddSAnthony Liguori2:
16c09015ddSAnthony Liguoritest_end
17c09015ddSAnthony Liguori
18c09015ddSAnthony Liguoritest bnez
19c09015ddSAnthony Liguori    movi    a2, 1
20c09015ddSAnthony Liguori    _bnez   a2, 1f
21c09015ddSAnthony Liguori    test_fail
22c09015ddSAnthony Liguori1:
23c09015ddSAnthony Liguori    movi    a2, 0
24c09015ddSAnthony Liguori    _bnez   a2, 1f
25c09015ddSAnthony Liguori    j       2f
26c09015ddSAnthony Liguori1:
27c09015ddSAnthony Liguori    test_fail
28c09015ddSAnthony Liguori2:
29c09015ddSAnthony Liguoritest_end
30c09015ddSAnthony Liguori
31c09015ddSAnthony Liguoritest bltz
32c09015ddSAnthony Liguori    movi    a2, 0xffffffff
33c09015ddSAnthony Liguori    bltz    a2, 1f
34c09015ddSAnthony Liguori    test_fail
35c09015ddSAnthony Liguori1:
36c09015ddSAnthony Liguori    movi    a2, 0
37c09015ddSAnthony Liguori    bltz    a2, 1f
38c09015ddSAnthony Liguori    j       2f
39c09015ddSAnthony Liguori1:
40c09015ddSAnthony Liguori    test_fail
41c09015ddSAnthony Liguori2:
42c09015ddSAnthony Liguoritest_end
43c09015ddSAnthony Liguori
44c09015ddSAnthony Liguoritest bgez
45c09015ddSAnthony Liguori    movi    a2, 0
46c09015ddSAnthony Liguori    bgez    a2, 1f
47c09015ddSAnthony Liguori    test_fail
48c09015ddSAnthony Liguori1:
49c09015ddSAnthony Liguori    movi    a2, 0xffffffff
50c09015ddSAnthony Liguori    bgez    a2, 1f
51c09015ddSAnthony Liguori    j       2f
52c09015ddSAnthony Liguori1:
53c09015ddSAnthony Liguori    test_fail
54c09015ddSAnthony Liguori2:
55c09015ddSAnthony Liguoritest_end
56c09015ddSAnthony Liguori
57c09015ddSAnthony Liguoritest_suite_end
58