aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/hexagon/test_vpmpyh.S
blob: f02758e4491b01426f94fdb58f6eaa15b0321181 (plain)
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
28
/*
 * Purpose: test example, verify the soundness of the vpmpyh operator.
 *
 * 0x01020304 vector polynomial multiplied with 0x04030201 results
 * 0x000400060b060b04.
 */

    .text
    .globl _start

_start:
    {
        r0 = #16909060
        r1 = #67305985
    }
    {
        r1:0 = vpmpyh(r0, r1)
    }
    {
        p0 = cmp.eq(r0, #184945412); if (p0.new) jump:t test2
        jump fail
    }

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