aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/hexagon/test_bitsplit.S
blob: 275658e613ded91e6d0014e38cae2182b1cbb8ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Purpose: test example, verify the soundness of the bitsplit operation */

    .text
    .globl _start

_start:
    {
        r1 = #187
    }
    {
        r3:2 = bitsplit(r1, #3)
    }
    {
        p0 = cmp.eq(r2, #3); if (p0.new) jump:t test2
        jump fail
    }

test2:
    {
        p0 = cmp.eq(r3, #23); if (p0.new) jump:t pass
        jump fail
    }