1 # Intel(r) Wireless MMX(tm) technology testcase for WSAD
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
17 # Test Byte wide absolute accumulation
19 mvi_h_gr r0, 0x12345678
20 mvi_h_gr r1, 0x9abcdef0
21 mvi_h_gr r2, 0x11111111
22 mvi_h_gr r3, 0x22222222
23 mvi_h_gr r4, 0x22222222
24 mvi_h_gr r5, 0x22222222
36 test_h_gr r0, 0x12345678
37 test_h_gr r1, 0x9abcdef0
38 test_h_gr r2, 0x11111111
39 test_h_gr r3, 0x22222222
40 test_h_gr r4, 0x2222258e
41 test_h_gr r5, 0x00000000
43 # Test Byte wide absolute accumulation with zeroing
45 mvi_h_gr r0, 0x12345678
46 mvi_h_gr r1, 0x9abcdef0
47 mvi_h_gr r2, 0x11111111
48 mvi_h_gr r3, 0x22222222
49 mvi_h_gr r4, 0x22222222
50 mvi_h_gr r5, 0x22222222
62 test_h_gr r0, 0x12345678
63 test_h_gr r1, 0x9abcdef0
64 test_h_gr r2, 0x11111111
65 test_h_gr r3, 0x22222222
66 test_h_gr r4, 0x0000036c
67 test_h_gr r5, 0x00000000
69 # Test Halfword wide absolute accumulation
71 mvi_h_gr r0, 0x12345678
72 mvi_h_gr r1, 0x9abcdef0
73 mvi_h_gr r2, 0x11111111
74 mvi_h_gr r3, 0x22222222
75 mvi_h_gr r4, 0x22222222
76 mvi_h_gr r5, 0x22222222
88 test_h_gr r0, 0x12345678
89 test_h_gr r1, 0x9abcdef0
90 test_h_gr r2, 0x11111111
91 test_h_gr r3, 0x22222222
92 test_h_gr r4, 0x22239e14
93 test_h_gr r5, 0x00000000
95 # Test Halfword wide absolute accumulation with zeroing
97 mvi_h_gr r0, 0x12345678
98 mvi_h_gr r1, 0x9abcdef0
99 mvi_h_gr r2, 0x11111111
100 mvi_h_gr r3, 0x22222222
101 mvi_h_gr r4, 0x22222222
102 mvi_h_gr r5, 0x22222222
114 test_h_gr r0, 0x12345678
115 test_h_gr r1, 0x9abcdef0
116 test_h_gr r2, 0x11111111
117 test_h_gr r3, 0x22222222
118 test_h_gr r4, 0x00017bf2
119 test_h_gr r5, 0x00000000