Lines 1-6
Link Here
|
1 |
;; ??? This file needs auditing for thumb2 |
|
|
2 |
;; Patterns for the Intel Wireless MMX technology architecture. |
1 |
;; Patterns for the Intel Wireless MMX technology architecture. |
3 |
;; Copyright (C) 2003, 2004, 2005, 2007, 2008, 2010 |
2 |
;; Copyright (C) 2003, 2004, 2005, 2007, 2008, 2010, 2012 |
4 |
;; Free Software Foundation, Inc. |
3 |
;; Free Software Foundation, Inc. |
5 |
;; Contributed by Red Hat. |
4 |
;; Contributed by Red Hat. |
6 |
|
5 |
|
Lines 20-25
Link Here
|
20 |
;; along with GCC; see the file COPYING3. If not see |
19 |
;; along with GCC; see the file COPYING3. If not see |
21 |
;; <http://www.gnu.org/licenses/>. |
20 |
;; <http://www.gnu.org/licenses/>. |
22 |
|
21 |
|
|
|
22 |
;; Register numbers |
23 |
(define_constants |
24 |
[(WCGR0 43) |
25 |
(WCGR1 44) |
26 |
(WCGR2 45) |
27 |
(WCGR3 46) |
28 |
] |
29 |
) |
30 |
|
31 |
(define_insn "tbcstv8qi" |
32 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
33 |
(vec_duplicate:V8QI (match_operand:QI 1 "s_register_operand" "r")))] |
34 |
"TARGET_REALLY_IWMMXT" |
35 |
"tbcstb%?\\t%0, %1" |
36 |
[(set_attr "predicable" "yes") |
37 |
(set_attr "wtype" "tbcst")] |
38 |
) |
39 |
|
40 |
(define_insn "tbcstv4hi" |
41 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
42 |
(vec_duplicate:V4HI (match_operand:HI 1 "s_register_operand" "r")))] |
43 |
"TARGET_REALLY_IWMMXT" |
44 |
"tbcsth%?\\t%0, %1" |
45 |
[(set_attr "predicable" "yes") |
46 |
(set_attr "wtype" "tbcst")] |
47 |
) |
48 |
|
49 |
(define_insn "tbcstv2si" |
50 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
51 |
(vec_duplicate:V2SI (match_operand:SI 1 "s_register_operand" "r")))] |
52 |
"TARGET_REALLY_IWMMXT" |
53 |
"tbcstw%?\\t%0, %1" |
54 |
[(set_attr "predicable" "yes") |
55 |
(set_attr "wtype" "tbcst")] |
56 |
) |
23 |
|
57 |
|
24 |
(define_insn "iwmmxt_iordi3" |
58 |
(define_insn "iwmmxt_iordi3" |
25 |
[(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r") |
59 |
[(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r") |
Lines 31-37
Link Here
|
31 |
# |
65 |
# |
32 |
#" |
66 |
#" |
33 |
[(set_attr "predicable" "yes") |
67 |
[(set_attr "predicable" "yes") |
34 |
(set_attr "length" "4,8,8")]) |
68 |
(set_attr "length" "4,8,8") |
|
|
69 |
(set_attr "wtype" "wor,none,none")] |
70 |
) |
35 |
|
71 |
|
36 |
(define_insn "iwmmxt_xordi3" |
72 |
(define_insn "iwmmxt_xordi3" |
37 |
[(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r") |
73 |
[(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r") |
Lines 43-49
Link Here
|
43 |
# |
79 |
# |
44 |
#" |
80 |
#" |
45 |
[(set_attr "predicable" "yes") |
81 |
[(set_attr "predicable" "yes") |
46 |
(set_attr "length" "4,8,8")]) |
82 |
(set_attr "length" "4,8,8") |
|
|
83 |
(set_attr "wtype" "wxor,none,none")] |
84 |
) |
47 |
|
85 |
|
48 |
(define_insn "iwmmxt_anddi3" |
86 |
(define_insn "iwmmxt_anddi3" |
49 |
[(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r") |
87 |
[(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r") |
Lines 55-61
Link Here
|
55 |
# |
93 |
# |
56 |
#" |
94 |
#" |
57 |
[(set_attr "predicable" "yes") |
95 |
[(set_attr "predicable" "yes") |
58 |
(set_attr "length" "4,8,8")]) |
96 |
(set_attr "length" "4,8,8") |
|
|
97 |
(set_attr "wtype" "wand,none,none")] |
98 |
) |
59 |
|
99 |
|
60 |
(define_insn "iwmmxt_nanddi3" |
100 |
(define_insn "iwmmxt_nanddi3" |
61 |
[(set (match_operand:DI 0 "register_operand" "=y") |
101 |
[(set (match_operand:DI 0 "register_operand" "=y") |
Lines 63-126
Link Here
|
63 |
(not:DI (match_operand:DI 2 "register_operand" "y"))))] |
103 |
(not:DI (match_operand:DI 2 "register_operand" "y"))))] |
64 |
"TARGET_REALLY_IWMMXT" |
104 |
"TARGET_REALLY_IWMMXT" |
65 |
"wandn%?\\t%0, %1, %2" |
105 |
"wandn%?\\t%0, %1, %2" |
66 |
[(set_attr "predicable" "yes")]) |
106 |
[(set_attr "predicable" "yes") |
|
|
107 |
(set_attr "wtype" "wandn")] |
108 |
) |
67 |
|
109 |
|
68 |
(define_insn "*iwmmxt_arm_movdi" |
110 |
(define_insn "*iwmmxt_arm_movdi" |
69 |
[(set (match_operand:DI 0 "nonimmediate_di_operand" "=r, r, m,y,y,yr,y,yrUy") |
111 |
[(set (match_operand:DI 0 "nonimmediate_di_operand" "=r, r, r, r, m,y,y,yr,y,yrUy,*w, r,*w,*w, *Uv") |
70 |
(match_operand:DI 1 "di_operand" "rIK,mi,r,y,yr,y,yrUy,y"))] |
112 |
(match_operand:DI 1 "di_operand" "rDa,Db,Dc,mi,r,y,yr,y,yrUy,y, r,*w,*w,*Uvi,*w"))] |
71 |
"TARGET_REALLY_IWMMXT |
113 |
"TARGET_REALLY_IWMMXT |
72 |
&& ( register_operand (operands[0], DImode) |
114 |
&& ( register_operand (operands[0], DImode) |
73 |
|| register_operand (operands[1], DImode))" |
115 |
|| register_operand (operands[1], DImode))" |
74 |
"* |
116 |
"* |
75 |
{ |
|
|
76 |
switch (which_alternative) |
117 |
switch (which_alternative) |
77 |
{ |
118 |
{ |
78 |
default: |
|
|
79 |
return output_move_double (operands, true, NULL); |
80 |
case 0: |
119 |
case 0: |
|
|
120 |
case 1: |
121 |
case 2: |
81 |
return \"#\"; |
122 |
return \"#\"; |
82 |
case 3: |
123 |
case 3: case 4: |
|
|
124 |
return output_move_double (operands, true, NULL); |
125 |
case 5: |
83 |
return \"wmov%?\\t%0,%1\"; |
126 |
return \"wmov%?\\t%0,%1\"; |
84 |
case 4: |
127 |
case 6: |
85 |
return \"tmcrr%?\\t%0,%Q1,%R1\"; |
128 |
return \"tmcrr%?\\t%0,%Q1,%R1\"; |
86 |
case 5: |
129 |
case 7: |
87 |
return \"tmrrc%?\\t%Q0,%R0,%1\"; |
130 |
return \"tmrrc%?\\t%Q0,%R0,%1\"; |
88 |
case 6: |
131 |
case 8: |
89 |
return \"wldrd%?\\t%0,%1\"; |
132 |
return \"wldrd%?\\t%0,%1\"; |
90 |
case 7: |
133 |
case 9: |
91 |
return \"wstrd%?\\t%1,%0\"; |
134 |
return \"wstrd%?\\t%1,%0\"; |
|
|
135 |
case 10: |
136 |
return \"fmdrr%?\\t%P0, %Q1, %R1\\t%@ int\"; |
137 |
case 11: |
138 |
return \"fmrrd%?\\t%Q0, %R0, %P1\\t%@ int\"; |
139 |
case 12: |
140 |
if (TARGET_VFP_SINGLE) |
141 |
return \"fcpys%?\\t%0, %1\\t%@ int\;fcpys%?\\t%p0, %p1\\t%@ int\"; |
142 |
else |
143 |
return \"fcpyd%?\\t%P0, %P1\\t%@ int\"; |
144 |
case 13: case 14: |
145 |
return output_move_vfp (operands); |
146 |
default: |
147 |
gcc_unreachable (); |
92 |
} |
148 |
} |
93 |
}" |
149 |
" |
94 |
[(set_attr "length" "8,8,8,4,4,4,4,4") |
150 |
[(set (attr "length") (cond [(eq_attr "alternative" "0,3,4") (const_int 8) |
95 |
(set_attr "type" "*,load1,store2,*,*,*,*,*") |
151 |
(eq_attr "alternative" "1") (const_int 12) |
96 |
(set_attr "pool_range" "*,1020,*,*,*,*,*,*") |
152 |
(eq_attr "alternative" "2") (const_int 16) |
97 |
(set_attr "neg_pool_range" "*,1012,*,*,*,*,*,*")] |
153 |
(eq_attr "alternative" "12") |
|
|
154 |
(if_then_else |
155 |
(eq (symbol_ref "TARGET_VFP_SINGLE") (const_int 1)) |
156 |
(const_int 8) |
157 |
(const_int 4))] |
158 |
(const_int 4))) |
159 |
(set_attr "type" "*,*,*,load2,store2,*,*,*,*,*,r_2_f,f_2_r,ffarithd,f_loadd,f_stored") |
160 |
(set_attr "arm_pool_range" "*,*,*,1020,*,*,*,*,*,*,*,*,*,1020,*") |
161 |
(set_attr "arm_neg_pool_range" "*,*,*,1008,*,*,*,*,*,*,*,*,*,1008,*") |
162 |
(set_attr "wtype" "*,*,*,*,*,wmov,tmcrr,tmrrc,wldr,wstr,*,*,*,*,*")] |
98 |
) |
163 |
) |
99 |
|
164 |
|
100 |
(define_insn "*iwmmxt_movsi_insn" |
165 |
(define_insn "*iwmmxt_movsi_insn" |
101 |
[(set (match_operand:SI 0 "nonimmediate_operand" "=rk,r,r,rk, m,z,r,?z,Uy,z") |
166 |
[(set (match_operand:SI 0 "nonimmediate_operand" "=rk,r,r,r,rk, m,z,r,?z,?Uy,*t, r,*t,*t ,*Uv") |
102 |
(match_operand:SI 1 "general_operand" "rk, I,K,mi,rk,r,z,Uy,z, z"))] |
167 |
(match_operand:SI 1 "general_operand" " rk,I,K,j,mi,rk,r,z,Uy, z, r,*t,*t,*Uvi, *t"))] |
103 |
"TARGET_REALLY_IWMMXT |
168 |
"TARGET_REALLY_IWMMXT |
104 |
&& ( register_operand (operands[0], SImode) |
169 |
&& ( register_operand (operands[0], SImode) |
105 |
|| register_operand (operands[1], SImode))" |
170 |
|| register_operand (operands[1], SImode))" |
106 |
"* |
171 |
"* |
107 |
switch (which_alternative) |
172 |
switch (which_alternative) |
108 |
{ |
173 |
{ |
109 |
case 0: return \"mov\\t%0, %1\"; |
174 |
case 0: return \"mov\\t%0, %1\"; |
110 |
case 1: return \"mov\\t%0, %1\"; |
175 |
case 1: return \"mov\\t%0, %1\"; |
111 |
case 2: return \"mvn\\t%0, #%B1\"; |
176 |
case 2: return \"mvn\\t%0, #%B1\"; |
112 |
case 3: return \"ldr\\t%0, %1\"; |
177 |
case 3: return \"movw\\t%0, %1\"; |
113 |
case 4: return \"str\\t%1, %0\"; |
178 |
case 4: return \"ldr\\t%0, %1\"; |
114 |
case 5: return \"tmcr\\t%0, %1\"; |
179 |
case 5: return \"str\\t%1, %0\"; |
115 |
case 6: return \"tmrc\\t%0, %1\"; |
180 |
case 6: return \"tmcr\\t%0, %1\"; |
116 |
case 7: return arm_output_load_gr (operands); |
181 |
case 7: return \"tmrc\\t%0, %1\"; |
117 |
case 8: return \"wstrw\\t%1, %0\"; |
182 |
case 8: return arm_output_load_gr (operands); |
118 |
default:return \"wstrw\\t%1, [sp, #-4]!\;wldrw\\t%0, [sp], #4\\t@move CG reg\"; |
183 |
case 9: return \"wstrw\\t%1, %0\"; |
119 |
}" |
184 |
case 10:return \"fmsr\\t%0, %1\"; |
120 |
[(set_attr "type" "*,*,*,load1,store1,*,*,load1,store1,*") |
185 |
case 11:return \"fmrs\\t%0, %1\"; |
121 |
(set_attr "length" "*,*,*,*, *,*,*, 16, *,8") |
186 |
case 12:return \"fcpys\\t%0, %1\\t%@ int\"; |
122 |
(set_attr "pool_range" "*,*,*,4096, *,*,*,1024, *,*") |
187 |
case 13: case 14: |
123 |
(set_attr "neg_pool_range" "*,*,*,4084, *,*,*, *, 1012,*") |
188 |
return output_move_vfp (operands); |
|
|
189 |
default: |
190 |
gcc_unreachable (); |
191 |
}" |
192 |
[(set_attr "type" "*,*,*,*,load1,store1,*,*,*,*,r_2_f,f_2_r,fcpys,f_loads,f_stores") |
193 |
(set_attr "length" "*,*,*,*,*, *,*,*, 16, *,*,*,*,*,*") |
194 |
(set_attr "pool_range" "*,*,*,*,4096, *,*,*,1024, *,*,*,*,1020,*") |
195 |
(set_attr "neg_pool_range" "*,*,*,*,4084, *,*,*, *, 1012,*,*,*,1008,*") |
124 |
;; Note - the "predicable" attribute is not allowed to have alternatives. |
196 |
;; Note - the "predicable" attribute is not allowed to have alternatives. |
125 |
;; Since the wSTRw wCx instruction is not predicable, we cannot support |
197 |
;; Since the wSTRw wCx instruction is not predicable, we cannot support |
126 |
;; predicating any of the alternatives in this template. Instead, |
198 |
;; predicating any of the alternatives in this template. Instead, |
Lines 129-135
Link Here
|
129 |
;; Also - we have to pretend that these insns clobber the condition code |
201 |
;; Also - we have to pretend that these insns clobber the condition code |
130 |
;; bits as otherwise arm_final_prescan_insn() will try to conditionalize |
202 |
;; bits as otherwise arm_final_prescan_insn() will try to conditionalize |
131 |
;; them. |
203 |
;; them. |
132 |
(set_attr "conds" "clob")] |
204 |
(set_attr "conds" "clob") |
|
|
205 |
(set_attr "wtype" "*,*,*,*,*,*,tmcr,tmrc,wldr,wstr,*,*,*,*,*")] |
133 |
) |
206 |
) |
134 |
|
207 |
|
135 |
;; Because iwmmxt_movsi_insn is not predicable, we provide the |
208 |
;; Because iwmmxt_movsi_insn is not predicable, we provide the |
Lines 177-195
Link Here
|
177 |
}" |
250 |
}" |
178 |
[(set_attr "predicable" "yes") |
251 |
[(set_attr "predicable" "yes") |
179 |
(set_attr "length" "4, 4, 4,4,4,8, 8,8") |
252 |
(set_attr "length" "4, 4, 4,4,4,8, 8,8") |
180 |
(set_attr "type" "*,store1,load1,*,*,*,load1,store1") |
253 |
(set_attr "type" "*,*,*,*,*,*,load1,store1") |
181 |
(set_attr "pool_range" "*, *, 256,*,*,*, 256,*") |
254 |
(set_attr "pool_range" "*, *, 256,*,*,*, 256,*") |
182 |
(set_attr "neg_pool_range" "*, *, 244,*,*,*, 244,*")]) |
255 |
(set_attr "neg_pool_range" "*, *, 244,*,*,*, 244,*") |
|
|
256 |
(set_attr "wtype" "wmov,wstr,wldr,tmrrc,tmcrr,*,*,*")] |
257 |
) |
258 |
|
259 |
(define_expand "iwmmxt_setwcgr0" |
260 |
[(set (reg:SI WCGR0) |
261 |
(match_operand:SI 0 "register_operand" ""))] |
262 |
"TARGET_REALLY_IWMMXT" |
263 |
{} |
264 |
) |
265 |
|
266 |
(define_expand "iwmmxt_setwcgr1" |
267 |
[(set (reg:SI WCGR1) |
268 |
(match_operand:SI 0 "register_operand" ""))] |
269 |
"TARGET_REALLY_IWMMXT" |
270 |
{} |
271 |
) |
272 |
|
273 |
(define_expand "iwmmxt_setwcgr2" |
274 |
[(set (reg:SI WCGR2) |
275 |
(match_operand:SI 0 "register_operand" ""))] |
276 |
"TARGET_REALLY_IWMMXT" |
277 |
{} |
278 |
) |
279 |
|
280 |
(define_expand "iwmmxt_setwcgr3" |
281 |
[(set (reg:SI WCGR3) |
282 |
(match_operand:SI 0 "register_operand" ""))] |
283 |
"TARGET_REALLY_IWMMXT" |
284 |
{} |
285 |
) |
286 |
|
287 |
(define_expand "iwmmxt_getwcgr0" |
288 |
[(set (match_operand:SI 0 "register_operand" "") |
289 |
(reg:SI WCGR0))] |
290 |
"TARGET_REALLY_IWMMXT" |
291 |
{} |
292 |
) |
293 |
|
294 |
(define_expand "iwmmxt_getwcgr1" |
295 |
[(set (match_operand:SI 0 "register_operand" "") |
296 |
(reg:SI WCGR1))] |
297 |
"TARGET_REALLY_IWMMXT" |
298 |
{} |
299 |
) |
300 |
|
301 |
(define_expand "iwmmxt_getwcgr2" |
302 |
[(set (match_operand:SI 0 "register_operand" "") |
303 |
(reg:SI WCGR2))] |
304 |
"TARGET_REALLY_IWMMXT" |
305 |
{} |
306 |
) |
307 |
|
308 |
(define_expand "iwmmxt_getwcgr3" |
309 |
[(set (match_operand:SI 0 "register_operand" "") |
310 |
(reg:SI WCGR3))] |
311 |
"TARGET_REALLY_IWMMXT" |
312 |
{} |
313 |
) |
314 |
|
315 |
(define_insn "*and<mode>3_iwmmxt" |
316 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
317 |
(and:VMMX (match_operand:VMMX 1 "register_operand" "y") |
318 |
(match_operand:VMMX 2 "register_operand" "y")))] |
319 |
"TARGET_REALLY_IWMMXT" |
320 |
"wand\\t%0, %1, %2" |
321 |
[(set_attr "predicable" "yes") |
322 |
(set_attr "wtype" "wand")] |
323 |
) |
324 |
|
325 |
(define_insn "*ior<mode>3_iwmmxt" |
326 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
327 |
(ior:VMMX (match_operand:VMMX 1 "register_operand" "y") |
328 |
(match_operand:VMMX 2 "register_operand" "y")))] |
329 |
"TARGET_REALLY_IWMMXT" |
330 |
"wor\\t%0, %1, %2" |
331 |
[(set_attr "predicable" "yes") |
332 |
(set_attr "wtype" "wor")] |
333 |
) |
334 |
|
335 |
(define_insn "*xor<mode>3_iwmmxt" |
336 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
337 |
(xor:VMMX (match_operand:VMMX 1 "register_operand" "y") |
338 |
(match_operand:VMMX 2 "register_operand" "y")))] |
339 |
"TARGET_REALLY_IWMMXT" |
340 |
"wxor\\t%0, %1, %2" |
341 |
[(set_attr "predicable" "yes") |
342 |
(set_attr "wtype" "wxor")] |
343 |
) |
344 |
|
183 |
|
345 |
|
184 |
;; Vector add/subtract |
346 |
;; Vector add/subtract |
185 |
|
347 |
|
186 |
(define_insn "*add<mode>3_iwmmxt" |
348 |
(define_insn "*add<mode>3_iwmmxt" |
187 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
349 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
188 |
(plus:VMMX (match_operand:VMMX 1 "register_operand" "y") |
350 |
(plus:VMMX (match_operand:VMMX 1 "register_operand" "y") |
189 |
(match_operand:VMMX 2 "register_operand" "y")))] |
351 |
(match_operand:VMMX 2 "register_operand" "y")))] |
190 |
"TARGET_REALLY_IWMMXT" |
352 |
"TARGET_REALLY_IWMMXT" |
191 |
"wadd<MMX_char>%?\\t%0, %1, %2" |
353 |
"wadd<MMX_char>%?\\t%0, %1, %2" |
192 |
[(set_attr "predicable" "yes")]) |
354 |
[(set_attr "predicable" "yes") |
|
|
355 |
(set_attr "wtype" "wadd")] |
356 |
) |
193 |
|
357 |
|
194 |
(define_insn "ssaddv8qi3" |
358 |
(define_insn "ssaddv8qi3" |
195 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
359 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
Lines 197-203
Link Here
|
197 |
(match_operand:V8QI 2 "register_operand" "y")))] |
361 |
(match_operand:V8QI 2 "register_operand" "y")))] |
198 |
"TARGET_REALLY_IWMMXT" |
362 |
"TARGET_REALLY_IWMMXT" |
199 |
"waddbss%?\\t%0, %1, %2" |
363 |
"waddbss%?\\t%0, %1, %2" |
200 |
[(set_attr "predicable" "yes")]) |
364 |
[(set_attr "predicable" "yes") |
|
|
365 |
(set_attr "wtype" "wadd")] |
366 |
) |
201 |
|
367 |
|
202 |
(define_insn "ssaddv4hi3" |
368 |
(define_insn "ssaddv4hi3" |
203 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
369 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
Lines 205-211
Link Here
|
205 |
(match_operand:V4HI 2 "register_operand" "y")))] |
371 |
(match_operand:V4HI 2 "register_operand" "y")))] |
206 |
"TARGET_REALLY_IWMMXT" |
372 |
"TARGET_REALLY_IWMMXT" |
207 |
"waddhss%?\\t%0, %1, %2" |
373 |
"waddhss%?\\t%0, %1, %2" |
208 |
[(set_attr "predicable" "yes")]) |
374 |
[(set_attr "predicable" "yes") |
|
|
375 |
(set_attr "wtype" "wadd")] |
376 |
) |
209 |
|
377 |
|
210 |
(define_insn "ssaddv2si3" |
378 |
(define_insn "ssaddv2si3" |
211 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
379 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
Lines 213-219
Link Here
|
213 |
(match_operand:V2SI 2 "register_operand" "y")))] |
381 |
(match_operand:V2SI 2 "register_operand" "y")))] |
214 |
"TARGET_REALLY_IWMMXT" |
382 |
"TARGET_REALLY_IWMMXT" |
215 |
"waddwss%?\\t%0, %1, %2" |
383 |
"waddwss%?\\t%0, %1, %2" |
216 |
[(set_attr "predicable" "yes")]) |
384 |
[(set_attr "predicable" "yes") |
|
|
385 |
(set_attr "wtype" "wadd")] |
386 |
) |
217 |
|
387 |
|
218 |
(define_insn "usaddv8qi3" |
388 |
(define_insn "usaddv8qi3" |
219 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
389 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
Lines 221-227
Link Here
|
221 |
(match_operand:V8QI 2 "register_operand" "y")))] |
391 |
(match_operand:V8QI 2 "register_operand" "y")))] |
222 |
"TARGET_REALLY_IWMMXT" |
392 |
"TARGET_REALLY_IWMMXT" |
223 |
"waddbus%?\\t%0, %1, %2" |
393 |
"waddbus%?\\t%0, %1, %2" |
224 |
[(set_attr "predicable" "yes")]) |
394 |
[(set_attr "predicable" "yes") |
|
|
395 |
(set_attr "wtype" "wadd")] |
396 |
) |
225 |
|
397 |
|
226 |
(define_insn "usaddv4hi3" |
398 |
(define_insn "usaddv4hi3" |
227 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
399 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
Lines 229-235
Link Here
|
229 |
(match_operand:V4HI 2 "register_operand" "y")))] |
401 |
(match_operand:V4HI 2 "register_operand" "y")))] |
230 |
"TARGET_REALLY_IWMMXT" |
402 |
"TARGET_REALLY_IWMMXT" |
231 |
"waddhus%?\\t%0, %1, %2" |
403 |
"waddhus%?\\t%0, %1, %2" |
232 |
[(set_attr "predicable" "yes")]) |
404 |
[(set_attr "predicable" "yes") |
|
|
405 |
(set_attr "wtype" "wadd")] |
406 |
) |
233 |
|
407 |
|
234 |
(define_insn "usaddv2si3" |
408 |
(define_insn "usaddv2si3" |
235 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
409 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
Lines 237-243
Link Here
|
237 |
(match_operand:V2SI 2 "register_operand" "y")))] |
411 |
(match_operand:V2SI 2 "register_operand" "y")))] |
238 |
"TARGET_REALLY_IWMMXT" |
412 |
"TARGET_REALLY_IWMMXT" |
239 |
"waddwus%?\\t%0, %1, %2" |
413 |
"waddwus%?\\t%0, %1, %2" |
240 |
[(set_attr "predicable" "yes")]) |
414 |
[(set_attr "predicable" "yes") |
|
|
415 |
(set_attr "wtype" "wadd")] |
416 |
) |
241 |
|
417 |
|
242 |
(define_insn "*sub<mode>3_iwmmxt" |
418 |
(define_insn "*sub<mode>3_iwmmxt" |
243 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
419 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
Lines 245-251
Link Here
|
245 |
(match_operand:VMMX 2 "register_operand" "y")))] |
421 |
(match_operand:VMMX 2 "register_operand" "y")))] |
246 |
"TARGET_REALLY_IWMMXT" |
422 |
"TARGET_REALLY_IWMMXT" |
247 |
"wsub<MMX_char>%?\\t%0, %1, %2" |
423 |
"wsub<MMX_char>%?\\t%0, %1, %2" |
248 |
[(set_attr "predicable" "yes")]) |
424 |
[(set_attr "predicable" "yes") |
|
|
425 |
(set_attr "wtype" "wsub")] |
426 |
) |
249 |
|
427 |
|
250 |
(define_insn "sssubv8qi3" |
428 |
(define_insn "sssubv8qi3" |
251 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
429 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
Lines 253-259
Link Here
|
253 |
(match_operand:V8QI 2 "register_operand" "y")))] |
431 |
(match_operand:V8QI 2 "register_operand" "y")))] |
254 |
"TARGET_REALLY_IWMMXT" |
432 |
"TARGET_REALLY_IWMMXT" |
255 |
"wsubbss%?\\t%0, %1, %2" |
433 |
"wsubbss%?\\t%0, %1, %2" |
256 |
[(set_attr "predicable" "yes")]) |
434 |
[(set_attr "predicable" "yes") |
|
|
435 |
(set_attr "wtype" "wsub")] |
436 |
) |
257 |
|
437 |
|
258 |
(define_insn "sssubv4hi3" |
438 |
(define_insn "sssubv4hi3" |
259 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
439 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
Lines 261-267
Link Here
|
261 |
(match_operand:V4HI 2 "register_operand" "y")))] |
441 |
(match_operand:V4HI 2 "register_operand" "y")))] |
262 |
"TARGET_REALLY_IWMMXT" |
442 |
"TARGET_REALLY_IWMMXT" |
263 |
"wsubhss%?\\t%0, %1, %2" |
443 |
"wsubhss%?\\t%0, %1, %2" |
264 |
[(set_attr "predicable" "yes")]) |
444 |
[(set_attr "predicable" "yes") |
|
|
445 |
(set_attr "wtype" "wsub")] |
446 |
) |
265 |
|
447 |
|
266 |
(define_insn "sssubv2si3" |
448 |
(define_insn "sssubv2si3" |
267 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
449 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
Lines 269-275
Link Here
|
269 |
(match_operand:V2SI 2 "register_operand" "y")))] |
451 |
(match_operand:V2SI 2 "register_operand" "y")))] |
270 |
"TARGET_REALLY_IWMMXT" |
452 |
"TARGET_REALLY_IWMMXT" |
271 |
"wsubwss%?\\t%0, %1, %2" |
453 |
"wsubwss%?\\t%0, %1, %2" |
272 |
[(set_attr "predicable" "yes")]) |
454 |
[(set_attr "predicable" "yes") |
|
|
455 |
(set_attr "wtype" "wsub")] |
456 |
) |
273 |
|
457 |
|
274 |
(define_insn "ussubv8qi3" |
458 |
(define_insn "ussubv8qi3" |
275 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
459 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
Lines 277-283
Link Here
|
277 |
(match_operand:V8QI 2 "register_operand" "y")))] |
461 |
(match_operand:V8QI 2 "register_operand" "y")))] |
278 |
"TARGET_REALLY_IWMMXT" |
462 |
"TARGET_REALLY_IWMMXT" |
279 |
"wsubbus%?\\t%0, %1, %2" |
463 |
"wsubbus%?\\t%0, %1, %2" |
280 |
[(set_attr "predicable" "yes")]) |
464 |
[(set_attr "predicable" "yes") |
|
|
465 |
(set_attr "wtype" "wsub")] |
466 |
) |
281 |
|
467 |
|
282 |
(define_insn "ussubv4hi3" |
468 |
(define_insn "ussubv4hi3" |
283 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
469 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
Lines 285-291
Link Here
|
285 |
(match_operand:V4HI 2 "register_operand" "y")))] |
471 |
(match_operand:V4HI 2 "register_operand" "y")))] |
286 |
"TARGET_REALLY_IWMMXT" |
472 |
"TARGET_REALLY_IWMMXT" |
287 |
"wsubhus%?\\t%0, %1, %2" |
473 |
"wsubhus%?\\t%0, %1, %2" |
288 |
[(set_attr "predicable" "yes")]) |
474 |
[(set_attr "predicable" "yes") |
|
|
475 |
(set_attr "wtype" "wsub")] |
476 |
) |
289 |
|
477 |
|
290 |
(define_insn "ussubv2si3" |
478 |
(define_insn "ussubv2si3" |
291 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
479 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
Lines 293-299
Link Here
|
293 |
(match_operand:V2SI 2 "register_operand" "y")))] |
481 |
(match_operand:V2SI 2 "register_operand" "y")))] |
294 |
"TARGET_REALLY_IWMMXT" |
482 |
"TARGET_REALLY_IWMMXT" |
295 |
"wsubwus%?\\t%0, %1, %2" |
483 |
"wsubwus%?\\t%0, %1, %2" |
296 |
[(set_attr "predicable" "yes")]) |
484 |
[(set_attr "predicable" "yes") |
|
|
485 |
(set_attr "wtype" "wsub")] |
486 |
) |
297 |
|
487 |
|
298 |
(define_insn "*mulv4hi3_iwmmxt" |
488 |
(define_insn "*mulv4hi3_iwmmxt" |
299 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
489 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
Lines 301-363
Link Here
|
301 |
(match_operand:V4HI 2 "register_operand" "y")))] |
491 |
(match_operand:V4HI 2 "register_operand" "y")))] |
302 |
"TARGET_REALLY_IWMMXT" |
492 |
"TARGET_REALLY_IWMMXT" |
303 |
"wmulul%?\\t%0, %1, %2" |
493 |
"wmulul%?\\t%0, %1, %2" |
304 |
[(set_attr "predicable" "yes")]) |
494 |
[(set_attr "predicable" "yes") |
|
|
495 |
(set_attr "wtype" "wmul")] |
496 |
) |
305 |
|
497 |
|
306 |
(define_insn "smulv4hi3_highpart" |
498 |
(define_insn "smulv4hi3_highpart" |
307 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
499 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
308 |
(truncate:V4HI |
500 |
(truncate:V4HI |
309 |
(lshiftrt:V4SI |
501 |
(lshiftrt:V4SI |
310 |
(mult:V4SI (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
502 |
(mult:V4SI (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
311 |
(sign_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))) |
503 |
(sign_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))) |
312 |
(const_int 16))))] |
504 |
(const_int 16))))] |
313 |
"TARGET_REALLY_IWMMXT" |
505 |
"TARGET_REALLY_IWMMXT" |
314 |
"wmulsm%?\\t%0, %1, %2" |
506 |
"wmulsm%?\\t%0, %1, %2" |
315 |
[(set_attr "predicable" "yes")]) |
507 |
[(set_attr "predicable" "yes") |
|
|
508 |
(set_attr "wtype" "wmul")] |
509 |
) |
316 |
|
510 |
|
317 |
(define_insn "umulv4hi3_highpart" |
511 |
(define_insn "umulv4hi3_highpart" |
318 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
512 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
319 |
(truncate:V4HI |
513 |
(truncate:V4HI |
320 |
(lshiftrt:V4SI |
514 |
(lshiftrt:V4SI |
321 |
(mult:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
515 |
(mult:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
322 |
(zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))) |
516 |
(zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))) |
323 |
(const_int 16))))] |
517 |
(const_int 16))))] |
324 |
"TARGET_REALLY_IWMMXT" |
518 |
"TARGET_REALLY_IWMMXT" |
325 |
"wmulum%?\\t%0, %1, %2" |
519 |
"wmulum%?\\t%0, %1, %2" |
326 |
[(set_attr "predicable" "yes")]) |
520 |
[(set_attr "predicable" "yes") |
|
|
521 |
(set_attr "wtype" "wmul")] |
522 |
) |
327 |
|
523 |
|
328 |
(define_insn "iwmmxt_wmacs" |
524 |
(define_insn "iwmmxt_wmacs" |
329 |
[(set (match_operand:DI 0 "register_operand" "=y") |
525 |
[(set (match_operand:DI 0 "register_operand" "=y") |
330 |
(unspec:DI [(match_operand:DI 1 "register_operand" "0") |
526 |
(unspec:DI [(match_operand:DI 1 "register_operand" "0") |
331 |
(match_operand:V4HI 2 "register_operand" "y") |
527 |
(match_operand:V4HI 2 "register_operand" "y") |
332 |
(match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WMACS))] |
528 |
(match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WMACS))] |
333 |
"TARGET_REALLY_IWMMXT" |
529 |
"TARGET_REALLY_IWMMXT" |
334 |
"wmacs%?\\t%0, %2, %3" |
530 |
"wmacs%?\\t%0, %2, %3" |
335 |
[(set_attr "predicable" "yes")]) |
531 |
[(set_attr "predicable" "yes") |
|
|
532 |
(set_attr "wtype" "wmac")] |
533 |
) |
336 |
|
534 |
|
337 |
(define_insn "iwmmxt_wmacsz" |
535 |
(define_insn "iwmmxt_wmacsz" |
338 |
[(set (match_operand:DI 0 "register_operand" "=y") |
536 |
[(set (match_operand:DI 0 "register_operand" "=y") |
339 |
(unspec:DI [(match_operand:V4HI 1 "register_operand" "y") |
537 |
(unspec:DI [(match_operand:V4HI 1 "register_operand" "y") |
340 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMACSZ))] |
538 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMACSZ))] |
341 |
"TARGET_REALLY_IWMMXT" |
539 |
"TARGET_REALLY_IWMMXT" |
342 |
"wmacsz%?\\t%0, %1, %2" |
540 |
"wmacsz%?\\t%0, %1, %2" |
343 |
[(set_attr "predicable" "yes")]) |
541 |
[(set_attr "predicable" "yes") |
|
|
542 |
(set_attr "wtype" "wmac")] |
543 |
) |
344 |
|
544 |
|
345 |
(define_insn "iwmmxt_wmacu" |
545 |
(define_insn "iwmmxt_wmacu" |
346 |
[(set (match_operand:DI 0 "register_operand" "=y") |
546 |
[(set (match_operand:DI 0 "register_operand" "=y") |
347 |
(unspec:DI [(match_operand:DI 1 "register_operand" "0") |
547 |
(unspec:DI [(match_operand:DI 1 "register_operand" "0") |
348 |
(match_operand:V4HI 2 "register_operand" "y") |
548 |
(match_operand:V4HI 2 "register_operand" "y") |
349 |
(match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WMACU))] |
549 |
(match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WMACU))] |
350 |
"TARGET_REALLY_IWMMXT" |
550 |
"TARGET_REALLY_IWMMXT" |
351 |
"wmacu%?\\t%0, %2, %3" |
551 |
"wmacu%?\\t%0, %2, %3" |
352 |
[(set_attr "predicable" "yes")]) |
552 |
[(set_attr "predicable" "yes") |
|
|
553 |
(set_attr "wtype" "wmac")] |
554 |
) |
353 |
|
555 |
|
354 |
(define_insn "iwmmxt_wmacuz" |
556 |
(define_insn "iwmmxt_wmacuz" |
355 |
[(set (match_operand:DI 0 "register_operand" "=y") |
557 |
[(set (match_operand:DI 0 "register_operand" "=y") |
356 |
(unspec:DI [(match_operand:V4HI 1 "register_operand" "y") |
558 |
(unspec:DI [(match_operand:V4HI 1 "register_operand" "y") |
357 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMACUZ))] |
559 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMACUZ))] |
358 |
"TARGET_REALLY_IWMMXT" |
560 |
"TARGET_REALLY_IWMMXT" |
359 |
"wmacuz%?\\t%0, %1, %2" |
561 |
"wmacuz%?\\t%0, %1, %2" |
360 |
[(set_attr "predicable" "yes")]) |
562 |
[(set_attr "predicable" "yes") |
|
|
563 |
(set_attr "wtype" "wmac")] |
564 |
) |
361 |
|
565 |
|
362 |
;; Same as xordi3, but don't show input operands so that we don't think |
566 |
;; Same as xordi3, but don't show input operands so that we don't think |
363 |
;; they are live. |
567 |
;; they are live. |
Lines 366-533
Link Here
|
366 |
(unspec:DI [(const_int 0)] UNSPEC_CLRDI))] |
570 |
(unspec:DI [(const_int 0)] UNSPEC_CLRDI))] |
367 |
"TARGET_REALLY_IWMMXT" |
571 |
"TARGET_REALLY_IWMMXT" |
368 |
"wxor%?\\t%0, %0, %0" |
572 |
"wxor%?\\t%0, %0, %0" |
369 |
[(set_attr "predicable" "yes")]) |
573 |
[(set_attr "predicable" "yes") |
|
|
574 |
(set_attr "wtype" "wxor")] |
575 |
) |
370 |
|
576 |
|
371 |
;; Seems like cse likes to generate these, so we have to support them. |
577 |
;; Seems like cse likes to generate these, so we have to support them. |
372 |
|
578 |
|
373 |
(define_insn "*iwmmxt_clrv8qi" |
579 |
(define_insn "iwmmxt_clrv8qi" |
374 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
580 |
[(set (match_operand:V8QI 0 "s_register_operand" "=y") |
375 |
(const_vector:V8QI [(const_int 0) (const_int 0) |
581 |
(const_vector:V8QI [(const_int 0) (const_int 0) |
376 |
(const_int 0) (const_int 0) |
582 |
(const_int 0) (const_int 0) |
377 |
(const_int 0) (const_int 0) |
583 |
(const_int 0) (const_int 0) |
378 |
(const_int 0) (const_int 0)]))] |
584 |
(const_int 0) (const_int 0)]))] |
379 |
"TARGET_REALLY_IWMMXT" |
585 |
"TARGET_REALLY_IWMMXT" |
380 |
"wxor%?\\t%0, %0, %0" |
586 |
"wxor%?\\t%0, %0, %0" |
381 |
[(set_attr "predicable" "yes")]) |
587 |
[(set_attr "predicable" "yes") |
|
|
588 |
(set_attr "wtype" "wxor")] |
589 |
) |
382 |
|
590 |
|
383 |
(define_insn "*iwmmxt_clrv4hi" |
591 |
(define_insn "iwmmxt_clrv4hi" |
384 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
592 |
[(set (match_operand:V4HI 0 "s_register_operand" "=y") |
385 |
(const_vector:V4HI [(const_int 0) (const_int 0) |
593 |
(const_vector:V4HI [(const_int 0) (const_int 0) |
386 |
(const_int 0) (const_int 0)]))] |
594 |
(const_int 0) (const_int 0)]))] |
387 |
"TARGET_REALLY_IWMMXT" |
595 |
"TARGET_REALLY_IWMMXT" |
388 |
"wxor%?\\t%0, %0, %0" |
596 |
"wxor%?\\t%0, %0, %0" |
389 |
[(set_attr "predicable" "yes")]) |
597 |
[(set_attr "predicable" "yes") |
|
|
598 |
(set_attr "wtype" "wxor")] |
599 |
) |
390 |
|
600 |
|
391 |
(define_insn "*iwmmxt_clrv2si" |
601 |
(define_insn "iwmmxt_clrv2si" |
392 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
602 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
393 |
(const_vector:V2SI [(const_int 0) (const_int 0)]))] |
603 |
(const_vector:V2SI [(const_int 0) (const_int 0)]))] |
394 |
"TARGET_REALLY_IWMMXT" |
604 |
"TARGET_REALLY_IWMMXT" |
395 |
"wxor%?\\t%0, %0, %0" |
605 |
"wxor%?\\t%0, %0, %0" |
396 |
[(set_attr "predicable" "yes")]) |
606 |
[(set_attr "predicable" "yes") |
|
|
607 |
(set_attr "wtype" "wxor")] |
608 |
) |
397 |
|
609 |
|
398 |
;; Unsigned averages/sum of absolute differences |
610 |
;; Unsigned averages/sum of absolute differences |
399 |
|
611 |
|
400 |
(define_insn "iwmmxt_uavgrndv8qi3" |
612 |
(define_insn "iwmmxt_uavgrndv8qi3" |
401 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
613 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
402 |
(ashiftrt:V8QI |
614 |
(truncate:V8QI |
403 |
(plus:V8QI (plus:V8QI |
615 |
(lshiftrt:V8HI |
404 |
(match_operand:V8QI 1 "register_operand" "y") |
616 |
(plus:V8HI |
405 |
(match_operand:V8QI 2 "register_operand" "y")) |
617 |
(plus:V8HI (zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y")) |
406 |
(const_vector:V8QI [(const_int 1) |
618 |
(zero_extend:V8HI (match_operand:V8QI 2 "register_operand" "y"))) |
407 |
(const_int 1) |
619 |
(const_vector:V8HI [(const_int 1) |
408 |
(const_int 1) |
620 |
(const_int 1) |
409 |
(const_int 1) |
621 |
(const_int 1) |
410 |
(const_int 1) |
622 |
(const_int 1) |
411 |
(const_int 1) |
623 |
(const_int 1) |
412 |
(const_int 1) |
624 |
(const_int 1) |
413 |
(const_int 1)])) |
625 |
(const_int 1) |
414 |
(const_int 1)))] |
626 |
(const_int 1)])) |
|
|
627 |
(const_int 1))))] |
415 |
"TARGET_REALLY_IWMMXT" |
628 |
"TARGET_REALLY_IWMMXT" |
416 |
"wavg2br%?\\t%0, %1, %2" |
629 |
"wavg2br%?\\t%0, %1, %2" |
417 |
[(set_attr "predicable" "yes")]) |
630 |
[(set_attr "predicable" "yes") |
|
|
631 |
(set_attr "wtype" "wavg2")] |
632 |
) |
418 |
|
633 |
|
419 |
(define_insn "iwmmxt_uavgrndv4hi3" |
634 |
(define_insn "iwmmxt_uavgrndv4hi3" |
420 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
635 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
421 |
(ashiftrt:V4HI |
636 |
(truncate:V4HI |
422 |
(plus:V4HI (plus:V4HI |
637 |
(lshiftrt:V4SI |
423 |
(match_operand:V4HI 1 "register_operand" "y") |
638 |
(plus:V4SI |
424 |
(match_operand:V4HI 2 "register_operand" "y")) |
639 |
(plus:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
425 |
(const_vector:V4HI [(const_int 1) |
640 |
(zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))) |
426 |
(const_int 1) |
641 |
(const_vector:V4SI [(const_int 1) |
427 |
(const_int 1) |
642 |
(const_int 1) |
428 |
(const_int 1)])) |
643 |
(const_int 1) |
429 |
(const_int 1)))] |
644 |
(const_int 1)])) |
|
|
645 |
(const_int 1))))] |
430 |
"TARGET_REALLY_IWMMXT" |
646 |
"TARGET_REALLY_IWMMXT" |
431 |
"wavg2hr%?\\t%0, %1, %2" |
647 |
"wavg2hr%?\\t%0, %1, %2" |
432 |
[(set_attr "predicable" "yes")]) |
648 |
[(set_attr "predicable" "yes") |
433 |
|
649 |
(set_attr "wtype" "wavg2")] |
|
|
650 |
) |
434 |
|
651 |
|
435 |
(define_insn "iwmmxt_uavgv8qi3" |
652 |
(define_insn "iwmmxt_uavgv8qi3" |
436 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
653 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
437 |
(ashiftrt:V8QI (plus:V8QI |
654 |
(truncate:V8QI |
438 |
(match_operand:V8QI 1 "register_operand" "y") |
655 |
(lshiftrt:V8HI |
439 |
(match_operand:V8QI 2 "register_operand" "y")) |
656 |
(plus:V8HI (zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y")) |
440 |
(const_int 1)))] |
657 |
(zero_extend:V8HI (match_operand:V8QI 2 "register_operand" "y"))) |
|
|
658 |
(const_int 1))))] |
441 |
"TARGET_REALLY_IWMMXT" |
659 |
"TARGET_REALLY_IWMMXT" |
442 |
"wavg2b%?\\t%0, %1, %2" |
660 |
"wavg2b%?\\t%0, %1, %2" |
443 |
[(set_attr "predicable" "yes")]) |
661 |
[(set_attr "predicable" "yes") |
|
|
662 |
(set_attr "wtype" "wavg2")] |
663 |
) |
444 |
|
664 |
|
445 |
(define_insn "iwmmxt_uavgv4hi3" |
665 |
(define_insn "iwmmxt_uavgv4hi3" |
446 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
666 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
447 |
(ashiftrt:V4HI (plus:V4HI |
667 |
(truncate:V4HI |
448 |
(match_operand:V4HI 1 "register_operand" "y") |
668 |
(lshiftrt:V4SI |
449 |
(match_operand:V4HI 2 "register_operand" "y")) |
669 |
(plus:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
450 |
(const_int 1)))] |
670 |
(zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))) |
|
|
671 |
(const_int 1))))] |
451 |
"TARGET_REALLY_IWMMXT" |
672 |
"TARGET_REALLY_IWMMXT" |
452 |
"wavg2h%?\\t%0, %1, %2" |
673 |
"wavg2h%?\\t%0, %1, %2" |
453 |
[(set_attr "predicable" "yes")]) |
674 |
[(set_attr "predicable" "yes") |
454 |
|
675 |
(set_attr "wtype" "wavg2")] |
455 |
(define_insn "iwmmxt_psadbw" |
676 |
) |
456 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
|
|
457 |
(abs:V8QI (minus:V8QI (match_operand:V8QI 1 "register_operand" "y") |
458 |
(match_operand:V8QI 2 "register_operand" "y"))))] |
459 |
"TARGET_REALLY_IWMMXT" |
460 |
"psadbw%?\\t%0, %1, %2" |
461 |
[(set_attr "predicable" "yes")]) |
462 |
|
463 |
|
677 |
|
464 |
;; Insert/extract/shuffle |
678 |
;; Insert/extract/shuffle |
465 |
|
679 |
|
466 |
(define_insn "iwmmxt_tinsrb" |
680 |
(define_insn "iwmmxt_tinsrb" |
467 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
681 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
468 |
(vec_merge:V8QI (match_operand:V8QI 1 "register_operand" "0") |
682 |
(vec_merge:V8QI |
469 |
(vec_duplicate:V8QI |
683 |
(vec_duplicate:V8QI |
470 |
(truncate:QI (match_operand:SI 2 "nonimmediate_operand" "r"))) |
684 |
(truncate:QI (match_operand:SI 2 "nonimmediate_operand" "r"))) |
471 |
(match_operand:SI 3 "immediate_operand" "i")))] |
685 |
(match_operand:V8QI 1 "register_operand" "0") |
|
|
686 |
(match_operand:SI 3 "immediate_operand" "i")))] |
472 |
"TARGET_REALLY_IWMMXT" |
687 |
"TARGET_REALLY_IWMMXT" |
473 |
"tinsrb%?\\t%0, %2, %3" |
688 |
"* |
474 |
[(set_attr "predicable" "yes")]) |
689 |
{ |
|
|
690 |
return arm_output_iwmmxt_tinsr (operands); |
691 |
} |
692 |
" |
693 |
[(set_attr "predicable" "yes") |
694 |
(set_attr "wtype" "tinsr")] |
695 |
) |
475 |
|
696 |
|
476 |
(define_insn "iwmmxt_tinsrh" |
697 |
(define_insn "iwmmxt_tinsrh" |
477 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
698 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
478 |
(vec_merge:V4HI (match_operand:V4HI 1 "register_operand" "0") |
699 |
(vec_merge:V4HI |
479 |
(vec_duplicate:V4HI |
700 |
(vec_duplicate:V4HI |
480 |
(truncate:HI (match_operand:SI 2 "nonimmediate_operand" "r"))) |
701 |
(truncate:HI (match_operand:SI 2 "nonimmediate_operand" "r"))) |
481 |
(match_operand:SI 3 "immediate_operand" "i")))] |
702 |
(match_operand:V4HI 1 "register_operand" "0") |
|
|
703 |
(match_operand:SI 3 "immediate_operand" "i")))] |
482 |
"TARGET_REALLY_IWMMXT" |
704 |
"TARGET_REALLY_IWMMXT" |
483 |
"tinsrh%?\\t%0, %2, %3" |
705 |
"* |
484 |
[(set_attr "predicable" "yes")]) |
706 |
{ |
|
|
707 |
return arm_output_iwmmxt_tinsr (operands); |
708 |
} |
709 |
" |
710 |
[(set_attr "predicable" "yes") |
711 |
(set_attr "wtype" "tinsr")] |
712 |
) |
485 |
|
713 |
|
486 |
(define_insn "iwmmxt_tinsrw" |
714 |
(define_insn "iwmmxt_tinsrw" |
487 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
715 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
488 |
(vec_merge:V2SI (match_operand:V2SI 1 "register_operand" "0") |
716 |
(vec_merge:V2SI |
489 |
(vec_duplicate:V2SI |
717 |
(vec_duplicate:V2SI |
490 |
(match_operand:SI 2 "nonimmediate_operand" "r")) |
718 |
(match_operand:SI 2 "nonimmediate_operand" "r")) |
491 |
(match_operand:SI 3 "immediate_operand" "i")))] |
719 |
(match_operand:V2SI 1 "register_operand" "0") |
|
|
720 |
(match_operand:SI 3 "immediate_operand" "i")))] |
492 |
"TARGET_REALLY_IWMMXT" |
721 |
"TARGET_REALLY_IWMMXT" |
493 |
"tinsrw%?\\t%0, %2, %3" |
722 |
"* |
494 |
[(set_attr "predicable" "yes")]) |
723 |
{ |
|
|
724 |
return arm_output_iwmmxt_tinsr (operands); |
725 |
} |
726 |
" |
727 |
[(set_attr "predicable" "yes") |
728 |
(set_attr "wtype" "tinsr")] |
729 |
) |
495 |
|
730 |
|
496 |
(define_insn "iwmmxt_textrmub" |
731 |
(define_insn "iwmmxt_textrmub" |
497 |
[(set (match_operand:SI 0 "register_operand" "=r") |
732 |
[(set (match_operand:SI 0 "register_operand" "=r") |
498 |
(zero_extend:SI (vec_select:QI (match_operand:V8QI 1 "register_operand" "y") |
733 |
(zero_extend:SI (vec_select:QI (match_operand:V8QI 1 "register_operand" "y") |
499 |
(parallel |
734 |
(parallel |
500 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
735 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
501 |
"TARGET_REALLY_IWMMXT" |
736 |
"TARGET_REALLY_IWMMXT" |
502 |
"textrmub%?\\t%0, %1, %2" |
737 |
"textrmub%?\\t%0, %1, %2" |
503 |
[(set_attr "predicable" "yes")]) |
738 |
[(set_attr "predicable" "yes") |
|
|
739 |
(set_attr "wtype" "textrm")] |
740 |
) |
504 |
|
741 |
|
505 |
(define_insn "iwmmxt_textrmsb" |
742 |
(define_insn "iwmmxt_textrmsb" |
506 |
[(set (match_operand:SI 0 "register_operand" "=r") |
743 |
[(set (match_operand:SI 0 "register_operand" "=r") |
507 |
(sign_extend:SI (vec_select:QI (match_operand:V8QI 1 "register_operand" "y") |
744 |
(sign_extend:SI (vec_select:QI (match_operand:V8QI 1 "register_operand" "y") |
508 |
(parallel |
745 |
(parallel |
509 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
746 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
510 |
"TARGET_REALLY_IWMMXT" |
747 |
"TARGET_REALLY_IWMMXT" |
511 |
"textrmsb%?\\t%0, %1, %2" |
748 |
"textrmsb%?\\t%0, %1, %2" |
512 |
[(set_attr "predicable" "yes")]) |
749 |
[(set_attr "predicable" "yes") |
|
|
750 |
(set_attr "wtype" "textrm")] |
751 |
) |
513 |
|
752 |
|
514 |
(define_insn "iwmmxt_textrmuh" |
753 |
(define_insn "iwmmxt_textrmuh" |
515 |
[(set (match_operand:SI 0 "register_operand" "=r") |
754 |
[(set (match_operand:SI 0 "register_operand" "=r") |
516 |
(zero_extend:SI (vec_select:HI (match_operand:V4HI 1 "register_operand" "y") |
755 |
(zero_extend:SI (vec_select:HI (match_operand:V4HI 1 "register_operand" "y") |
517 |
(parallel |
756 |
(parallel |
518 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
757 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
519 |
"TARGET_REALLY_IWMMXT" |
758 |
"TARGET_REALLY_IWMMXT" |
520 |
"textrmuh%?\\t%0, %1, %2" |
759 |
"textrmuh%?\\t%0, %1, %2" |
521 |
[(set_attr "predicable" "yes")]) |
760 |
[(set_attr "predicable" "yes") |
|
|
761 |
(set_attr "wtype" "textrm")] |
762 |
) |
522 |
|
763 |
|
523 |
(define_insn "iwmmxt_textrmsh" |
764 |
(define_insn "iwmmxt_textrmsh" |
524 |
[(set (match_operand:SI 0 "register_operand" "=r") |
765 |
[(set (match_operand:SI 0 "register_operand" "=r") |
525 |
(sign_extend:SI (vec_select:HI (match_operand:V4HI 1 "register_operand" "y") |
766 |
(sign_extend:SI (vec_select:HI (match_operand:V4HI 1 "register_operand" "y") |
526 |
(parallel |
767 |
(parallel |
527 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
768 |
[(match_operand:SI 2 "immediate_operand" "i")]))))] |
528 |
"TARGET_REALLY_IWMMXT" |
769 |
"TARGET_REALLY_IWMMXT" |
529 |
"textrmsh%?\\t%0, %1, %2" |
770 |
"textrmsh%?\\t%0, %1, %2" |
530 |
[(set_attr "predicable" "yes")]) |
771 |
[(set_attr "predicable" "yes") |
|
|
772 |
(set_attr "wtype" "textrm")] |
773 |
) |
531 |
|
774 |
|
532 |
;; There are signed/unsigned variants of this instruction, but they are |
775 |
;; There are signed/unsigned variants of this instruction, but they are |
533 |
;; pointless. |
776 |
;; pointless. |
Lines 537-543
Link Here
|
537 |
(parallel [(match_operand:SI 2 "immediate_operand" "i")])))] |
780 |
(parallel [(match_operand:SI 2 "immediate_operand" "i")])))] |
538 |
"TARGET_REALLY_IWMMXT" |
781 |
"TARGET_REALLY_IWMMXT" |
539 |
"textrmsw%?\\t%0, %1, %2" |
782 |
"textrmsw%?\\t%0, %1, %2" |
540 |
[(set_attr "predicable" "yes")]) |
783 |
[(set_attr "predicable" "yes") |
|
|
784 |
(set_attr "wtype" "textrm")] |
785 |
) |
541 |
|
786 |
|
542 |
(define_insn "iwmmxt_wshufh" |
787 |
(define_insn "iwmmxt_wshufh" |
543 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
788 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
Lines 545-551
Link Here
|
545 |
(match_operand:SI 2 "immediate_operand" "i")] UNSPEC_WSHUFH))] |
790 |
(match_operand:SI 2 "immediate_operand" "i")] UNSPEC_WSHUFH))] |
546 |
"TARGET_REALLY_IWMMXT" |
791 |
"TARGET_REALLY_IWMMXT" |
547 |
"wshufh%?\\t%0, %1, %2" |
792 |
"wshufh%?\\t%0, %1, %2" |
548 |
[(set_attr "predicable" "yes")]) |
793 |
[(set_attr "predicable" "yes") |
|
|
794 |
(set_attr "wtype" "wshufh")] |
795 |
) |
549 |
|
796 |
|
550 |
;; Mask-generating comparisons |
797 |
;; Mask-generating comparisons |
551 |
;; |
798 |
;; |
Lines 557-648
Link Here
|
557 |
;; into the entire destination vector, (with the '1' going into the least |
804 |
;; into the entire destination vector, (with the '1' going into the least |
558 |
;; significant element of the vector). This is not how these instructions |
805 |
;; significant element of the vector). This is not how these instructions |
559 |
;; behave. |
806 |
;; behave. |
560 |
;; |
|
|
561 |
;; Unfortunately the current patterns are illegal. They are SET insns |
562 |
;; without a SET in them. They work in most cases for ordinary code |
563 |
;; generation, but there are circumstances where they can cause gcc to fail. |
564 |
;; XXX - FIXME. |
565 |
|
807 |
|
566 |
(define_insn "eqv8qi3" |
808 |
(define_insn "eqv8qi3" |
567 |
[(unspec_volatile [(match_operand:V8QI 0 "register_operand" "=y") |
809 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
568 |
(match_operand:V8QI 1 "register_operand" "y") |
810 |
(unspec_volatile:V8QI [(match_operand:V8QI 1 "register_operand" "y") |
569 |
(match_operand:V8QI 2 "register_operand" "y")] |
811 |
(match_operand:V8QI 2 "register_operand" "y")] |
570 |
VUNSPEC_WCMP_EQ)] |
812 |
VUNSPEC_WCMP_EQ))] |
571 |
"TARGET_REALLY_IWMMXT" |
813 |
"TARGET_REALLY_IWMMXT" |
572 |
"wcmpeqb%?\\t%0, %1, %2" |
814 |
"wcmpeqb%?\\t%0, %1, %2" |
573 |
[(set_attr "predicable" "yes")]) |
815 |
[(set_attr "predicable" "yes") |
|
|
816 |
(set_attr "wtype" "wcmpeq")] |
817 |
) |
574 |
|
818 |
|
575 |
(define_insn "eqv4hi3" |
819 |
(define_insn "eqv4hi3" |
576 |
[(unspec_volatile [(match_operand:V4HI 0 "register_operand" "=y") |
820 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
577 |
(match_operand:V4HI 1 "register_operand" "y") |
821 |
(unspec_volatile:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
578 |
(match_operand:V4HI 2 "register_operand" "y")] |
822 |
(match_operand:V4HI 2 "register_operand" "y")] |
579 |
VUNSPEC_WCMP_EQ)] |
823 |
VUNSPEC_WCMP_EQ))] |
580 |
"TARGET_REALLY_IWMMXT" |
824 |
"TARGET_REALLY_IWMMXT" |
581 |
"wcmpeqh%?\\t%0, %1, %2" |
825 |
"wcmpeqh%?\\t%0, %1, %2" |
582 |
[(set_attr "predicable" "yes")]) |
826 |
[(set_attr "predicable" "yes") |
|
|
827 |
(set_attr "wtype" "wcmpeq")] |
828 |
) |
583 |
|
829 |
|
584 |
(define_insn "eqv2si3" |
830 |
(define_insn "eqv2si3" |
585 |
[(unspec_volatile:V2SI [(match_operand:V2SI 0 "register_operand" "=y") |
831 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
586 |
(match_operand:V2SI 1 "register_operand" "y") |
832 |
(unspec_volatile:V2SI |
587 |
(match_operand:V2SI 2 "register_operand" "y")] |
833 |
[(match_operand:V2SI 1 "register_operand" "y") |
588 |
VUNSPEC_WCMP_EQ)] |
834 |
(match_operand:V2SI 2 "register_operand" "y")] |
|
|
835 |
VUNSPEC_WCMP_EQ))] |
589 |
"TARGET_REALLY_IWMMXT" |
836 |
"TARGET_REALLY_IWMMXT" |
590 |
"wcmpeqw%?\\t%0, %1, %2" |
837 |
"wcmpeqw%?\\t%0, %1, %2" |
591 |
[(set_attr "predicable" "yes")]) |
838 |
[(set_attr "predicable" "yes") |
|
|
839 |
(set_attr "wtype" "wcmpeq")] |
840 |
) |
592 |
|
841 |
|
593 |
(define_insn "gtuv8qi3" |
842 |
(define_insn "gtuv8qi3" |
594 |
[(unspec_volatile [(match_operand:V8QI 0 "register_operand" "=y") |
843 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
595 |
(match_operand:V8QI 1 "register_operand" "y") |
844 |
(unspec_volatile:V8QI [(match_operand:V8QI 1 "register_operand" "y") |
596 |
(match_operand:V8QI 2 "register_operand" "y")] |
845 |
(match_operand:V8QI 2 "register_operand" "y")] |
597 |
VUNSPEC_WCMP_GTU)] |
846 |
VUNSPEC_WCMP_GTU))] |
598 |
"TARGET_REALLY_IWMMXT" |
847 |
"TARGET_REALLY_IWMMXT" |
599 |
"wcmpgtub%?\\t%0, %1, %2" |
848 |
"wcmpgtub%?\\t%0, %1, %2" |
600 |
[(set_attr "predicable" "yes")]) |
849 |
[(set_attr "predicable" "yes") |
|
|
850 |
(set_attr "wtype" "wcmpgt")] |
851 |
) |
601 |
|
852 |
|
602 |
(define_insn "gtuv4hi3" |
853 |
(define_insn "gtuv4hi3" |
603 |
[(unspec_volatile [(match_operand:V4HI 0 "register_operand" "=y") |
854 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
604 |
(match_operand:V4HI 1 "register_operand" "y") |
855 |
(unspec_volatile:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
605 |
(match_operand:V4HI 2 "register_operand" "y")] |
856 |
(match_operand:V4HI 2 "register_operand" "y")] |
606 |
VUNSPEC_WCMP_GTU)] |
857 |
VUNSPEC_WCMP_GTU))] |
607 |
"TARGET_REALLY_IWMMXT" |
858 |
"TARGET_REALLY_IWMMXT" |
608 |
"wcmpgtuh%?\\t%0, %1, %2" |
859 |
"wcmpgtuh%?\\t%0, %1, %2" |
609 |
[(set_attr "predicable" "yes")]) |
860 |
[(set_attr "predicable" "yes") |
|
|
861 |
(set_attr "wtype" "wcmpgt")] |
862 |
) |
610 |
|
863 |
|
611 |
(define_insn "gtuv2si3" |
864 |
(define_insn "gtuv2si3" |
612 |
[(unspec_volatile [(match_operand:V2SI 0 "register_operand" "=y") |
865 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
613 |
(match_operand:V2SI 1 "register_operand" "y") |
866 |
(unspec_volatile:V2SI [(match_operand:V2SI 1 "register_operand" "y") |
614 |
(match_operand:V2SI 2 "register_operand" "y")] |
867 |
(match_operand:V2SI 2 "register_operand" "y")] |
615 |
VUNSPEC_WCMP_GTU)] |
868 |
VUNSPEC_WCMP_GTU))] |
616 |
"TARGET_REALLY_IWMMXT" |
869 |
"TARGET_REALLY_IWMMXT" |
617 |
"wcmpgtuw%?\\t%0, %1, %2" |
870 |
"wcmpgtuw%?\\t%0, %1, %2" |
618 |
[(set_attr "predicable" "yes")]) |
871 |
[(set_attr "predicable" "yes") |
|
|
872 |
(set_attr "wtype" "wcmpgt")] |
873 |
) |
619 |
|
874 |
|
620 |
(define_insn "gtv8qi3" |
875 |
(define_insn "gtv8qi3" |
621 |
[(unspec_volatile [(match_operand:V8QI 0 "register_operand" "=y") |
876 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
622 |
(match_operand:V8QI 1 "register_operand" "y") |
877 |
(unspec_volatile:V8QI [(match_operand:V8QI 1 "register_operand" "y") |
623 |
(match_operand:V8QI 2 "register_operand" "y")] |
878 |
(match_operand:V8QI 2 "register_operand" "y")] |
624 |
VUNSPEC_WCMP_GT)] |
879 |
VUNSPEC_WCMP_GT))] |
625 |
"TARGET_REALLY_IWMMXT" |
880 |
"TARGET_REALLY_IWMMXT" |
626 |
"wcmpgtsb%?\\t%0, %1, %2" |
881 |
"wcmpgtsb%?\\t%0, %1, %2" |
627 |
[(set_attr "predicable" "yes")]) |
882 |
[(set_attr "predicable" "yes") |
|
|
883 |
(set_attr "wtype" "wcmpgt")] |
884 |
) |
628 |
|
885 |
|
629 |
(define_insn "gtv4hi3" |
886 |
(define_insn "gtv4hi3" |
630 |
[(unspec_volatile [(match_operand:V4HI 0 "register_operand" "=y") |
887 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
631 |
(match_operand:V4HI 1 "register_operand" "y") |
888 |
(unspec_volatile:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
632 |
(match_operand:V4HI 2 "register_operand" "y")] |
889 |
(match_operand:V4HI 2 "register_operand" "y")] |
633 |
VUNSPEC_WCMP_GT)] |
890 |
VUNSPEC_WCMP_GT))] |
634 |
"TARGET_REALLY_IWMMXT" |
891 |
"TARGET_REALLY_IWMMXT" |
635 |
"wcmpgtsh%?\\t%0, %1, %2" |
892 |
"wcmpgtsh%?\\t%0, %1, %2" |
636 |
[(set_attr "predicable" "yes")]) |
893 |
[(set_attr "predicable" "yes") |
|
|
894 |
(set_attr "wtype" "wcmpgt")] |
895 |
) |
637 |
|
896 |
|
638 |
(define_insn "gtv2si3" |
897 |
(define_insn "gtv2si3" |
639 |
[(unspec_volatile [(match_operand:V2SI 0 "register_operand" "=y") |
898 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
640 |
(match_operand:V2SI 1 "register_operand" "y") |
899 |
(unspec_volatile:V2SI [(match_operand:V2SI 1 "register_operand" "y") |
641 |
(match_operand:V2SI 2 "register_operand" "y")] |
900 |
(match_operand:V2SI 2 "register_operand" "y")] |
642 |
VUNSPEC_WCMP_GT)] |
901 |
VUNSPEC_WCMP_GT))] |
643 |
"TARGET_REALLY_IWMMXT" |
902 |
"TARGET_REALLY_IWMMXT" |
644 |
"wcmpgtsw%?\\t%0, %1, %2" |
903 |
"wcmpgtsw%?\\t%0, %1, %2" |
645 |
[(set_attr "predicable" "yes")]) |
904 |
[(set_attr "predicable" "yes") |
|
|
905 |
(set_attr "wtype" "wcmpgt")] |
906 |
) |
646 |
|
907 |
|
647 |
;; Max/min insns |
908 |
;; Max/min insns |
648 |
|
909 |
|
Lines 652-658
Link Here
|
652 |
(match_operand:VMMX 2 "register_operand" "y")))] |
913 |
(match_operand:VMMX 2 "register_operand" "y")))] |
653 |
"TARGET_REALLY_IWMMXT" |
914 |
"TARGET_REALLY_IWMMXT" |
654 |
"wmaxs<MMX_char>%?\\t%0, %1, %2" |
915 |
"wmaxs<MMX_char>%?\\t%0, %1, %2" |
655 |
[(set_attr "predicable" "yes")]) |
916 |
[(set_attr "predicable" "yes") |
|
|
917 |
(set_attr "wtype" "wmax")] |
918 |
) |
656 |
|
919 |
|
657 |
(define_insn "*umax<mode>3_iwmmxt" |
920 |
(define_insn "*umax<mode>3_iwmmxt" |
658 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
921 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
Lines 660-666
Link Here
|
660 |
(match_operand:VMMX 2 "register_operand" "y")))] |
923 |
(match_operand:VMMX 2 "register_operand" "y")))] |
661 |
"TARGET_REALLY_IWMMXT" |
924 |
"TARGET_REALLY_IWMMXT" |
662 |
"wmaxu<MMX_char>%?\\t%0, %1, %2" |
925 |
"wmaxu<MMX_char>%?\\t%0, %1, %2" |
663 |
[(set_attr "predicable" "yes")]) |
926 |
[(set_attr "predicable" "yes") |
|
|
927 |
(set_attr "wtype" "wmax")] |
928 |
) |
664 |
|
929 |
|
665 |
(define_insn "*smin<mode>3_iwmmxt" |
930 |
(define_insn "*smin<mode>3_iwmmxt" |
666 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
931 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
Lines 668-674
Link Here
|
668 |
(match_operand:VMMX 2 "register_operand" "y")))] |
933 |
(match_operand:VMMX 2 "register_operand" "y")))] |
669 |
"TARGET_REALLY_IWMMXT" |
934 |
"TARGET_REALLY_IWMMXT" |
670 |
"wmins<MMX_char>%?\\t%0, %1, %2" |
935 |
"wmins<MMX_char>%?\\t%0, %1, %2" |
671 |
[(set_attr "predicable" "yes")]) |
936 |
[(set_attr "predicable" "yes") |
|
|
937 |
(set_attr "wtype" "wmin")] |
938 |
) |
672 |
|
939 |
|
673 |
(define_insn "*umin<mode>3_iwmmxt" |
940 |
(define_insn "*umin<mode>3_iwmmxt" |
674 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
941 |
[(set (match_operand:VMMX 0 "register_operand" "=y") |
Lines 676-1332
Link Here
|
676 |
(match_operand:VMMX 2 "register_operand" "y")))] |
943 |
(match_operand:VMMX 2 "register_operand" "y")))] |
677 |
"TARGET_REALLY_IWMMXT" |
944 |
"TARGET_REALLY_IWMMXT" |
678 |
"wminu<MMX_char>%?\\t%0, %1, %2" |
945 |
"wminu<MMX_char>%?\\t%0, %1, %2" |
679 |
[(set_attr "predicable" "yes")]) |
946 |
[(set_attr "predicable" "yes") |
|
|
947 |
(set_attr "wtype" "wmin")] |
948 |
) |
680 |
|
949 |
|
681 |
;; Pack/unpack insns. |
950 |
;; Pack/unpack insns. |
682 |
|
951 |
|
683 |
(define_insn "iwmmxt_wpackhss" |
952 |
(define_insn "iwmmxt_wpackhss" |
684 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
953 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
685 |
(vec_concat:V8QI |
954 |
(vec_concat:V8QI |
686 |
(ss_truncate:V4QI (match_operand:V4HI 1 "register_operand" "y")) |
955 |
(ss_truncate:V4QI (match_operand:V4HI 1 "register_operand" "y")) |
687 |
(ss_truncate:V4QI (match_operand:V4HI 2 "register_operand" "y"))))] |
956 |
(ss_truncate:V4QI (match_operand:V4HI 2 "register_operand" "y"))))] |
688 |
"TARGET_REALLY_IWMMXT" |
957 |
"TARGET_REALLY_IWMMXT" |
689 |
"wpackhss%?\\t%0, %1, %2" |
958 |
"wpackhss%?\\t%0, %1, %2" |
690 |
[(set_attr "predicable" "yes")]) |
959 |
[(set_attr "predicable" "yes") |
|
|
960 |
(set_attr "wtype" "wpack")] |
961 |
) |
691 |
|
962 |
|
692 |
(define_insn "iwmmxt_wpackwss" |
963 |
(define_insn "iwmmxt_wpackwss" |
693 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
964 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
694 |
(vec_concat:V4HI |
965 |
(vec_concat:V4HI |
695 |
(ss_truncate:V2HI (match_operand:V2SI 1 "register_operand" "y")) |
966 |
(ss_truncate:V2HI (match_operand:V2SI 1 "register_operand" "y")) |
696 |
(ss_truncate:V2HI (match_operand:V2SI 2 "register_operand" "y"))))] |
967 |
(ss_truncate:V2HI (match_operand:V2SI 2 "register_operand" "y"))))] |
697 |
"TARGET_REALLY_IWMMXT" |
968 |
"TARGET_REALLY_IWMMXT" |
698 |
"wpackwss%?\\t%0, %1, %2" |
969 |
"wpackwss%?\\t%0, %1, %2" |
699 |
[(set_attr "predicable" "yes")]) |
970 |
[(set_attr "predicable" "yes") |
|
|
971 |
(set_attr "wtype" "wpack")] |
972 |
) |
700 |
|
973 |
|
701 |
(define_insn "iwmmxt_wpackdss" |
974 |
(define_insn "iwmmxt_wpackdss" |
702 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
975 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
703 |
(vec_concat:V2SI |
976 |
(vec_concat:V2SI |
704 |
(ss_truncate:SI (match_operand:DI 1 "register_operand" "y")) |
977 |
(ss_truncate:SI (match_operand:DI 1 "register_operand" "y")) |
705 |
(ss_truncate:SI (match_operand:DI 2 "register_operand" "y"))))] |
978 |
(ss_truncate:SI (match_operand:DI 2 "register_operand" "y"))))] |
706 |
"TARGET_REALLY_IWMMXT" |
979 |
"TARGET_REALLY_IWMMXT" |
707 |
"wpackdss%?\\t%0, %1, %2" |
980 |
"wpackdss%?\\t%0, %1, %2" |
708 |
[(set_attr "predicable" "yes")]) |
981 |
[(set_attr "predicable" "yes") |
|
|
982 |
(set_attr "wtype" "wpack")] |
983 |
) |
709 |
|
984 |
|
710 |
(define_insn "iwmmxt_wpackhus" |
985 |
(define_insn "iwmmxt_wpackhus" |
711 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
986 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
712 |
(vec_concat:V8QI |
987 |
(vec_concat:V8QI |
713 |
(us_truncate:V4QI (match_operand:V4HI 1 "register_operand" "y")) |
988 |
(us_truncate:V4QI (match_operand:V4HI 1 "register_operand" "y")) |
714 |
(us_truncate:V4QI (match_operand:V4HI 2 "register_operand" "y"))))] |
989 |
(us_truncate:V4QI (match_operand:V4HI 2 "register_operand" "y"))))] |
715 |
"TARGET_REALLY_IWMMXT" |
990 |
"TARGET_REALLY_IWMMXT" |
716 |
"wpackhus%?\\t%0, %1, %2" |
991 |
"wpackhus%?\\t%0, %1, %2" |
717 |
[(set_attr "predicable" "yes")]) |
992 |
[(set_attr "predicable" "yes") |
|
|
993 |
(set_attr "wtype" "wpack")] |
994 |
) |
718 |
|
995 |
|
719 |
(define_insn "iwmmxt_wpackwus" |
996 |
(define_insn "iwmmxt_wpackwus" |
720 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
997 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
721 |
(vec_concat:V4HI |
998 |
(vec_concat:V4HI |
722 |
(us_truncate:V2HI (match_operand:V2SI 1 "register_operand" "y")) |
999 |
(us_truncate:V2HI (match_operand:V2SI 1 "register_operand" "y")) |
723 |
(us_truncate:V2HI (match_operand:V2SI 2 "register_operand" "y"))))] |
1000 |
(us_truncate:V2HI (match_operand:V2SI 2 "register_operand" "y"))))] |
724 |
"TARGET_REALLY_IWMMXT" |
1001 |
"TARGET_REALLY_IWMMXT" |
725 |
"wpackwus%?\\t%0, %1, %2" |
1002 |
"wpackwus%?\\t%0, %1, %2" |
726 |
[(set_attr "predicable" "yes")]) |
1003 |
[(set_attr "predicable" "yes") |
|
|
1004 |
(set_attr "wtype" "wpack")] |
1005 |
) |
727 |
|
1006 |
|
728 |
(define_insn "iwmmxt_wpackdus" |
1007 |
(define_insn "iwmmxt_wpackdus" |
729 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1008 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
730 |
(vec_concat:V2SI |
1009 |
(vec_concat:V2SI |
731 |
(us_truncate:SI (match_operand:DI 1 "register_operand" "y")) |
1010 |
(us_truncate:SI (match_operand:DI 1 "register_operand" "y")) |
732 |
(us_truncate:SI (match_operand:DI 2 "register_operand" "y"))))] |
1011 |
(us_truncate:SI (match_operand:DI 2 "register_operand" "y"))))] |
733 |
"TARGET_REALLY_IWMMXT" |
1012 |
"TARGET_REALLY_IWMMXT" |
734 |
"wpackdus%?\\t%0, %1, %2" |
1013 |
"wpackdus%?\\t%0, %1, %2" |
735 |
[(set_attr "predicable" "yes")]) |
1014 |
[(set_attr "predicable" "yes") |
736 |
|
1015 |
(set_attr "wtype" "wpack")] |
|
|
1016 |
) |
737 |
|
1017 |
|
738 |
(define_insn "iwmmxt_wunpckihb" |
1018 |
(define_insn "iwmmxt_wunpckihb" |
739 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1019 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
740 |
(vec_merge:V8QI |
1020 |
(vec_merge:V8QI |
741 |
(vec_select:V8QI (match_operand:V8QI 1 "register_operand" "y") |
1021 |
(vec_select:V8QI (match_operand:V8QI 1 "register_operand" "y") |
742 |
(parallel [(const_int 4) |
1022 |
(parallel [(const_int 4) |
743 |
(const_int 0) |
1023 |
(const_int 0) |
744 |
(const_int 5) |
1024 |
(const_int 5) |
745 |
(const_int 1) |
1025 |
(const_int 1) |
746 |
(const_int 6) |
1026 |
(const_int 6) |
747 |
(const_int 2) |
1027 |
(const_int 2) |
748 |
(const_int 7) |
1028 |
(const_int 7) |
749 |
(const_int 3)])) |
1029 |
(const_int 3)])) |
750 |
(vec_select:V8QI (match_operand:V8QI 2 "register_operand" "y") |
1030 |
(vec_select:V8QI (match_operand:V8QI 2 "register_operand" "y") |
751 |
(parallel [(const_int 0) |
1031 |
(parallel [(const_int 0) |
752 |
(const_int 4) |
1032 |
(const_int 4) |
753 |
(const_int 1) |
1033 |
(const_int 1) |
754 |
(const_int 5) |
1034 |
(const_int 5) |
755 |
(const_int 2) |
1035 |
(const_int 2) |
756 |
(const_int 6) |
1036 |
(const_int 6) |
757 |
(const_int 3) |
1037 |
(const_int 3) |
758 |
(const_int 7)])) |
1038 |
(const_int 7)])) |
759 |
(const_int 85)))] |
1039 |
(const_int 85)))] |
760 |
"TARGET_REALLY_IWMMXT" |
1040 |
"TARGET_REALLY_IWMMXT" |
761 |
"wunpckihb%?\\t%0, %1, %2" |
1041 |
"wunpckihb%?\\t%0, %1, %2" |
762 |
[(set_attr "predicable" "yes")]) |
1042 |
[(set_attr "predicable" "yes") |
|
|
1043 |
(set_attr "wtype" "wunpckih")] |
1044 |
) |
763 |
|
1045 |
|
764 |
(define_insn "iwmmxt_wunpckihh" |
1046 |
(define_insn "iwmmxt_wunpckihh" |
765 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1047 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
766 |
(vec_merge:V4HI |
1048 |
(vec_merge:V4HI |
767 |
(vec_select:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1049 |
(vec_select:V4HI (match_operand:V4HI 1 "register_operand" "y") |
768 |
(parallel [(const_int 0) |
1050 |
(parallel [(const_int 2) |
769 |
(const_int 2) |
1051 |
(const_int 0) |
770 |
(const_int 1) |
1052 |
(const_int 3) |
771 |
(const_int 3)])) |
1053 |
(const_int 1)])) |
772 |
(vec_select:V4HI (match_operand:V4HI 2 "register_operand" "y") |
1054 |
(vec_select:V4HI (match_operand:V4HI 2 "register_operand" "y") |
773 |
(parallel [(const_int 2) |
1055 |
(parallel [(const_int 0) |
774 |
(const_int 0) |
1056 |
(const_int 2) |
775 |
(const_int 3) |
1057 |
(const_int 1) |
776 |
(const_int 1)])) |
1058 |
(const_int 3)])) |
777 |
(const_int 5)))] |
1059 |
(const_int 5)))] |
778 |
"TARGET_REALLY_IWMMXT" |
1060 |
"TARGET_REALLY_IWMMXT" |
779 |
"wunpckihh%?\\t%0, %1, %2" |
1061 |
"wunpckihh%?\\t%0, %1, %2" |
780 |
[(set_attr "predicable" "yes")]) |
1062 |
[(set_attr "predicable" "yes") |
|
|
1063 |
(set_attr "wtype" "wunpckih")] |
1064 |
) |
781 |
|
1065 |
|
782 |
(define_insn "iwmmxt_wunpckihw" |
1066 |
(define_insn "iwmmxt_wunpckihw" |
783 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1067 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
784 |
(vec_merge:V2SI |
1068 |
(vec_merge:V2SI |
785 |
(vec_select:V2SI (match_operand:V2SI 1 "register_operand" "y") |
1069 |
(vec_select:V2SI (match_operand:V2SI 1 "register_operand" "y") |
786 |
(parallel [(const_int 0) |
1070 |
(parallel [(const_int 1) |
787 |
(const_int 1)])) |
1071 |
(const_int 0)])) |
788 |
(vec_select:V2SI (match_operand:V2SI 2 "register_operand" "y") |
1072 |
(vec_select:V2SI (match_operand:V2SI 2 "register_operand" "y") |
789 |
(parallel [(const_int 1) |
1073 |
(parallel [(const_int 0) |
790 |
(const_int 0)])) |
1074 |
(const_int 1)])) |
791 |
(const_int 1)))] |
1075 |
(const_int 1)))] |
792 |
"TARGET_REALLY_IWMMXT" |
1076 |
"TARGET_REALLY_IWMMXT" |
793 |
"wunpckihw%?\\t%0, %1, %2" |
1077 |
"wunpckihw%?\\t%0, %1, %2" |
794 |
[(set_attr "predicable" "yes")]) |
1078 |
[(set_attr "predicable" "yes") |
|
|
1079 |
(set_attr "wtype" "wunpckih")] |
1080 |
) |
795 |
|
1081 |
|
796 |
(define_insn "iwmmxt_wunpckilb" |
1082 |
(define_insn "iwmmxt_wunpckilb" |
797 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1083 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
798 |
(vec_merge:V8QI |
1084 |
(vec_merge:V8QI |
799 |
(vec_select:V8QI (match_operand:V8QI 1 "register_operand" "y") |
1085 |
(vec_select:V8QI (match_operand:V8QI 1 "register_operand" "y") |
800 |
(parallel [(const_int 0) |
1086 |
(parallel [(const_int 0) |
801 |
(const_int 4) |
1087 |
(const_int 4) |
802 |
(const_int 1) |
1088 |
(const_int 1) |
803 |
(const_int 5) |
1089 |
(const_int 5) |
804 |
(const_int 2) |
1090 |
(const_int 2) |
805 |
(const_int 6) |
1091 |
(const_int 6) |
806 |
(const_int 3) |
1092 |
(const_int 3) |
807 |
(const_int 7)])) |
1093 |
(const_int 7)])) |
808 |
(vec_select:V8QI (match_operand:V8QI 2 "register_operand" "y") |
1094 |
(vec_select:V8QI (match_operand:V8QI 2 "register_operand" "y") |
809 |
(parallel [(const_int 4) |
1095 |
(parallel [(const_int 4) |
810 |
(const_int 0) |
1096 |
(const_int 0) |
811 |
(const_int 5) |
1097 |
(const_int 5) |
812 |
(const_int 1) |
1098 |
(const_int 1) |
813 |
(const_int 6) |
1099 |
(const_int 6) |
814 |
(const_int 2) |
1100 |
(const_int 2) |
815 |
(const_int 7) |
1101 |
(const_int 7) |
816 |
(const_int 3)])) |
1102 |
(const_int 3)])) |
817 |
(const_int 85)))] |
1103 |
(const_int 85)))] |
818 |
"TARGET_REALLY_IWMMXT" |
1104 |
"TARGET_REALLY_IWMMXT" |
819 |
"wunpckilb%?\\t%0, %1, %2" |
1105 |
"wunpckilb%?\\t%0, %1, %2" |
820 |
[(set_attr "predicable" "yes")]) |
1106 |
[(set_attr "predicable" "yes") |
|
|
1107 |
(set_attr "wtype" "wunpckil")] |
1108 |
) |
821 |
|
1109 |
|
822 |
(define_insn "iwmmxt_wunpckilh" |
1110 |
(define_insn "iwmmxt_wunpckilh" |
823 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1111 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
824 |
(vec_merge:V4HI |
1112 |
(vec_merge:V4HI |
825 |
(vec_select:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1113 |
(vec_select:V4HI (match_operand:V4HI 1 "register_operand" "y") |
826 |
(parallel [(const_int 2) |
1114 |
(parallel [(const_int 0) |
827 |
(const_int 0) |
1115 |
(const_int 2) |
828 |
(const_int 3) |
1116 |
(const_int 1) |
829 |
(const_int 1)])) |
1117 |
(const_int 3)])) |
830 |
(vec_select:V4HI (match_operand:V4HI 2 "register_operand" "y") |
1118 |
(vec_select:V4HI (match_operand:V4HI 2 "register_operand" "y") |
831 |
(parallel [(const_int 0) |
1119 |
(parallel [(const_int 2) |
832 |
(const_int 2) |
1120 |
(const_int 0) |
833 |
(const_int 1) |
1121 |
(const_int 3) |
834 |
(const_int 3)])) |
1122 |
(const_int 1)])) |
835 |
(const_int 5)))] |
1123 |
(const_int 5)))] |
836 |
"TARGET_REALLY_IWMMXT" |
1124 |
"TARGET_REALLY_IWMMXT" |
837 |
"wunpckilh%?\\t%0, %1, %2" |
1125 |
"wunpckilh%?\\t%0, %1, %2" |
838 |
[(set_attr "predicable" "yes")]) |
1126 |
[(set_attr "predicable" "yes") |
|
|
1127 |
(set_attr "wtype" "wunpckil")] |
1128 |
) |
839 |
|
1129 |
|
840 |
(define_insn "iwmmxt_wunpckilw" |
1130 |
(define_insn "iwmmxt_wunpckilw" |
841 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1131 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
842 |
(vec_merge:V2SI |
1132 |
(vec_merge:V2SI |
843 |
(vec_select:V2SI (match_operand:V2SI 1 "register_operand" "y") |
1133 |
(vec_select:V2SI (match_operand:V2SI 1 "register_operand" "y") |
844 |
(parallel [(const_int 1) |
1134 |
(parallel [(const_int 0) |
845 |
(const_int 0)])) |
1135 |
(const_int 1)])) |
846 |
(vec_select:V2SI (match_operand:V2SI 2 "register_operand" "y") |
1136 |
(vec_select:V2SI (match_operand:V2SI 2 "register_operand" "y") |
847 |
(parallel [(const_int 0) |
1137 |
(parallel [(const_int 1) |
848 |
(const_int 1)])) |
1138 |
(const_int 0)])) |
849 |
(const_int 1)))] |
1139 |
(const_int 1)))] |
850 |
"TARGET_REALLY_IWMMXT" |
1140 |
"TARGET_REALLY_IWMMXT" |
851 |
"wunpckilw%?\\t%0, %1, %2" |
1141 |
"wunpckilw%?\\t%0, %1, %2" |
852 |
[(set_attr "predicable" "yes")]) |
1142 |
[(set_attr "predicable" "yes") |
|
|
1143 |
(set_attr "wtype" "wunpckil")] |
1144 |
) |
853 |
|
1145 |
|
854 |
(define_insn "iwmmxt_wunpckehub" |
1146 |
(define_insn "iwmmxt_wunpckehub" |
855 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1147 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
856 |
(zero_extend:V4HI |
1148 |
(vec_select:V4HI |
857 |
(vec_select:V4QI (match_operand:V8QI 1 "register_operand" "y") |
1149 |
(zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y")) |
858 |
(parallel [(const_int 4) (const_int 5) |
1150 |
(parallel [(const_int 4) (const_int 5) |
859 |
(const_int 6) (const_int 7)]))))] |
1151 |
(const_int 6) (const_int 7)])))] |
860 |
"TARGET_REALLY_IWMMXT" |
1152 |
"TARGET_REALLY_IWMMXT" |
861 |
"wunpckehub%?\\t%0, %1" |
1153 |
"wunpckehub%?\\t%0, %1" |
862 |
[(set_attr "predicable" "yes")]) |
1154 |
[(set_attr "predicable" "yes") |
|
|
1155 |
(set_attr "wtype" "wunpckeh")] |
1156 |
) |
863 |
|
1157 |
|
864 |
(define_insn "iwmmxt_wunpckehuh" |
1158 |
(define_insn "iwmmxt_wunpckehuh" |
865 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1159 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
866 |
(zero_extend:V2SI |
1160 |
(vec_select:V2SI |
867 |
(vec_select:V2HI (match_operand:V4HI 1 "register_operand" "y") |
1161 |
(zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
868 |
(parallel [(const_int 2) (const_int 3)]))))] |
1162 |
(parallel [(const_int 2) (const_int 3)])))] |
869 |
"TARGET_REALLY_IWMMXT" |
1163 |
"TARGET_REALLY_IWMMXT" |
870 |
"wunpckehuh%?\\t%0, %1" |
1164 |
"wunpckehuh%?\\t%0, %1" |
871 |
[(set_attr "predicable" "yes")]) |
1165 |
[(set_attr "predicable" "yes") |
|
|
1166 |
(set_attr "wtype" "wunpckeh")] |
1167 |
) |
872 |
|
1168 |
|
873 |
(define_insn "iwmmxt_wunpckehuw" |
1169 |
(define_insn "iwmmxt_wunpckehuw" |
874 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1170 |
[(set (match_operand:DI 0 "register_operand" "=y") |
875 |
(zero_extend:DI |
1171 |
(vec_select:DI |
876 |
(vec_select:SI (match_operand:V2SI 1 "register_operand" "y") |
1172 |
(zero_extend:V2DI (match_operand:V2SI 1 "register_operand" "y")) |
877 |
(parallel [(const_int 1)]))))] |
1173 |
(parallel [(const_int 1)])))] |
878 |
"TARGET_REALLY_IWMMXT" |
1174 |
"TARGET_REALLY_IWMMXT" |
879 |
"wunpckehuw%?\\t%0, %1" |
1175 |
"wunpckehuw%?\\t%0, %1" |
880 |
[(set_attr "predicable" "yes")]) |
1176 |
[(set_attr "predicable" "yes") |
|
|
1177 |
(set_attr "wtype" "wunpckeh")] |
1178 |
) |
881 |
|
1179 |
|
882 |
(define_insn "iwmmxt_wunpckehsb" |
1180 |
(define_insn "iwmmxt_wunpckehsb" |
883 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1181 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
884 |
(sign_extend:V4HI |
1182 |
(vec_select:V4HI |
885 |
(vec_select:V4QI (match_operand:V8QI 1 "register_operand" "y") |
1183 |
(sign_extend:V8HI (match_operand:V8QI 1 "register_operand" "y")) |
886 |
(parallel [(const_int 4) (const_int 5) |
1184 |
(parallel [(const_int 4) (const_int 5) |
887 |
(const_int 6) (const_int 7)]))))] |
1185 |
(const_int 6) (const_int 7)])))] |
888 |
"TARGET_REALLY_IWMMXT" |
1186 |
"TARGET_REALLY_IWMMXT" |
889 |
"wunpckehsb%?\\t%0, %1" |
1187 |
"wunpckehsb%?\\t%0, %1" |
890 |
[(set_attr "predicable" "yes")]) |
1188 |
[(set_attr "predicable" "yes") |
|
|
1189 |
(set_attr "wtype" "wunpckeh")] |
1190 |
) |
891 |
|
1191 |
|
892 |
(define_insn "iwmmxt_wunpckehsh" |
1192 |
(define_insn "iwmmxt_wunpckehsh" |
893 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1193 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
894 |
(sign_extend:V2SI |
1194 |
(vec_select:V2SI |
895 |
(vec_select:V2HI (match_operand:V4HI 1 "register_operand" "y") |
1195 |
(sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
896 |
(parallel [(const_int 2) (const_int 3)]))))] |
1196 |
(parallel [(const_int 2) (const_int 3)])))] |
897 |
"TARGET_REALLY_IWMMXT" |
1197 |
"TARGET_REALLY_IWMMXT" |
898 |
"wunpckehsh%?\\t%0, %1" |
1198 |
"wunpckehsh%?\\t%0, %1" |
899 |
[(set_attr "predicable" "yes")]) |
1199 |
[(set_attr "predicable" "yes") |
|
|
1200 |
(set_attr "wtype" "wunpckeh")] |
1201 |
) |
900 |
|
1202 |
|
901 |
(define_insn "iwmmxt_wunpckehsw" |
1203 |
(define_insn "iwmmxt_wunpckehsw" |
902 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1204 |
[(set (match_operand:DI 0 "register_operand" "=y") |
903 |
(sign_extend:DI |
1205 |
(vec_select:DI |
904 |
(vec_select:SI (match_operand:V2SI 1 "register_operand" "y") |
1206 |
(sign_extend:V2DI (match_operand:V2SI 1 "register_operand" "y")) |
905 |
(parallel [(const_int 1)]))))] |
1207 |
(parallel [(const_int 1)])))] |
906 |
"TARGET_REALLY_IWMMXT" |
1208 |
"TARGET_REALLY_IWMMXT" |
907 |
"wunpckehsw%?\\t%0, %1" |
1209 |
"wunpckehsw%?\\t%0, %1" |
908 |
[(set_attr "predicable" "yes")]) |
1210 |
[(set_attr "predicable" "yes") |
|
|
1211 |
(set_attr "wtype" "wunpckeh")] |
1212 |
) |
909 |
|
1213 |
|
910 |
(define_insn "iwmmxt_wunpckelub" |
1214 |
(define_insn "iwmmxt_wunpckelub" |
911 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1215 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
912 |
(zero_extend:V4HI |
1216 |
(vec_select:V4HI |
913 |
(vec_select:V4QI (match_operand:V8QI 1 "register_operand" "y") |
1217 |
(zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y")) |
914 |
(parallel [(const_int 0) (const_int 1) |
1218 |
(parallel [(const_int 0) (const_int 1) |
915 |
(const_int 2) (const_int 3)]))))] |
1219 |
(const_int 2) (const_int 3)])))] |
916 |
"TARGET_REALLY_IWMMXT" |
1220 |
"TARGET_REALLY_IWMMXT" |
917 |
"wunpckelub%?\\t%0, %1" |
1221 |
"wunpckelub%?\\t%0, %1" |
918 |
[(set_attr "predicable" "yes")]) |
1222 |
[(set_attr "predicable" "yes") |
|
|
1223 |
(set_attr "wtype" "wunpckel")] |
1224 |
) |
919 |
|
1225 |
|
920 |
(define_insn "iwmmxt_wunpckeluh" |
1226 |
(define_insn "iwmmxt_wunpckeluh" |
921 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1227 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
922 |
(zero_extend:V2SI |
1228 |
(vec_select:V2SI |
923 |
(vec_select:V2HI (match_operand:V4HI 1 "register_operand" "y") |
1229 |
(zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
924 |
(parallel [(const_int 0) (const_int 1)]))))] |
1230 |
(parallel [(const_int 0) (const_int 1)])))] |
925 |
"TARGET_REALLY_IWMMXT" |
1231 |
"TARGET_REALLY_IWMMXT" |
926 |
"wunpckeluh%?\\t%0, %1" |
1232 |
"wunpckeluh%?\\t%0, %1" |
927 |
[(set_attr "predicable" "yes")]) |
1233 |
[(set_attr "predicable" "yes") |
|
|
1234 |
(set_attr "wtype" "wunpckel")] |
1235 |
) |
928 |
|
1236 |
|
929 |
(define_insn "iwmmxt_wunpckeluw" |
1237 |
(define_insn "iwmmxt_wunpckeluw" |
930 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1238 |
[(set (match_operand:DI 0 "register_operand" "=y") |
931 |
(zero_extend:DI |
1239 |
(vec_select:DI |
932 |
(vec_select:SI (match_operand:V2SI 1 "register_operand" "y") |
1240 |
(zero_extend:V2DI (match_operand:V2SI 1 "register_operand" "y")) |
933 |
(parallel [(const_int 0)]))))] |
1241 |
(parallel [(const_int 0)])))] |
934 |
"TARGET_REALLY_IWMMXT" |
1242 |
"TARGET_REALLY_IWMMXT" |
935 |
"wunpckeluw%?\\t%0, %1" |
1243 |
"wunpckeluw%?\\t%0, %1" |
936 |
[(set_attr "predicable" "yes")]) |
1244 |
[(set_attr "predicable" "yes") |
|
|
1245 |
(set_attr "wtype" "wunpckel")] |
1246 |
) |
937 |
|
1247 |
|
938 |
(define_insn "iwmmxt_wunpckelsb" |
1248 |
(define_insn "iwmmxt_wunpckelsb" |
939 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1249 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
940 |
(sign_extend:V4HI |
1250 |
(vec_select:V4HI |
941 |
(vec_select:V4QI (match_operand:V8QI 1 "register_operand" "y") |
1251 |
(sign_extend:V8HI (match_operand:V8QI 1 "register_operand" "y")) |
942 |
(parallel [(const_int 0) (const_int 1) |
1252 |
(parallel [(const_int 0) (const_int 1) |
943 |
(const_int 2) (const_int 3)]))))] |
1253 |
(const_int 2) (const_int 3)])))] |
944 |
"TARGET_REALLY_IWMMXT" |
1254 |
"TARGET_REALLY_IWMMXT" |
945 |
"wunpckelsb%?\\t%0, %1" |
1255 |
"wunpckelsb%?\\t%0, %1" |
946 |
[(set_attr "predicable" "yes")]) |
1256 |
[(set_attr "predicable" "yes") |
|
|
1257 |
(set_attr "wtype" "wunpckel")] |
1258 |
) |
947 |
|
1259 |
|
948 |
(define_insn "iwmmxt_wunpckelsh" |
1260 |
(define_insn "iwmmxt_wunpckelsh" |
949 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1261 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
950 |
(sign_extend:V2SI |
1262 |
(vec_select:V2SI |
951 |
(vec_select:V2HI (match_operand:V4HI 1 "register_operand" "y") |
1263 |
(sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
952 |
(parallel [(const_int 0) (const_int 1)]))))] |
1264 |
(parallel [(const_int 0) (const_int 1)])))] |
953 |
"TARGET_REALLY_IWMMXT" |
1265 |
"TARGET_REALLY_IWMMXT" |
954 |
"wunpckelsh%?\\t%0, %1" |
1266 |
"wunpckelsh%?\\t%0, %1" |
955 |
[(set_attr "predicable" "yes")]) |
1267 |
[(set_attr "predicable" "yes") |
|
|
1268 |
(set_attr "wtype" "wunpckel")] |
1269 |
) |
956 |
|
1270 |
|
957 |
(define_insn "iwmmxt_wunpckelsw" |
1271 |
(define_insn "iwmmxt_wunpckelsw" |
958 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1272 |
[(set (match_operand:DI 0 "register_operand" "=y") |
959 |
(sign_extend:DI |
1273 |
(vec_select:DI |
960 |
(vec_select:SI (match_operand:V2SI 1 "register_operand" "y") |
1274 |
(sign_extend:V2DI (match_operand:V2SI 1 "register_operand" "y")) |
961 |
(parallel [(const_int 0)]))))] |
1275 |
(parallel [(const_int 0)])))] |
962 |
"TARGET_REALLY_IWMMXT" |
1276 |
"TARGET_REALLY_IWMMXT" |
963 |
"wunpckelsw%?\\t%0, %1" |
1277 |
"wunpckelsw%?\\t%0, %1" |
964 |
[(set_attr "predicable" "yes")]) |
1278 |
[(set_attr "predicable" "yes") |
|
|
1279 |
(set_attr "wtype" "wunpckel")] |
1280 |
) |
965 |
|
1281 |
|
966 |
;; Shifts |
1282 |
;; Shifts |
967 |
|
1283 |
|
968 |
(define_insn "rorv4hi3" |
1284 |
(define_insn "ror<mode>3" |
969 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1285 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
970 |
(rotatert:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1286 |
(rotatert:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
971 |
(match_operand:SI 2 "register_operand" "z")))] |
1287 |
(match_operand:SI 2 "imm_or_reg_operand" "z,i")))] |
972 |
"TARGET_REALLY_IWMMXT" |
|
|
973 |
"wrorhg%?\\t%0, %1, %2" |
974 |
[(set_attr "predicable" "yes")]) |
975 |
|
976 |
(define_insn "rorv2si3" |
977 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
978 |
(rotatert:V2SI (match_operand:V2SI 1 "register_operand" "y") |
979 |
(match_operand:SI 2 "register_operand" "z")))] |
980 |
"TARGET_REALLY_IWMMXT" |
1288 |
"TARGET_REALLY_IWMMXT" |
981 |
"wrorwg%?\\t%0, %1, %2" |
1289 |
"* |
982 |
[(set_attr "predicable" "yes")]) |
1290 |
switch (which_alternative) |
983 |
|
1291 |
{ |
984 |
(define_insn "rordi3" |
1292 |
case 0: |
985 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1293 |
return \"wror<MMX_char>g%?\\t%0, %1, %2\"; |
986 |
(rotatert:DI (match_operand:DI 1 "register_operand" "y") |
1294 |
case 1: |
987 |
(match_operand:SI 2 "register_operand" "z")))] |
1295 |
return arm_output_iwmmxt_shift_immediate (\"wror<MMX_char>\", operands, true); |
988 |
"TARGET_REALLY_IWMMXT" |
1296 |
default: |
989 |
"wrordg%?\\t%0, %1, %2" |
1297 |
gcc_unreachable (); |
990 |
[(set_attr "predicable" "yes")]) |
1298 |
} |
|
|
1299 |
" |
1300 |
[(set_attr "predicable" "yes") |
1301 |
(set_attr "arch" "*, iwmmxt2") |
1302 |
(set_attr "wtype" "wror, wror")] |
1303 |
) |
991 |
|
1304 |
|
992 |
(define_insn "ashr<mode>3_iwmmxt" |
1305 |
(define_insn "ashr<mode>3_iwmmxt" |
993 |
[(set (match_operand:VSHFT 0 "register_operand" "=y") |
1306 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
994 |
(ashiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y") |
1307 |
(ashiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
995 |
(match_operand:SI 2 "register_operand" "z")))] |
1308 |
(match_operand:SI 2 "imm_or_reg_operand" "z,i")))] |
996 |
"TARGET_REALLY_IWMMXT" |
1309 |
"TARGET_REALLY_IWMMXT" |
997 |
"wsra<MMX_char>g%?\\t%0, %1, %2" |
1310 |
"* |
998 |
[(set_attr "predicable" "yes")]) |
1311 |
switch (which_alternative) |
|
|
1312 |
{ |
1313 |
case 0: |
1314 |
return \"wsra<MMX_char>g%?\\t%0, %1, %2\"; |
1315 |
case 1: |
1316 |
return arm_output_iwmmxt_shift_immediate (\"wsra<MMX_char>\", operands, true); |
1317 |
default: |
1318 |
gcc_unreachable (); |
1319 |
} |
1320 |
" |
1321 |
[(set_attr "predicable" "yes") |
1322 |
(set_attr "arch" "*, iwmmxt2") |
1323 |
(set_attr "wtype" "wsra, wsra")] |
1324 |
) |
999 |
|
1325 |
|
1000 |
(define_insn "lshr<mode>3_iwmmxt" |
1326 |
(define_insn "lshr<mode>3_iwmmxt" |
1001 |
[(set (match_operand:VSHFT 0 "register_operand" "=y") |
1327 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
1002 |
(lshiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y") |
1328 |
(lshiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
1003 |
(match_operand:SI 2 "register_operand" "z")))] |
1329 |
(match_operand:SI 2 "imm_or_reg_operand" "z,i")))] |
1004 |
"TARGET_REALLY_IWMMXT" |
1330 |
"TARGET_REALLY_IWMMXT" |
1005 |
"wsrl<MMX_char>g%?\\t%0, %1, %2" |
1331 |
"* |
1006 |
[(set_attr "predicable" "yes")]) |
1332 |
switch (which_alternative) |
|
|
1333 |
{ |
1334 |
case 0: |
1335 |
return \"wsrl<MMX_char>g%?\\t%0, %1, %2\"; |
1336 |
case 1: |
1337 |
return arm_output_iwmmxt_shift_immediate (\"wsrl<MMX_char>\", operands, false); |
1338 |
default: |
1339 |
gcc_unreachable (); |
1340 |
} |
1341 |
" |
1342 |
[(set_attr "predicable" "yes") |
1343 |
(set_attr "arch" "*, iwmmxt2") |
1344 |
(set_attr "wtype" "wsrl, wsrl")] |
1345 |
) |
1007 |
|
1346 |
|
1008 |
(define_insn "ashl<mode>3_iwmmxt" |
1347 |
(define_insn "ashl<mode>3_iwmmxt" |
1009 |
[(set (match_operand:VSHFT 0 "register_operand" "=y") |
1348 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
1010 |
(ashift:VSHFT (match_operand:VSHFT 1 "register_operand" "y") |
1349 |
(ashift:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
1011 |
(match_operand:SI 2 "register_operand" "z")))] |
1350 |
(match_operand:SI 2 "imm_or_reg_operand" "z,i")))] |
1012 |
"TARGET_REALLY_IWMMXT" |
|
|
1013 |
"wsll<MMX_char>g%?\\t%0, %1, %2" |
1014 |
[(set_attr "predicable" "yes")]) |
1015 |
|
1016 |
(define_insn "rorv4hi3_di" |
1017 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1018 |
(rotatert:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1019 |
(match_operand:DI 2 "register_operand" "y")))] |
1020 |
"TARGET_REALLY_IWMMXT" |
1021 |
"wrorh%?\\t%0, %1, %2" |
1022 |
[(set_attr "predicable" "yes")]) |
1023 |
|
1024 |
(define_insn "rorv2si3_di" |
1025 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1026 |
(rotatert:V2SI (match_operand:V2SI 1 "register_operand" "y") |
1027 |
(match_operand:DI 2 "register_operand" "y")))] |
1028 |
"TARGET_REALLY_IWMMXT" |
1029 |
"wrorw%?\\t%0, %1, %2" |
1030 |
[(set_attr "predicable" "yes")]) |
1031 |
|
1032 |
(define_insn "rordi3_di" |
1033 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1034 |
(rotatert:DI (match_operand:DI 1 "register_operand" "y") |
1035 |
(match_operand:DI 2 "register_operand" "y")))] |
1036 |
"TARGET_REALLY_IWMMXT" |
1037 |
"wrord%?\\t%0, %1, %2" |
1038 |
[(set_attr "predicable" "yes")]) |
1039 |
|
1040 |
(define_insn "ashrv4hi3_di" |
1041 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1042 |
(ashiftrt:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1043 |
(match_operand:DI 2 "register_operand" "y")))] |
1044 |
"TARGET_REALLY_IWMMXT" |
1351 |
"TARGET_REALLY_IWMMXT" |
1045 |
"wsrah%?\\t%0, %1, %2" |
1352 |
"* |
1046 |
[(set_attr "predicable" "yes")]) |
1353 |
switch (which_alternative) |
1047 |
|
1354 |
{ |
1048 |
(define_insn "ashrv2si3_di" |
1355 |
case 0: |
1049 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1356 |
return \"wsll<MMX_char>g%?\\t%0, %1, %2\"; |
1050 |
(ashiftrt:V2SI (match_operand:V2SI 1 "register_operand" "y") |
1357 |
case 1: |
1051 |
(match_operand:DI 2 "register_operand" "y")))] |
1358 |
return arm_output_iwmmxt_shift_immediate (\"wsll<MMX_char>\", operands, false); |
1052 |
"TARGET_REALLY_IWMMXT" |
1359 |
default: |
1053 |
"wsraw%?\\t%0, %1, %2" |
1360 |
gcc_unreachable (); |
1054 |
[(set_attr "predicable" "yes")]) |
1361 |
} |
|
|
1362 |
" |
1363 |
[(set_attr "predicable" "yes") |
1364 |
(set_attr "arch" "*, iwmmxt2") |
1365 |
(set_attr "wtype" "wsll, wsll")] |
1366 |
) |
1055 |
|
1367 |
|
1056 |
(define_insn "ashrdi3_di" |
1368 |
(define_insn "ror<mode>3_di" |
1057 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1369 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
1058 |
(ashiftrt:DI (match_operand:DI 1 "register_operand" "y") |
1370 |
(rotatert:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
1059 |
(match_operand:DI 2 "register_operand" "y")))] |
1371 |
(match_operand:DI 2 "imm_or_reg_operand" "y,i")))] |
1060 |
"TARGET_REALLY_IWMMXT" |
1372 |
"TARGET_REALLY_IWMMXT" |
1061 |
"wsrad%?\\t%0, %1, %2" |
1373 |
"* |
1062 |
[(set_attr "predicable" "yes")]) |
1374 |
switch (which_alternative) |
|
|
1375 |
{ |
1376 |
case 0: |
1377 |
return \"wror<MMX_char>%?\\t%0, %1, %2\"; |
1378 |
case 1: |
1379 |
return arm_output_iwmmxt_shift_immediate (\"wror<MMX_char>\", operands, true); |
1380 |
default: |
1381 |
gcc_unreachable (); |
1382 |
} |
1383 |
" |
1384 |
[(set_attr "predicable" "yes") |
1385 |
(set_attr "arch" "*, iwmmxt2") |
1386 |
(set_attr "wtype" "wror, wror")] |
1387 |
) |
1063 |
|
1388 |
|
1064 |
(define_insn "lshrv4hi3_di" |
1389 |
(define_insn "ashr<mode>3_di" |
1065 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1390 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
1066 |
(lshiftrt:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1391 |
(ashiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
1067 |
(match_operand:DI 2 "register_operand" "y")))] |
1392 |
(match_operand:DI 2 "imm_or_reg_operand" "y,i")))] |
1068 |
"TARGET_REALLY_IWMMXT" |
1393 |
"TARGET_REALLY_IWMMXT" |
1069 |
"wsrlh%?\\t%0, %1, %2" |
1394 |
"* |
1070 |
[(set_attr "predicable" "yes")]) |
1395 |
switch (which_alternative) |
|
|
1396 |
{ |
1397 |
case 0: |
1398 |
return \"wsra<MMX_char>%?\\t%0, %1, %2\"; |
1399 |
case 1: |
1400 |
return arm_output_iwmmxt_shift_immediate (\"wsra<MMX_char>\", operands, true); |
1401 |
default: |
1402 |
gcc_unreachable (); |
1403 |
} |
1404 |
" |
1405 |
[(set_attr "predicable" "yes") |
1406 |
(set_attr "arch" "*, iwmmxt2") |
1407 |
(set_attr "wtype" "wsra, wsra")] |
1408 |
) |
1071 |
|
1409 |
|
1072 |
(define_insn "lshrv2si3_di" |
1410 |
(define_insn "lshr<mode>3_di" |
1073 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1411 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
1074 |
(lshiftrt:V2SI (match_operand:V2SI 1 "register_operand" "y") |
1412 |
(lshiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
1075 |
(match_operand:DI 2 "register_operand" "y")))] |
1413 |
(match_operand:DI 2 "register_operand" "y,i")))] |
1076 |
"TARGET_REALLY_IWMMXT" |
1414 |
"TARGET_REALLY_IWMMXT" |
1077 |
"wsrlw%?\\t%0, %1, %2" |
1415 |
"* |
1078 |
[(set_attr "predicable" "yes")]) |
1416 |
switch (which_alternative) |
|
|
1417 |
{ |
1418 |
case 0: |
1419 |
return \"wsrl<MMX_char>%?\\t%0, %1, %2\"; |
1420 |
case 1: |
1421 |
return arm_output_iwmmxt_shift_immediate (\"wsrl<MMX_char>\", operands, false); |
1422 |
default: |
1423 |
gcc_unreachable (); |
1424 |
} |
1425 |
" |
1426 |
[(set_attr "predicable" "yes") |
1427 |
(set_attr "arch" "*, iwmmxt2") |
1428 |
(set_attr "wtype" "wsrl, wsrl")] |
1429 |
) |
1079 |
|
1430 |
|
1080 |
(define_insn "lshrdi3_di" |
1431 |
(define_insn "ashl<mode>3_di" |
1081 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1432 |
[(set (match_operand:VSHFT 0 "register_operand" "=y,y") |
1082 |
(lshiftrt:DI (match_operand:DI 1 "register_operand" "y") |
1433 |
(ashift:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y") |
1083 |
(match_operand:DI 2 "register_operand" "y")))] |
1434 |
(match_operand:DI 2 "imm_or_reg_operand" "y,i")))] |
1084 |
"TARGET_REALLY_IWMMXT" |
|
|
1085 |
"wsrld%?\\t%0, %1, %2" |
1086 |
[(set_attr "predicable" "yes")]) |
1087 |
|
1088 |
(define_insn "ashlv4hi3_di" |
1089 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1090 |
(ashift:V4HI (match_operand:V4HI 1 "register_operand" "y") |
1091 |
(match_operand:DI 2 "register_operand" "y")))] |
1092 |
"TARGET_REALLY_IWMMXT" |
1093 |
"wsllh%?\\t%0, %1, %2" |
1094 |
[(set_attr "predicable" "yes")]) |
1095 |
|
1096 |
(define_insn "ashlv2si3_di" |
1097 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1098 |
(ashift:V2SI (match_operand:V2SI 1 "register_operand" "y") |
1099 |
(match_operand:DI 2 "register_operand" "y")))] |
1100 |
"TARGET_REALLY_IWMMXT" |
1101 |
"wsllw%?\\t%0, %1, %2" |
1102 |
[(set_attr "predicable" "yes")]) |
1103 |
|
1104 |
(define_insn "ashldi3_di" |
1105 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1106 |
(ashift:DI (match_operand:DI 1 "register_operand" "y") |
1107 |
(match_operand:DI 2 "register_operand" "y")))] |
1108 |
"TARGET_REALLY_IWMMXT" |
1435 |
"TARGET_REALLY_IWMMXT" |
1109 |
"wslld%?\\t%0, %1, %2" |
1436 |
"* |
1110 |
[(set_attr "predicable" "yes")]) |
1437 |
switch (which_alternative) |
|
|
1438 |
{ |
1439 |
case 0: |
1440 |
return \"wsll<MMX_char>%?\\t%0, %1, %2\"; |
1441 |
case 1: |
1442 |
return arm_output_iwmmxt_shift_immediate (\"wsll<MMX_char>\", operands, false); |
1443 |
default: |
1444 |
gcc_unreachable (); |
1445 |
} |
1446 |
" |
1447 |
[(set_attr "predicable" "yes") |
1448 |
(set_attr "arch" "*, iwmmxt2") |
1449 |
(set_attr "wtype" "wsll, wsll")] |
1450 |
) |
1111 |
|
1451 |
|
1112 |
(define_insn "iwmmxt_wmadds" |
1452 |
(define_insn "iwmmxt_wmadds" |
1113 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1453 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1114 |
(unspec:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
1454 |
(plus:V2SI |
1115 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMADDS))] |
1455 |
(mult:V2SI |
|
|
1456 |
(vec_select:V2SI (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
1457 |
(parallel [(const_int 1) (const_int 3)])) |
1458 |
(vec_select:V2SI (sign_extend:V4SI (match_operand:V4HI 2 "register_operand" "y")) |
1459 |
(parallel [(const_int 1) (const_int 3)]))) |
1460 |
(mult:V2SI |
1461 |
(vec_select:V2SI (sign_extend:V4SI (match_dup 1)) |
1462 |
(parallel [(const_int 0) (const_int 2)])) |
1463 |
(vec_select:V2SI (sign_extend:V4SI (match_dup 2)) |
1464 |
(parallel [(const_int 0) (const_int 2)])))))] |
1116 |
"TARGET_REALLY_IWMMXT" |
1465 |
"TARGET_REALLY_IWMMXT" |
1117 |
"wmadds%?\\t%0, %1, %2" |
1466 |
"wmadds%?\\t%0, %1, %2" |
1118 |
[(set_attr "predicable" "yes")]) |
1467 |
[(set_attr "predicable" "yes") |
|
|
1468 |
(set_attr "wtype" "wmadd")] |
1469 |
) |
1119 |
|
1470 |
|
1120 |
(define_insn "iwmmxt_wmaddu" |
1471 |
(define_insn "iwmmxt_wmaddu" |
1121 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1472 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1122 |
(unspec:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
1473 |
(plus:V2SI |
1123 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMADDU))] |
1474 |
(mult:V2SI |
|
|
1475 |
(vec_select:V2SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y")) |
1476 |
(parallel [(const_int 1) (const_int 3)])) |
1477 |
(vec_select:V2SI (zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y")) |
1478 |
(parallel [(const_int 1) (const_int 3)]))) |
1479 |
(mult:V2SI |
1480 |
(vec_select:V2SI (zero_extend:V4SI (match_dup 1)) |
1481 |
(parallel [(const_int 0) (const_int 2)])) |
1482 |
(vec_select:V2SI (zero_extend:V4SI (match_dup 2)) |
1483 |
(parallel [(const_int 0) (const_int 2)])))))] |
1124 |
"TARGET_REALLY_IWMMXT" |
1484 |
"TARGET_REALLY_IWMMXT" |
1125 |
"wmaddu%?\\t%0, %1, %2" |
1485 |
"wmaddu%?\\t%0, %1, %2" |
1126 |
[(set_attr "predicable" "yes")]) |
1486 |
[(set_attr "predicable" "yes") |
|
|
1487 |
(set_attr "wtype" "wmadd")] |
1488 |
) |
1127 |
|
1489 |
|
1128 |
(define_insn "iwmmxt_tmia" |
1490 |
(define_insn "iwmmxt_tmia" |
1129 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1491 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1130 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1492 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1131 |
(mult:DI (sign_extend:DI |
1493 |
(mult:DI (sign_extend:DI |
1132 |
(match_operand:SI 2 "register_operand" "r")) |
1494 |
(match_operand:SI 2 "register_operand" "r")) |
1133 |
(sign_extend:DI |
1495 |
(sign_extend:DI |
1134 |
(match_operand:SI 3 "register_operand" "r")))))] |
1496 |
(match_operand:SI 3 "register_operand" "r")))))] |
1135 |
"TARGET_REALLY_IWMMXT" |
1497 |
"TARGET_REALLY_IWMMXT" |
1136 |
"tmia%?\\t%0, %2, %3" |
1498 |
"tmia%?\\t%0, %2, %3" |
1137 |
[(set_attr "predicable" "yes")]) |
1499 |
[(set_attr "predicable" "yes") |
|
|
1500 |
(set_attr "wtype" "tmia")] |
1501 |
) |
1138 |
|
1502 |
|
1139 |
(define_insn "iwmmxt_tmiaph" |
1503 |
(define_insn "iwmmxt_tmiaph" |
1140 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1504 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1141 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1505 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1142 |
(plus:DI |
1506 |
(plus:DI |
1143 |
(mult:DI (sign_extend:DI |
1507 |
(mult:DI (sign_extend:DI |
1144 |
(truncate:HI (match_operand:SI 2 "register_operand" "r"))) |
1508 |
(truncate:HI (match_operand:SI 2 "register_operand" "r"))) |
1145 |
(sign_extend:DI |
1509 |
(sign_extend:DI |
1146 |
(truncate:HI (match_operand:SI 3 "register_operand" "r")))) |
1510 |
(truncate:HI (match_operand:SI 3 "register_operand" "r")))) |
1147 |
(mult:DI (sign_extend:DI |
1511 |
(mult:DI (sign_extend:DI |
1148 |
(truncate:HI (ashiftrt:SI (match_dup 2) (const_int 16)))) |
1512 |
(truncate:HI (ashiftrt:SI (match_dup 2) (const_int 16)))) |
1149 |
(sign_extend:DI |
1513 |
(sign_extend:DI |
1150 |
(truncate:HI (ashiftrt:SI (match_dup 3) (const_int 16))))))))] |
1514 |
(truncate:HI (ashiftrt:SI (match_dup 3) (const_int 16))))))))] |
1151 |
"TARGET_REALLY_IWMMXT" |
1515 |
"TARGET_REALLY_IWMMXT" |
1152 |
"tmiaph%?\\t%0, %2, %3" |
1516 |
"tmiaph%?\\t%0, %2, %3" |
1153 |
[(set_attr "predicable" "yes")]) |
1517 |
[(set_attr "predicable" "yes") |
|
|
1518 |
(set_attr "wtype" "tmiaph")] |
1519 |
) |
1154 |
|
1520 |
|
1155 |
(define_insn "iwmmxt_tmiabb" |
1521 |
(define_insn "iwmmxt_tmiabb" |
1156 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1522 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1157 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1523 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1158 |
(mult:DI (sign_extend:DI |
1524 |
(mult:DI (sign_extend:DI |
1159 |
(truncate:HI (match_operand:SI 2 "register_operand" "r"))) |
1525 |
(truncate:HI (match_operand:SI 2 "register_operand" "r"))) |
1160 |
(sign_extend:DI |
1526 |
(sign_extend:DI |
1161 |
(truncate:HI (match_operand:SI 3 "register_operand" "r"))))))] |
1527 |
(truncate:HI (match_operand:SI 3 "register_operand" "r"))))))] |
1162 |
"TARGET_REALLY_IWMMXT" |
1528 |
"TARGET_REALLY_IWMMXT" |
1163 |
"tmiabb%?\\t%0, %2, %3" |
1529 |
"tmiabb%?\\t%0, %2, %3" |
1164 |
[(set_attr "predicable" "yes")]) |
1530 |
[(set_attr "predicable" "yes") |
|
|
1531 |
(set_attr "wtype" "tmiaxy")] |
1532 |
) |
1165 |
|
1533 |
|
1166 |
(define_insn "iwmmxt_tmiatb" |
1534 |
(define_insn "iwmmxt_tmiatb" |
1167 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1535 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1168 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1536 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1169 |
(mult:DI (sign_extend:DI |
1537 |
(mult:DI (sign_extend:DI |
1170 |
(truncate:HI (ashiftrt:SI |
1538 |
(truncate:HI |
1171 |
(match_operand:SI 2 "register_operand" "r") |
1539 |
(ashiftrt:SI |
1172 |
(const_int 16)))) |
1540 |
(match_operand:SI 2 "register_operand" "r") |
|
|
1541 |
(const_int 16)))) |
1173 |
(sign_extend:DI |
1542 |
(sign_extend:DI |
1174 |
(truncate:HI (match_operand:SI 3 "register_operand" "r"))))))] |
1543 |
(truncate:HI |
|
|
1544 |
(match_operand:SI 3 "register_operand" "r"))))))] |
1175 |
"TARGET_REALLY_IWMMXT" |
1545 |
"TARGET_REALLY_IWMMXT" |
1176 |
"tmiatb%?\\t%0, %2, %3" |
1546 |
"tmiatb%?\\t%0, %2, %3" |
1177 |
[(set_attr "predicable" "yes")]) |
1547 |
[(set_attr "predicable" "yes") |
|
|
1548 |
(set_attr "wtype" "tmiaxy")] |
1549 |
) |
1178 |
|
1550 |
|
1179 |
(define_insn "iwmmxt_tmiabt" |
1551 |
(define_insn "iwmmxt_tmiabt" |
1180 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1552 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1181 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1553 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1182 |
(mult:DI (sign_extend:DI |
1554 |
(mult:DI (sign_extend:DI |
1183 |
(truncate:HI (match_operand:SI 2 "register_operand" "r"))) |
1555 |
(truncate:HI |
|
|
1556 |
(match_operand:SI 2 "register_operand" "r"))) |
1184 |
(sign_extend:DI |
1557 |
(sign_extend:DI |
1185 |
(truncate:HI (ashiftrt:SI |
1558 |
(truncate:HI |
1186 |
(match_operand:SI 3 "register_operand" "r") |
1559 |
(ashiftrt:SI |
1187 |
(const_int 16)))))))] |
1560 |
(match_operand:SI 3 "register_operand" "r") |
|
|
1561 |
(const_int 16)))))))] |
1188 |
"TARGET_REALLY_IWMMXT" |
1562 |
"TARGET_REALLY_IWMMXT" |
1189 |
"tmiabt%?\\t%0, %2, %3" |
1563 |
"tmiabt%?\\t%0, %2, %3" |
1190 |
[(set_attr "predicable" "yes")]) |
1564 |
[(set_attr "predicable" "yes") |
|
|
1565 |
(set_attr "wtype" "tmiaxy")] |
1566 |
) |
1191 |
|
1567 |
|
1192 |
(define_insn "iwmmxt_tmiatt" |
1568 |
(define_insn "iwmmxt_tmiatt" |
1193 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1569 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1194 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1570 |
(plus:DI (match_operand:DI 1 "register_operand" "0") |
1195 |
(mult:DI (sign_extend:DI |
1571 |
(mult:DI (sign_extend:DI |
1196 |
(truncate:HI (ashiftrt:SI |
1572 |
(truncate:HI |
1197 |
(match_operand:SI 2 "register_operand" "r") |
1573 |
(ashiftrt:SI |
1198 |
(const_int 16)))) |
1574 |
(match_operand:SI 2 "register_operand" "r") |
|
|
1575 |
(const_int 16)))) |
1199 |
(sign_extend:DI |
1576 |
(sign_extend:DI |
1200 |
(truncate:HI (ashiftrt:SI |
1577 |
(truncate:HI |
1201 |
(match_operand:SI 3 "register_operand" "r") |
1578 |
(ashiftrt:SI |
1202 |
(const_int 16)))))))] |
1579 |
(match_operand:SI 3 "register_operand" "r") |
|
|
1580 |
(const_int 16)))))))] |
1203 |
"TARGET_REALLY_IWMMXT" |
1581 |
"TARGET_REALLY_IWMMXT" |
1204 |
"tmiatt%?\\t%0, %2, %3" |
1582 |
"tmiatt%?\\t%0, %2, %3" |
1205 |
[(set_attr "predicable" "yes")]) |
1583 |
[(set_attr "predicable" "yes") |
1206 |
|
1584 |
(set_attr "wtype" "tmiaxy")] |
1207 |
(define_insn "iwmmxt_tbcstqi" |
1585 |
) |
1208 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
|
|
1209 |
(vec_duplicate:V8QI (match_operand:QI 1 "register_operand" "r")))] |
1210 |
"TARGET_REALLY_IWMMXT" |
1211 |
"tbcstb%?\\t%0, %1" |
1212 |
[(set_attr "predicable" "yes")]) |
1213 |
|
1214 |
(define_insn "iwmmxt_tbcsthi" |
1215 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1216 |
(vec_duplicate:V4HI (match_operand:HI 1 "register_operand" "r")))] |
1217 |
"TARGET_REALLY_IWMMXT" |
1218 |
"tbcsth%?\\t%0, %1" |
1219 |
[(set_attr "predicable" "yes")]) |
1220 |
|
1221 |
(define_insn "iwmmxt_tbcstsi" |
1222 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1223 |
(vec_duplicate:V2SI (match_operand:SI 1 "register_operand" "r")))] |
1224 |
"TARGET_REALLY_IWMMXT" |
1225 |
"tbcstw%?\\t%0, %1" |
1226 |
[(set_attr "predicable" "yes")]) |
1227 |
|
1586 |
|
1228 |
(define_insn "iwmmxt_tmovmskb" |
1587 |
(define_insn "iwmmxt_tmovmskb" |
1229 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1588 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1230 |
(unspec:SI [(match_operand:V8QI 1 "register_operand" "y")] UNSPEC_TMOVMSK))] |
1589 |
(unspec:SI [(match_operand:V8QI 1 "register_operand" "y")] UNSPEC_TMOVMSK))] |
1231 |
"TARGET_REALLY_IWMMXT" |
1590 |
"TARGET_REALLY_IWMMXT" |
1232 |
"tmovmskb%?\\t%0, %1" |
1591 |
"tmovmskb%?\\t%0, %1" |
1233 |
[(set_attr "predicable" "yes")]) |
1592 |
[(set_attr "predicable" "yes") |
|
|
1593 |
(set_attr "wtype" "tmovmsk")] |
1594 |
) |
1234 |
|
1595 |
|
1235 |
(define_insn "iwmmxt_tmovmskh" |
1596 |
(define_insn "iwmmxt_tmovmskh" |
1236 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1597 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1237 |
(unspec:SI [(match_operand:V4HI 1 "register_operand" "y")] UNSPEC_TMOVMSK))] |
1598 |
(unspec:SI [(match_operand:V4HI 1 "register_operand" "y")] UNSPEC_TMOVMSK))] |
1238 |
"TARGET_REALLY_IWMMXT" |
1599 |
"TARGET_REALLY_IWMMXT" |
1239 |
"tmovmskh%?\\t%0, %1" |
1600 |
"tmovmskh%?\\t%0, %1" |
1240 |
[(set_attr "predicable" "yes")]) |
1601 |
[(set_attr "predicable" "yes") |
|
|
1602 |
(set_attr "wtype" "tmovmsk")] |
1603 |
) |
1241 |
|
1604 |
|
1242 |
(define_insn "iwmmxt_tmovmskw" |
1605 |
(define_insn "iwmmxt_tmovmskw" |
1243 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1606 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1244 |
(unspec:SI [(match_operand:V2SI 1 "register_operand" "y")] UNSPEC_TMOVMSK))] |
1607 |
(unspec:SI [(match_operand:V2SI 1 "register_operand" "y")] UNSPEC_TMOVMSK))] |
1245 |
"TARGET_REALLY_IWMMXT" |
1608 |
"TARGET_REALLY_IWMMXT" |
1246 |
"tmovmskw%?\\t%0, %1" |
1609 |
"tmovmskw%?\\t%0, %1" |
1247 |
[(set_attr "predicable" "yes")]) |
1610 |
[(set_attr "predicable" "yes") |
|
|
1611 |
(set_attr "wtype" "tmovmsk")] |
1612 |
) |
1248 |
|
1613 |
|
1249 |
(define_insn "iwmmxt_waccb" |
1614 |
(define_insn "iwmmxt_waccb" |
1250 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1615 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1251 |
(unspec:DI [(match_operand:V8QI 1 "register_operand" "y")] UNSPEC_WACC))] |
1616 |
(unspec:DI [(match_operand:V8QI 1 "register_operand" "y")] UNSPEC_WACC))] |
1252 |
"TARGET_REALLY_IWMMXT" |
1617 |
"TARGET_REALLY_IWMMXT" |
1253 |
"waccb%?\\t%0, %1" |
1618 |
"waccb%?\\t%0, %1" |
1254 |
[(set_attr "predicable" "yes")]) |
1619 |
[(set_attr "predicable" "yes") |
|
|
1620 |
(set_attr "wtype" "wacc")] |
1621 |
) |
1255 |
|
1622 |
|
1256 |
(define_insn "iwmmxt_wacch" |
1623 |
(define_insn "iwmmxt_wacch" |
1257 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1624 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1258 |
(unspec:DI [(match_operand:V4HI 1 "register_operand" "y")] UNSPEC_WACC))] |
1625 |
(unspec:DI [(match_operand:V4HI 1 "register_operand" "y")] UNSPEC_WACC))] |
1259 |
"TARGET_REALLY_IWMMXT" |
1626 |
"TARGET_REALLY_IWMMXT" |
1260 |
"wacch%?\\t%0, %1" |
1627 |
"wacch%?\\t%0, %1" |
1261 |
[(set_attr "predicable" "yes")]) |
1628 |
[(set_attr "predicable" "yes") |
|
|
1629 |
(set_attr "wtype" "wacc")] |
1630 |
) |
1262 |
|
1631 |
|
1263 |
(define_insn "iwmmxt_waccw" |
1632 |
(define_insn "iwmmxt_waccw" |
1264 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1633 |
[(set (match_operand:DI 0 "register_operand" "=y") |
1265 |
(unspec:DI [(match_operand:V2SI 1 "register_operand" "y")] UNSPEC_WACC))] |
1634 |
(unspec:DI [(match_operand:V2SI 1 "register_operand" "y")] UNSPEC_WACC))] |
1266 |
"TARGET_REALLY_IWMMXT" |
1635 |
"TARGET_REALLY_IWMMXT" |
1267 |
"waccw%?\\t%0, %1" |
1636 |
"waccw%?\\t%0, %1" |
1268 |
[(set_attr "predicable" "yes")]) |
1637 |
[(set_attr "predicable" "yes") |
|
|
1638 |
(set_attr "wtype" "wacc")] |
1639 |
) |
1640 |
|
1641 |
;; use unspec here to prevent 8 * imm to be optimized by cse |
1642 |
(define_insn "iwmmxt_waligni" |
1643 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1644 |
(unspec:V8QI [(subreg:V8QI |
1645 |
(ashiftrt:TI |
1646 |
(subreg:TI (vec_concat:V16QI |
1647 |
(match_operand:V8QI 1 "register_operand" "y") |
1648 |
(match_operand:V8QI 2 "register_operand" "y")) 0) |
1649 |
(mult:SI |
1650 |
(match_operand:SI 3 "immediate_operand" "i") |
1651 |
(const_int 8))) 0)] UNSPEC_WALIGNI))] |
1652 |
"TARGET_REALLY_IWMMXT" |
1653 |
"waligni%?\\t%0, %1, %2, %3" |
1654 |
[(set_attr "predicable" "yes") |
1655 |
(set_attr "wtype" "waligni")] |
1656 |
) |
1269 |
|
1657 |
|
1270 |
(define_insn "iwmmxt_walign" |
1658 |
(define_insn "iwmmxt_walignr" |
1271 |
[(set (match_operand:V8QI 0 "register_operand" "=y,y") |
1659 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1272 |
(subreg:V8QI (ashiftrt:TI |
1660 |
(subreg:V8QI (ashiftrt:TI |
1273 |
(subreg:TI (vec_concat:V16QI |
1661 |
(subreg:TI (vec_concat:V16QI |
1274 |
(match_operand:V8QI 1 "register_operand" "y,y") |
1662 |
(match_operand:V8QI 1 "register_operand" "y") |
1275 |
(match_operand:V8QI 2 "register_operand" "y,y")) 0) |
1663 |
(match_operand:V8QI 2 "register_operand" "y")) 0) |
1276 |
(mult:SI |
1664 |
(mult:SI |
1277 |
(match_operand:SI 3 "nonmemory_operand" "i,z") |
1665 |
(zero_extract:SI (match_operand:SI 3 "register_operand" "z") (const_int 3) (const_int 0)) |
1278 |
(const_int 8))) 0))] |
1666 |
(const_int 8))) 0))] |
1279 |
"TARGET_REALLY_IWMMXT" |
1667 |
"TARGET_REALLY_IWMMXT" |
1280 |
"@ |
1668 |
"walignr%U3%?\\t%0, %1, %2" |
1281 |
waligni%?\\t%0, %1, %2, %3 |
1669 |
[(set_attr "predicable" "yes") |
1282 |
walignr%U3%?\\t%0, %1, %2" |
1670 |
(set_attr "wtype" "walignr")] |
1283 |
[(set_attr "predicable" "yes")]) |
1671 |
) |
1284 |
|
1672 |
|
1285 |
(define_insn "iwmmxt_tmrc" |
1673 |
(define_insn "iwmmxt_walignr0" |
1286 |
[(set (match_operand:SI 0 "register_operand" "=r") |
1674 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1287 |
(unspec_volatile:SI [(match_operand:SI 1 "immediate_operand" "i")] |
1675 |
(subreg:V8QI (ashiftrt:TI |
1288 |
VUNSPEC_TMRC))] |
1676 |
(subreg:TI (vec_concat:V16QI |
1289 |
"TARGET_REALLY_IWMMXT" |
1677 |
(match_operand:V8QI 1 "register_operand" "y") |
1290 |
"tmrc%?\\t%0, %w1" |
1678 |
(match_operand:V8QI 2 "register_operand" "y")) 0) |
1291 |
[(set_attr "predicable" "yes")]) |
1679 |
(mult:SI |
1292 |
|
1680 |
(zero_extract:SI (reg:SI WCGR0) (const_int 3) (const_int 0)) |
1293 |
(define_insn "iwmmxt_tmcr" |
1681 |
(const_int 8))) 0))] |
1294 |
[(unspec_volatile:SI [(match_operand:SI 0 "immediate_operand" "i") |
1682 |
"TARGET_REALLY_IWMMXT" |
1295 |
(match_operand:SI 1 "register_operand" "r")] |
1683 |
"walignr0%?\\t%0, %1, %2" |
1296 |
VUNSPEC_TMCR)] |
1684 |
[(set_attr "predicable" "yes") |
|
|
1685 |
(set_attr "wtype" "walignr")] |
1686 |
) |
1687 |
|
1688 |
(define_insn "iwmmxt_walignr1" |
1689 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1690 |
(subreg:V8QI (ashiftrt:TI |
1691 |
(subreg:TI (vec_concat:V16QI |
1692 |
(match_operand:V8QI 1 "register_operand" "y") |
1693 |
(match_operand:V8QI 2 "register_operand" "y")) 0) |
1694 |
(mult:SI |
1695 |
(zero_extract:SI (reg:SI WCGR1) (const_int 3) (const_int 0)) |
1696 |
(const_int 8))) 0))] |
1697 |
"TARGET_REALLY_IWMMXT" |
1698 |
"walignr1%?\\t%0, %1, %2" |
1699 |
[(set_attr "predicable" "yes") |
1700 |
(set_attr "wtype" "walignr")] |
1701 |
) |
1702 |
|
1703 |
(define_insn "iwmmxt_walignr2" |
1704 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1705 |
(subreg:V8QI (ashiftrt:TI |
1706 |
(subreg:TI (vec_concat:V16QI |
1707 |
(match_operand:V8QI 1 "register_operand" "y") |
1708 |
(match_operand:V8QI 2 "register_operand" "y")) 0) |
1709 |
(mult:SI |
1710 |
(zero_extract:SI (reg:SI WCGR2) (const_int 3) (const_int 0)) |
1711 |
(const_int 8))) 0))] |
1712 |
"TARGET_REALLY_IWMMXT" |
1713 |
"walignr2%?\\t%0, %1, %2" |
1714 |
[(set_attr "predicable" "yes") |
1715 |
(set_attr "wtype" "walignr")] |
1716 |
) |
1717 |
|
1718 |
(define_insn "iwmmxt_walignr3" |
1719 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1720 |
(subreg:V8QI (ashiftrt:TI |
1721 |
(subreg:TI (vec_concat:V16QI |
1722 |
(match_operand:V8QI 1 "register_operand" "y") |
1723 |
(match_operand:V8QI 2 "register_operand" "y")) 0) |
1724 |
(mult:SI |
1725 |
(zero_extract:SI (reg:SI WCGR3) (const_int 3) (const_int 0)) |
1726 |
(const_int 8))) 0))] |
1297 |
"TARGET_REALLY_IWMMXT" |
1727 |
"TARGET_REALLY_IWMMXT" |
1298 |
"tmcr%?\\t%w0, %1" |
1728 |
"walignr3%?\\t%0, %1, %2" |
1299 |
[(set_attr "predicable" "yes")]) |
1729 |
[(set_attr "predicable" "yes") |
|
|
1730 |
(set_attr "wtype" "walignr")] |
1731 |
) |
1300 |
|
1732 |
|
1301 |
(define_insn "iwmmxt_wsadb" |
1733 |
(define_insn "iwmmxt_wsadb" |
1302 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1734 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1303 |
(unspec:V8QI [(match_operand:V8QI 1 "register_operand" "y") |
1735 |
(unspec:V2SI [ |
1304 |
(match_operand:V8QI 2 "register_operand" "y")] UNSPEC_WSAD))] |
1736 |
(match_operand:V2SI 1 "register_operand" "0") |
|
|
1737 |
(match_operand:V8QI 2 "register_operand" "y") |
1738 |
(match_operand:V8QI 3 "register_operand" "y")] UNSPEC_WSAD))] |
1305 |
"TARGET_REALLY_IWMMXT" |
1739 |
"TARGET_REALLY_IWMMXT" |
1306 |
"wsadb%?\\t%0, %1, %2" |
1740 |
"wsadb%?\\t%0, %2, %3" |
1307 |
[(set_attr "predicable" "yes")]) |
1741 |
[(set_attr "predicable" "yes") |
|
|
1742 |
(set_attr "wtype" "wsad")] |
1743 |
) |
1308 |
|
1744 |
|
1309 |
(define_insn "iwmmxt_wsadh" |
1745 |
(define_insn "iwmmxt_wsadh" |
1310 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1746 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1311 |
(unspec:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
1747 |
(unspec:V2SI [ |
1312 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WSAD))] |
1748 |
(match_operand:V2SI 1 "register_operand" "0") |
|
|
1749 |
(match_operand:V4HI 2 "register_operand" "y") |
1750 |
(match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WSAD))] |
1313 |
"TARGET_REALLY_IWMMXT" |
1751 |
"TARGET_REALLY_IWMMXT" |
1314 |
"wsadh%?\\t%0, %1, %2" |
1752 |
"wsadh%?\\t%0, %2, %3" |
1315 |
[(set_attr "predicable" "yes")]) |
1753 |
[(set_attr "predicable" "yes") |
|
|
1754 |
(set_attr "wtype" "wsad")] |
1755 |
) |
1316 |
|
1756 |
|
1317 |
(define_insn "iwmmxt_wsadbz" |
1757 |
(define_insn "iwmmxt_wsadbz" |
1318 |
[(set (match_operand:V8QI 0 "register_operand" "=y") |
1758 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1319 |
(unspec:V8QI [(match_operand:V8QI 1 "register_operand" "y") |
1759 |
(unspec:V2SI [(match_operand:V8QI 1 "register_operand" "y") |
1320 |
(match_operand:V8QI 2 "register_operand" "y")] UNSPEC_WSADZ))] |
1760 |
(match_operand:V8QI 2 "register_operand" "y")] UNSPEC_WSADZ))] |
1321 |
"TARGET_REALLY_IWMMXT" |
1761 |
"TARGET_REALLY_IWMMXT" |
1322 |
"wsadbz%?\\t%0, %1, %2" |
1762 |
"wsadbz%?\\t%0, %1, %2" |
1323 |
[(set_attr "predicable" "yes")]) |
1763 |
[(set_attr "predicable" "yes") |
|
|
1764 |
(set_attr "wtype" "wsad")] |
1765 |
) |
1324 |
|
1766 |
|
1325 |
(define_insn "iwmmxt_wsadhz" |
1767 |
(define_insn "iwmmxt_wsadhz" |
1326 |
[(set (match_operand:V4HI 0 "register_operand" "=y") |
1768 |
[(set (match_operand:V2SI 0 "register_operand" "=y") |
1327 |
(unspec:V4HI [(match_operand:V4HI 1 "register_operand" "y") |
1769 |
(unspec:V2SI [(match_operand:V4HI 1 "register_operand" "y") |
1328 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WSADZ))] |
1770 |
(match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WSADZ))] |
1329 |
"TARGET_REALLY_IWMMXT" |
1771 |
"TARGET_REALLY_IWMMXT" |
1330 |
"wsadhz%?\\t%0, %1, %2" |
1772 |
"wsadhz%?\\t%0, %1, %2" |
1331 |
[(set_attr "predicable" "yes")]) |
1773 |
[(set_attr "predicable" "yes") |
|
|
1774 |
(set_attr "wtype" "wsad")] |
1775 |
) |
1332 |
|
1776 |
|
|
|
1777 |
(include "iwmmxt2.md") |