1 # Intel(r) Wireless MMX(tm) technology testcase for WUNPCKEL
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 Unsigned Byte Unpacking
19 mvi_h_gr r0, 0x12345687
20 mvi_h_gr r1, 0x9abcdef0
32 test_h_gr r0, 0x12345687
33 test_h_gr r1, 0x9abcdef0
34 test_h_gr r2, 0x00560087
35 test_h_gr r3, 0x00120034
37 # Test Signed Byte Unpacking
39 mvi_h_gr r0, 0x12345687
40 mvi_h_gr r1, 0x9abcdef0
52 test_h_gr r0, 0x12345687
53 test_h_gr r1, 0x9abcdef0
54 test_h_gr r2, 0x0056ff87
55 test_h_gr r3, 0x00120034
57 # Test Unsigned Halfword Unpacking
59 mvi_h_gr r0, 0x12345678
60 mvi_h_gr r1, 0x9abcdef0
72 test_h_gr r0, 0x12345678
73 test_h_gr r1, 0x9abcdef0
74 test_h_gr r2, 0x00005678
75 test_h_gr r3, 0x00001234
77 # Test Signed Halfword Unpacking
79 mvi_h_gr r0, 0x12348678
80 mvi_h_gr r1, 0x9abcdef0
92 test_h_gr r0, 0x12348678
93 test_h_gr r1, 0x9abcdef0
94 test_h_gr r2, 0xffff8678
95 test_h_gr r3, 0x00001234
97 # Test Unsigned Word Unpacking
99 mvi_h_gr r0, 0x12345678
100 mvi_h_gr r1, 0x9abcdef0
112 test_h_gr r0, 0x12345678
113 test_h_gr r1, 0x9abcdef0
114 test_h_gr r2, 0x12345678
115 test_h_gr r3, 0x00000000
117 # Test Signed Word Unpacking
119 mvi_h_gr r0, 0x82345678
120 mvi_h_gr r1, 0x9abcdef0
132 test_h_gr r0, 0x82345678
133 test_h_gr r1, 0x9abcdef0
134 test_h_gr r2, 0x82345678
135 test_h_gr r3, 0xffffffff