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