xref: /openbmc/qemu/tests/tcg/hexagon/test_bitsplit.S (revision 2e1cacfb)
1/* Purpose: test example, verify the soundness of the bitsplit operation */
2
3    .text
4    .globl _start
5
6_start:
7    {
8        r1 = #187
9    }
10    {
11        r3:2 = bitsplit(r1, #3)
12    }
13    {
14        p0 = cmp.eq(r2, #3); if (p0.new) jump:t test2
15        jump fail
16    }
17
18test2:
19    {
20        p0 = cmp.eq(r3, #23); if (p0.new) jump:t pass
21        jump fail
22    }
23