xref: /openbmc/qemu/tests/tcg/hexagon/test_vlsrw.S (revision 87d67ffe)
1/* Purpose: test the soundness of the vlsrw operation */
2
3    .text
4    .globl _start
5
6_start:
7    {
8        r0 = #0x00000001
9        r1 = #0x00000001
10    }
11    {
12        r1:0 = vlsrw(r1:0, #1)
13    }
14    {
15        r0 = add(r0, r1)
16    }
17    {
18        p0 = cmp.eq(r0, #0); if (p0.new) jump:t pass
19        jump fail
20    }
21