1/* 2 * Purpose: test example, verify the soundness of the vpmpyh operator. 3 * 4 * 0x01020304 vector polynomial multiplied with 0x04030201 results 5 * 0x000400060b060b04. 6 */ 7 8 .text 9 .globl _start 10 11_start: 12 { 13 r0 = #16909060 14 r1 = #67305985 15 } 16 { 17 r1:0 = vpmpyh(r0, r1) 18 } 19 { 20 p0 = cmp.eq(r0, #184945412); if (p0.new) jump:t test2 21 jump fail 22 } 23 24test2: 25 { 26 p0 = cmp.eq(r1, #262150); if (p0.new) jump:t pass 27 jump fail 28 } 29