1 # Intel(r) Wireless MMX(tm) technology testcase for WALIGNR
3 # as: -mcpu=xscale+iwmmxt
5 .include "testutils.inc"
11 # Enable access to CoProcessors 0 & 1 before
12 # we attempt these instructions.
15 mcr p15, 0, r1, cr15, cr1, 0
19 mvi_h_gr r0, 0x12345678
20 mvi_h_gr r1, 0x9abcdef0
21 mvi_h_gr r2, 0x11111111
22 mvi_h_gr r3, 0x00000000
32 walignr0 wr2, wr0, wr1
39 test_h_gr r0, 0x12345678
40 test_h_gr r1, 0x9abcdef0
41 test_h_gr r2, 0x11111111
42 test_h_gr r3, 0x00000000
43 test_h_gr r4, 0xbcdef012
44 test_h_gr r5, 0x1111119a
49 mvi_h_gr r0, 0x12345678
50 mvi_h_gr r1, 0x9abcdef0
51 mvi_h_gr r2, 0x11111111
52 mvi_h_gr r3, 0x00000000
62 walignr1 wr2, wr0, wr1
69 test_h_gr r0, 0x12345678
70 test_h_gr r1, 0x9abcdef0
71 test_h_gr r2, 0x11111111
72 test_h_gr r3, 0x00000000
73 test_h_gr r4, 0x9abcdef0
74 test_h_gr r5, 0x11111111
79 mvi_h_gr r0, 0x12345678
80 mvi_h_gr r1, 0x9abcdef0
81 mvi_h_gr r2, 0x11111111
82 mvi_h_gr r3, 0x00000000
92 walignr2 wr2, wr0, wr1
99 test_h_gr r0, 0x12345678
100 test_h_gr r1, 0x9abcdef0
101 test_h_gr r2, 0x11111111
102 test_h_gr r3, 0x00000000
103 test_h_gr r4, 0xdef01234
104 test_h_gr r5, 0x11119abc
109 mvi_h_gr r0, 0x12345678
110 mvi_h_gr r1, 0x9abcdef0
111 mvi_h_gr r2, 0x11111111
112 mvi_h_gr r3, 0x00000000
122 walignr3 wr2, wr0, wr1
129 test_h_gr r0, 0x12345678
130 test_h_gr r1, 0x9abcdef0
131 test_h_gr r2, 0x11111111
132 test_h_gr r3, 0x00000000
133 test_h_gr r4, 0x119abcde
134 test_h_gr r5, 0x00111111