1 # Intel(r) Wireless MMX(tm) technology testcase for WCMPGT
3 # as: -mcpu=xscale+iwmmxt
4 # kfail: sim/12737 *-*-*
6 .include "testutils.inc"
12 # Enable access to CoProcessors 0 & 1 before
13 # we attempt these instructions.
16 mcr p15, 0, r1, cr15, cr1, 0
18 # Test Unsigned Byte Wide Compare Greater Than
20 mvi_h_gr r0, 0x12345678
21 mvi_h_gr r1, 0x9abcde00
22 mvi_h_gr r2, 0x11111111
23 mvi_h_gr r3, 0x22222222
31 wcmpgtub wr2, wr0, wr1
37 test_h_gr r0, 0x12345678
38 test_h_gr r1, 0x9abcde00
39 test_h_gr r2, 0x11111111
40 test_h_gr r3, 0x22222222
41 test_h_gr r4, 0xffffffff
42 test_h_gr r5, 0xffffff00
44 # Test Signed Byte Wide Compare Greater Than
46 mvi_h_gr r0, 0x12345678
47 mvi_h_gr r1, 0x9abcde00
48 mvi_h_gr r2, 0x11111111
49 mvi_h_gr r3, 0x22222222
57 wcmpgtsb wr2, wr0, wr1
63 test_h_gr r0, 0x12345678
64 test_h_gr r1, 0x9abcde00
65 test_h_gr r2, 0x11111111
66 test_h_gr r3, 0x22222222
67 test_h_gr r4, 0xffffffff
68 test_h_gr r5, 0x00000000
70 # Test Unsigned Half Word Wide Compare Greater Than
72 mvi_h_gr r0, 0x12345678
73 mvi_h_gr r1, 0x9abcde00
74 mvi_h_gr r2, 0x11111111
75 mvi_h_gr r3, 0x22222222
83 wcmpgtuh wr2, wr0, wr1
89 test_h_gr r0, 0x12345678
90 test_h_gr r1, 0x9abcde00
91 test_h_gr r2, 0x11111111
92 test_h_gr r3, 0x22222222
93 test_h_gr r4, 0xffffffff
94 test_h_gr r5, 0xffffffff
96 # Test Signed Half Word Wide Compare Greater Than
98 mvi_h_gr r0, 0x12345678
99 mvi_h_gr r1, 0x9abcde00
100 mvi_h_gr r2, 0x11111111
101 mvi_h_gr r3, 0x22222222
109 wcmpgtsh wr2, wr0, wr1
115 test_h_gr r0, 0x12345678
116 test_h_gr r1, 0x9abcde00
117 test_h_gr r2, 0x11111111
118 test_h_gr r3, 0x22222222
119 test_h_gr r4, 0xffffffff
120 test_h_gr r5, 0x00000000
122 # Test Unsigned Word Wide Compare Greater Than
124 mvi_h_gr r0, 0x12345678
125 mvi_h_gr r1, 0x9abcde00
126 mvi_h_gr r2, 0x11111111
127 mvi_h_gr r3, 0x22222222
135 wcmpgtuw wr2, wr0, wr1
141 test_h_gr r0, 0x12345678
142 test_h_gr r1, 0x9abcde00
143 test_h_gr r2, 0x11111111
144 test_h_gr r3, 0x22222222
145 test_h_gr r4, 0xffffffff
146 test_h_gr r5, 0xffffffff
148 # Test Signed Word Wide Compare Greater Than
150 mvi_h_gr r0, 0x12345678
151 mvi_h_gr r1, 0x9abcde00
152 mvi_h_gr r2, 0x11111111
153 mvi_h_gr r3, 0x22222222
161 wcmpgtsw wr2, wr0, wr1
167 test_h_gr r0, 0x12345678
168 test_h_gr r1, 0x9abcde00
169 test_h_gr r2, 0x11111111
170 test_h_gr r3, 0x22222222
171 test_h_gr r4, 0xffffffff
172 test_h_gr r5, 0x00000000