summaryrefslogtreecommitdiffstats
path: root/tests/tcg/xtensa/test_boolean.S
blob: 5a850bfe7eac93baf2f76e4ab816a290ada595e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "macros.inc"

test_suite boolean

#if XCHAL_HAVE_BOOLEANS

test all4
    movi    a2, 0xfec0
    wsr     a2, br
    all4    b0, b0
    rsr     a3, br
    assert  eq, a2, a3
    all4    b0, b4
    rsr     a3, br
    assert  eq, a2, a3
    all4    b0, b8
    rsr     a3, br
    assert  eq, a2, a3
    all4    b0, b12
    rsr     a3, br
    addi    a2, a2, 1
    assert  eq, a2, a3
test_end

#endif

test_suite_end