Line data Source code
1 : ;; GCC machine description for MMX and 3dNOW! instructions
2 : ;; Copyright (C) 2005-2026 Free Software Foundation, Inc.
3 : ;;
4 : ;; This file is part of GCC.
5 : ;;
6 : ;; GCC is free software; you can redistribute it and/or modify
7 : ;; it under the terms of the GNU General Public License as published by
8 : ;; the Free Software Foundation; either version 3, or (at your option)
9 : ;; any later version.
10 : ;;
11 : ;; GCC is distributed in the hope that it will be useful,
12 : ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 : ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 : ;; GNU General Public License for more details.
15 : ;;
16 : ;; You should have received a copy of the GNU General Public License
17 : ;; along with GCC; see the file COPYING3. If not see
18 : ;; <http://www.gnu.org/licenses/>.
19 :
20 : ;; The MMX and 3dNOW! patterns are in the same file because they use
21 : ;; the same register file, and 3dNOW! adds a number of extensions to
22 : ;; the base integer MMX isa.
23 :
24 : ;; Note! Except for the basic move instructions, *all* of these
25 : ;; patterns are outside the normal optabs namespace. This is because
26 : ;; use of these registers requires the insertion of emms or femms
27 : ;; instructions to return to normal fpu mode. The compiler doesn't
28 : ;; know how to do that itself, which means it's up to the user. Which
29 : ;; means that we should never use any of these patterns except at the
30 : ;; direction of the user via a builtin.
31 :
32 : (define_c_enum "unspec" [
33 : UNSPEC_3DNOW
34 :
35 : UNSPEC_MOVNTQ
36 : UNSPEC_PFRCP
37 : UNSPEC_PFRCPIT1
38 : UNSPEC_PFRCPIT2
39 : UNSPEC_PFRSQRT
40 : UNSPEC_PFRSQIT1
41 : ])
42 :
43 : (define_c_enum "unspecv" [
44 : UNSPECV_EMMS
45 : UNSPECV_FEMMS
46 : ])
47 :
48 : ;; 8 byte integral modes handled by MMX (and by extension, SSE)
49 : (define_mode_iterator MMXMODEI [V8QI V4HI V2SI])
50 568 : (define_mode_iterator MMXMODEI8 [V8QI V4HI V2SI (V1DI "TARGET_SSE2")])
51 :
52 : ;; All 8-byte vector modes handled by MMX
53 : (define_mode_iterator MMXMODE [V8QI V4HI V2SI V1DI V2SF V4HF V4BF])
54 3745 : (define_mode_iterator MMXMODE124 [V8QI V4HI V2SI V2SF])
55 :
56 : ;; Mix-n-match
57 3745 : (define_mode_iterator MMXMODE12 [V8QI V4HI])
58 : (define_mode_iterator MMXMODE14 [V8QI V2SI])
59 : (define_mode_iterator MMXMODE24 [V4HI V2SI])
60 : (define_mode_iterator MMXMODE248 [V4HI V2SI V1DI])
61 :
62 : ;; All 4-byte integer/float16 vector modes
63 : (define_mode_iterator V_32 [V4QI V2HI V1SI V2HF V2BF])
64 :
65 : (define_mode_iterator V2FI_32 [V2HF V2BF V2HI])
66 : (define_mode_iterator V4FI_64 [V4HF V4BF V4HI])
67 : (define_mode_iterator V4F_64 [V4HF V4BF])
68 : (define_mode_iterator V2F_32 [V2HF V2BF])
69 : ;; 4-byte integer vector modes
70 : (define_mode_iterator VI_32 [V4QI V2HI])
71 :
72 : ;; 8-byte and 4-byte HImode vector modes
73 132 : (define_mode_iterator VI2_32_64 [(V4HI "TARGET_MMX_WITH_SSE") V2HI])
74 :
75 : ;; 8-byte, 4-byte and 2-byte QImode vector modes
76 10 : (define_mode_iterator VI1_16_32_64 [(V8QI "TARGET_MMX_WITH_SSE") V4QI V2QI])
77 97 :
78 : ;; 4-byte and 2-byte integer vector modes
79 : (define_mode_iterator VI_16_32 [V4QI V2QI V2HI])
80 112 :
81 : ;; 4-byte and 2-byte QImode vector modes
82 : (define_mode_iterator VI1_16_32 [V4QI V2QI])
83 15 :
84 : ;; All 2-byte, 4-byte and 8-byte vector modes.
85 : (define_mode_iterator V_16_32_64
86 : [V2QI V4QI V2HI V1SI V2HF V2BF
87 18959 : (V8QI "TARGET_64BIT") (V4HI "TARGET_64BIT")
88 0 : (V4HF "TARGET_64BIT") (V4BF "TARGET_64BIT")
89 51910 : (V2SI "TARGET_64BIT") (V2SF "TARGET_64BIT")
90 48 : (V1DI "TARGET_64BIT")])
91 1779 :
92 13712 : ;; V2S* modes
93 0 : (define_mode_iterator V2FI [V2SF V2SI])
94 2128 :
95 13712 : (define_mode_iterator V24FI [V2SF V2SI V4HF V4HI])
96 0 :
97 349 : (define_mode_iterator V248FI [V2SF V2SI V4HF V4BF V4HI V8QI])
98 :
99 : (define_mode_iterator V24FI_32 [V2HF V2BF V2HI V4QI])
100 :
101 : ;; Mapping from integer vector mode to mnemonic suffix
102 : (define_mode_attr mmxvecsize
103 : [(V8QI "b") (V4QI "b") (V2QI "b")
104 : (V4HI "w") (V2HI "w") (V2SI "d") (V1DI "q")])
105 :
106 : ;; Mapping to same size integral mode.
107 : (define_mode_attr mmxinsnmode
108 : [(V8QI "DI") (V4QI "SI") (V2QI "HI")
109 : (V4HI "DI") (V2HI "SI")
110 : (V2SI "DI")
111 : (V1DI "DI") (V1SI "SI")
112 : (V4HF "DI") (V2HF "SI")
113 : (V4BF "DI") (V2BF "SI")
114 : (V2SF "DI")])
115 :
116 : (define_mode_attr mmxdoublemode
117 : [(V8QI "V8HI") (V4HI "V4SI")])
118 :
119 : (define_mode_attr mmxhalfmode
120 : [(V4HI "V4QI") (V2HI "V2QI")])
121 :
122 : (define_mode_attr mmxbytemode
123 : [(V4HI "V8QI") (V2HI "V4QI")])
124 :
125 : (define_mode_attr mmxhalfmodelower
126 : [(V4HI "v4qi") (V2HI "v2qi")])
127 :
128 : ;; Mapping of vector float modes to an integer mode of the same size
129 : (define_mode_attr mmxintvecmode
130 : [(V2SF "V2SI") (V2SI "V2SI") (V4HI "V4HI") (V8QI "V8QI")
131 : (V4HF "V4HI") (V2HF "V2HI") (V4BF "V4HI") (V2BF "V2HI")])
132 :
133 : (define_mode_attr mmxintvecmodelower
134 : [(V2SF "v2si") (V2SI "v2si") (V4HI "v4hi") (V8QI "v8qi")
135 : (V4HF "v4hi") (V2HF "v2hi")])
136 :
137 : ;; Mapping of vector modes to a vector mode of double size
138 : (define_mode_attr mmxdoublevecmode
139 : [(V2SF "V4SF") (V2SI "V4SI") (V4HF "V8HF") (V4HI "V8HI")
140 : (V2HI "V4HI") (V2HF "V4HF") (V2BF "V4BF")])
141 :
142 : ;; Mapping of vector modes back to the scalar modes
143 : (define_mode_attr mmxscalarmode
144 : [(V2SI "SI") (V2SF "SF")
145 : (V4HF "HF") (V4BF "BF")
146 : (V2HF "HF") (V2BF "BF")
147 : (V4HI "HI") (V2HI "HI")
148 : (V8QI "QI")])
149 :
150 : (define_mode_attr mmxscalarmodelower
151 : [(V2SI "si") (V2SF "sf")
152 : (V4HF "hf") (V4BF "bf")
153 : (V2HF "hf") (V2BF "bf")
154 : (V4HI "hi") (V2HI "hi")
155 : (V8QI "qi")])
156 :
157 : (define_mode_attr mmxscalarsize
158 : [(V1DI "64")
159 : (V2SI "32") (V2SF "32")
160 : (V4HF "16") (V4BF "16")
161 : (V2HF "16") (V2BF "16")
162 : (V4HI "16") (V2HI "16")
163 : (V8QI "8")])
164 :
165 : (define_mode_attr Yv_Yw
166 : [(V8QI "Yw") (V4HI "Yw") (V2SI "Yv") (V1DI "Yv") (V2SF "Yv")])
167 :
168 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
169 : ;;
170 : ;; Move patterns
171 : ;;
172 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
173 :
174 : ;; All of these patterns are enabled for MMX as well as 3dNOW.
175 : ;; This is essential for maintaining stable calling conventions.
176 :
177 : (define_expand "mov<mode>"
178 : [(set (match_operand:MMXMODE 0 "nonimmediate_operand")
179 : (match_operand:MMXMODE 1 "nonimm_or_0_operand"))]
180 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
181 495080 : {
182 494207 : ix86_expand_vector_move (<MODE>mode, operands);
183 495080 : DONE;
184 : })
185 :
186 : (define_insn "*mov<mode>_internal"
187 : [(set (match_operand:MMXMODE 0 "nonimmediate_operand"
188 : "=r ,o ,r,r ,m ,?!y,!y,?!y,m ,r ,?!y,v,v,v,m,r,v,!y,*x")
189 : (match_operand:MMXMODE 1 "nonimm_or_0_operand"
190 : "rCo,rC,C,rm,rC,C ,!y,m ,?!y,?!y,r ,C,v,m,v,v,r,*x,!y"))]
191 758975 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
192 75666716 : && !(MEM_P (operands[0]) && MEM_P (operands[1]))
193 151380161 : && ix86_hardreg_mov_ok (operands[0], operands[1])"
194 230452 : {
195 230452 : switch (get_attr_type (insn))
196 873 : {
197 61035 : case TYPE_MULTI:
198 873 : return "#";
199 61733 :
200 120470 : case TYPE_IMOV:
201 58562 : if (get_attr_mode (insn) == MODE_SI)
202 : return "mov{l}\t{%1, %k0|%k0, %1}";
203 : else
204 58484 : return "mov{q}\t{%1, %0|%0, %1}";
205 :
206 0 : case TYPE_MMX:
207 0 : return "pxor\t%0, %0";
208 :
209 550 : case TYPE_MMXMOV:
210 : /* Handle broken assemblers that require movd instead of movq. */
211 550 : if (!HAVE_AS_IX86_INTERUNIT_MOVQ
212 : && (GENERAL_REG_P (operands[0]) || GENERAL_REG_P (operands[1])))
213 : return "movd\t{%1, %0|%0, %1}";
214 550 : return "movq\t{%1, %0|%0, %1}";
215 :
216 146 : case TYPE_SSECVT:
217 146 : if (SSE_REG_P (operands[0]))
218 105 : return "movq2dq\t{%1, %0|%0, %1}";
219 : else
220 : return "movdq2q\t{%1, %0|%0, %1}";
221 :
222 1832 : case TYPE_SSELOG1:
223 1832 : return standard_sse_constant_opcode (insn, operands);
224 :
225 169362 : case TYPE_SSEMOV:
226 169362 : return ix86_output_ssemov (insn, operands);
227 :
228 0 : default:
229 0 : gcc_unreachable ();
230 : }
231 : }
232 : [(set (attr "isa")
233 : (cond [(eq_attr "alternative" "0,1")
234 : (const_string "nox64")
235 17233 : (eq_attr "alternative" "2,3,4,9,10")
236 : (const_string "x64")
237 : (eq_attr "alternative" "15,16")
238 : (const_string "x64_sse2")
239 : (eq_attr "alternative" "17,18")
240 : (const_string "sse2")
241 : ]
242 : (const_string "*")))
243 : (set (attr "type")
244 : (cond [(eq_attr "alternative" "0,1")
245 : (const_string "multi")
246 : (eq_attr "alternative" "2,3,4")
247 : (const_string "imov")
248 : (eq_attr "alternative" "5")
249 : (const_string "mmx")
250 : (eq_attr "alternative" "6,7,8,9,10")
251 : (const_string "mmxmov")
252 : (eq_attr "alternative" "11")
253 : (const_string "sselog1")
254 : (eq_attr "alternative" "17,18")
255 : (const_string "ssecvt")
256 : ]
257 : (const_string "ssemov")))
258 : (set (attr "prefix_rex")
259 : (if_then_else (eq_attr "alternative" "9,10,15,16")
260 : (const_string "1")
261 : (const_string "*")))
262 : (set (attr "prefix")
263 : (if_then_else (eq_attr "type" "sselog1,ssemov")
264 : (const_string "maybe_vex")
265 : (const_string "orig")))
266 : (set (attr "prefix_data16")
267 : (if_then_else
268 : (and (eq_attr "type" "ssemov") (eq_attr "mode" "DI"))
269 : (const_string "1")
270 : (const_string "*")))
271 : (set (attr "mode")
272 : (cond [(eq_attr "alternative" "2")
273 : (const_string "SI")
274 : (eq_attr "alternative" "11,12")
275 : (cond [(match_test "<MODE>mode == V2SFmode
276 : || <MODE>mode == V4HFmode
277 : || <MODE>mode == V4BFmode")
278 : (const_string "V4SF")
279 : (ior (not (match_test "TARGET_SSE2"))
280 : (match_test "optimize_function_for_size_p (cfun)"))
281 53736 : (const_string "V4SF")
282 : ]
283 : (const_string "TI"))
284 :
285 : (and (eq_attr "alternative" "13")
286 1862307 : (ior (ior (and (match_test "<MODE>mode == V2SFmode")
287 : (not (match_test "TARGET_MMX_WITH_SSE")))
288 : (not (match_test "TARGET_SSE2")))
289 : (match_test "<MODE>mode == V4HFmode
290 : || <MODE>mode == V4BFmode")))
291 : (const_string "V2SF")
292 :
293 : (and (eq_attr "alternative" "14")
294 6044347 : (ior (ior (match_test "<MODE>mode == V2SFmode")
295 : (not (match_test "TARGET_SSE2")))
296 : (match_test "<MODE>mode == V4HFmode
297 : || <MODE>mode == V4BFmode")))
298 : (const_string "V2SF")
299 6452021 : ]
300 6452021 : (const_string "DI")))
301 6452021 : (set (attr "preferred_for_speed")
302 : (cond [(eq_attr "alternative" "9,15")
303 18986 : (symbol_ref "TARGET_INTER_UNIT_MOVES_FROM_VEC")
304 : (eq_attr "alternative" "10,16")
305 6313816 : (symbol_ref "TARGET_INTER_UNIT_MOVES_TO_VEC")
306 : ]
307 450739 : (symbol_ref "true")))])
308 :
309 : (define_split
310 : [(set (match_operand:MMXMODE 0 "nonimmediate_gr_operand")
311 : (match_operand:MMXMODE 1 "nonimmediate_gr_operand"))]
312 : "!TARGET_64BIT && reload_completed"
313 : [(const_int 0)]
314 60860 : "ix86_split_long_move (operands); DONE;")
315 :
316 : (define_split
317 : [(set (match_operand:MMXMODE 0 "nonimmediate_gr_operand")
318 : (match_operand:MMXMODE 1 "const0_operand"))]
319 : "!TARGET_64BIT && reload_completed"
320 : [(const_int 0)]
321 17131 : "ix86_split_long_move (operands); DONE;")
322 :
323 : (define_expand "movmisalign<mode>"
324 : [(set (match_operand:MMXMODE 0 "nonimmediate_operand")
325 : (match_operand:MMXMODE 1 "nonimmediate_operand"))]
326 17131 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
327 123865 : {
328 129308 : ix86_expand_vector_move (<MODE>mode, operands);
329 140996 : DONE;
330 : })
331 :
332 123859 : (define_expand "mov<mode>"
333 0 : [(set (match_operand:V_32 0 "nonimmediate_operand")
334 123859 : (match_operand:V_32 1 "nonimm_or_0_operand"))]
335 123859 : ""
336 123859 : {
337 45417 : ix86_expand_vector_move (<MODE>mode, operands);
338 45417 : DONE;
339 : })
340 :
341 : (define_insn "*mov<mode>_internal"
342 45423 : [(set (match_operand:V_32 0 "nonimmediate_operand"
343 0 : "=r ,m ,v,v,v,m,r,v")
344 45423 : (match_operand:V_32 1 "nonimm_or_0_operand"
345 45423 : "rmC,rC,C,v,m,v,v,r"))]
346 45423 : "!(MEM_P (operands[0]) && MEM_P (operands[1]))
347 : && ix86_hardreg_mov_ok (operands[0], operands[1])"
348 17233 : {
349 17233 : switch (get_attr_type (insn))
350 : {
351 : case TYPE_IMOV:
352 0 : return "mov{l}\t{%1, %0|%0, %1}";
353 :
354 207 : case TYPE_SSELOG1:
355 207 : return standard_sse_constant_opcode (insn, operands);
356 :
357 7338 : case TYPE_SSEMOV:
358 7338 : return ix86_output_ssemov (insn, operands);
359 :
360 0 : default:
361 0 : gcc_unreachable ();
362 : }
363 : }
364 : [(set (attr "isa")
365 : (cond [(eq_attr "alternative" "6,7")
366 : (const_string "sse2")
367 : ]
368 : (const_string "*")))
369 : (set (attr "type")
370 : (cond [(eq_attr "alternative" "2")
371 : (const_string "sselog1")
372 22609 : (eq_attr "alternative" "3,4,5,6,7")
373 : (const_string "ssemov")
374 : ]
375 : (const_string "imov")))
376 : (set (attr "prefix")
377 : (if_then_else (eq_attr "type" "sselog1,ssemov")
378 : (const_string "maybe_vex")
379 : (const_string "orig")))
380 : (set (attr "prefix_data16")
381 : (if_then_else (and (eq_attr "type" "ssemov") (eq_attr "mode" "SI"))
382 : (const_string "1")
383 : (const_string "*")))
384 : (set (attr "mode")
385 : (cond [(eq_attr "alternative" "2,3")
386 : (cond [(match_test "<MODE>mode == V2HFmode
387 126582 : || <MODE>mode == V2BFmode")
388 : (const_string "V4SF")
389 : (match_test "TARGET_AVX")
390 : (const_string "TI")
391 28046 : (ior (not (match_test "TARGET_SSE2"))
392 : (match_test "optimize_function_for_size_p (cfun)"))
393 : (const_string "V4SF")
394 : ]
395 : (const_string "TI"))
396 :
397 : (and (eq_attr "alternative" "4,5")
398 : (ior (match_test "<MODE>mode == V2HFmode
399 : || <MODE>mode == V2BFmode")
400 : (not (match_test "TARGET_SSE2"))))
401 : (const_string "SF")
402 : ]
403 : (const_string "SI")))
404 : (set (attr "preferred_for_speed")
405 : (cond [(eq_attr "alternative" "6")
406 : (symbol_ref "TARGET_INTER_UNIT_MOVES_FROM_VEC")
407 : (eq_attr "alternative" "7")
408 : (symbol_ref "TARGET_INTER_UNIT_MOVES_TO_VEC")
409 : ]
410 : (symbol_ref "true")))])
411 :
412 : ;; For TARGET_64BIT we always round up to 8 bytes.
413 : (define_insn "*push<mode>2_rex64"
414 : [(set (match_operand:V_32 0 "push_operand" "=X,X")
415 : (match_operand:V_32 1 "nonmemory_no_elim_operand" "rC,*v"))]
416 : "TARGET_64BIT"
417 : "@
418 : push{q}\t%q1
419 : #"
420 : [(set_attr "type" "push,multi")
421 : (set_attr "mode" "DI")])
422 :
423 : (define_split
424 : [(set (match_operand:V_32 0 "push_operand")
425 : (match_operand:V_32 1 "sse_reg_operand"))]
426 0 : "TARGET_64BIT && TARGET_SSE && reload_completed"
427 : [(set (reg:P SP_REG) (plus:P (reg:P SP_REG) (match_dup 2)))
428 : (set (match_dup 0) (match_dup 1))]
429 0 : {
430 0 : operands[2] = GEN_INT (-PUSH_ROUNDING (GET_MODE_SIZE (<V_32:MODE>mode)));
431 : /* Preserve memory attributes. */
432 0 : operands[0] = replace_equiv_address (operands[0], stack_pointer_rtx);
433 : })
434 :
435 : (define_expand "movmisalign<mode>"
436 0 : [(set (match_operand:V_32 0 "nonimmediate_operand")
437 : (match_operand:V_32 1 "nonimmediate_operand"))]
438 : ""
439 8407 : {
440 8407 : ix86_expand_vector_move (<MODE>mode, operands);
441 8407 : DONE;
442 : })
443 :
444 : (define_expand "movv2qi"
445 : [(set (match_operand:V2QI 0 "nonimmediate_operand")
446 8407 : (match_operand:V2QI 1 "nonimm_or_0_operand"))]
447 21 : ""
448 54956 : {
449 8428 : ix86_expand_vector_move (V2QImode, operands);
450 54977 : DONE;
451 : })
452 :
453 : (define_insn "*movv2qi_internal"
454 46549 : [(set (match_operand:V2QI 0 "nonimmediate_operand"
455 103 : "=r,r,r,m ,v,v,v,jm,m,r,v")
456 46549 : (match_operand:V2QI 1 "nonimm_or_0_operand"
457 46652 : "r ,C,m,rC,C,v,m,x,v,v,r"))]
458 46652 : "!(MEM_P (operands[0]) && MEM_P (operands[1]))
459 : && ix86_hardreg_mov_ok (operands[0], operands[1])"
460 22609 : {
461 22609 : switch (get_attr_type (insn))
462 : {
463 17911 : case TYPE_IMOV:
464 17911 : if (get_attr_mode (insn) == MODE_SI)
465 : return "mov{l}\t{%k1, %k0|%k0, %k1}";
466 0 : else
467 17671 : return "mov{w}\t{%1, %0|%0, %1}";
468 :
469 : case TYPE_IMOVX:
470 : /* movzwl is faster than movw on p2 due to partial word stalls,
471 : though not as fast as an aligned movl. */
472 : return "movz{wl|x}\t{%1, %k0|%k0, %1}";
473 :
474 554 : case TYPE_SSELOG1:
475 554 : if (satisfies_constraint_C (operands[1]))
476 48 : return standard_sse_constant_opcode (insn, operands);
477 :
478 506 : if (SSE_REG_P (operands[0]))
479 481 : return "%vpinsrw\t{$0, %1, %d0|%d0, %1, 0}";
480 : else
481 : return "%vpextrw\t{$0, %1, %0|%0, %1, 0}";
482 :
483 542 : case TYPE_SSEMOV:
484 542 : return ix86_output_ssemov (insn, operands);
485 :
486 0 : default:
487 0 : gcc_unreachable ();
488 : }
489 : }
490 : [(set (attr "isa")
491 : (cond [(eq_attr "alternative" "6,9,10")
492 : (const_string "sse2")
493 0 : (eq_attr "alternative" "7")
494 : (const_string "sse4_noavx")
495 : (eq_attr "alternative" "8")
496 : (const_string "avx")
497 : ]
498 : (const_string "*")))
499 : (set (attr "addr")
500 : (if_then_else (eq_attr "alternative" "7")
501 : (const_string "gpr16")
502 : (const_string "*")))
503 : (set (attr "type")
504 : (cond [(eq_attr "alternative" "6,7,8")
505 : (if_then_else (match_test "TARGET_AVX512FP16")
506 : (const_string "ssemov")
507 : (const_string "sselog1"))
508 : (eq_attr "alternative" "4")
509 : (const_string "sselog1")
510 : (eq_attr "alternative" "5,9,10")
511 : (const_string "ssemov")
512 : (match_test "optimize_function_for_size_p (cfun)")
513 : (const_string "imov")
514 : (and (eq_attr "alternative" "0")
515 : (ior (not (match_test "TARGET_PARTIAL_REG_STALL"))
516 0 : (not (match_test "TARGET_HIMODE_MATH"))))
517 : (const_string "imov")
518 : (and (eq_attr "alternative" "1,2")
519 : (match_operand:V2QI 1 "aligned_operand"))
520 24613121 : (const_string "imov")
521 111126960 : (and (match_test "TARGET_MOVX")
522 : (eq_attr "alternative" "0,2"))
523 : (const_string "imovx")
524 20620526 : ]
525 27376046 : (const_string "imov")))
526 27376046 : (set (attr "prefix")
527 27376046 : (cond [(eq_attr "alternative" "4,5,6,7,8,9,10")
528 : (const_string "maybe_evex")
529 0 : ]
530 136446693 : (const_string "orig")))
531 124841558 : (set (attr "mode")
532 97550484 : (cond [(eq_attr "alternative" "6,7,8")
533 80361 : (if_then_else (match_test "TARGET_AVX512FP16")
534 62983 : (const_string "HI")
535 9043014 : (const_string "TI"))
536 96952044 : (eq_attr "alternative" "9,10")
537 17378 : (if_then_else (match_test "TARGET_AVX512FP16")
538 38833226 : (const_string "HI")
539 38833226 : (const_string "SI"))
540 96935269 : (eq_attr "alternative" "4")
541 38833226 : (cond [(match_test "TARGET_AVX")
542 75241 : (const_string "TI")
543 38833226 : (ior (not (match_test "TARGET_SSE2"))
544 132084122 : (match_test "optimize_function_for_size_p (cfun)"))
545 : (const_string "V4SF")
546 5079172 : ]
547 5079172 : (const_string "TI"))
548 5079172 : (eq_attr "alternative" "5")
549 : (cond [(match_test "TARGET_AVX512FP16")
550 : (const_string "HF")
551 : (match_test "TARGET_AVX")
552 : (const_string "TI")
553 76 : (ior (not (match_test "TARGET_SSE2"))
554 76 : (match_test "optimize_function_for_size_p (cfun)"))
555 76 : (const_string "V4SF")
556 : ]
557 27484144 : (const_string "TI"))
558 27484144 : (eq_attr "type" "imovx")
559 27484144 : (const_string "SI")
560 : (and (eq_attr "alternative" "1,2")
561 : (match_operand:V2QI 1 "aligned_operand"))
562 : (const_string "SI")
563 26903610 : (and (eq_attr "alternative" "0")
564 32338 : (ior (not (match_test "TARGET_PARTIAL_REG_STALL"))
565 32338 : (not (match_test "TARGET_HIMODE_MATH"))))
566 32338 : (const_string "SI")
567 26935948 : ]
568 : (const_string "HI")))
569 : (set (attr "preferred_for_speed")
570 : (cond [(eq_attr "alternative" "9")
571 25846515 : (symbol_ref "TARGET_INTER_UNIT_MOVES_FROM_VEC")
572 : (eq_attr "alternative" "10")
573 : (symbol_ref "TARGET_INTER_UNIT_MOVES_TO_VEC")
574 : ]
575 : (symbol_ref "true")))])
576 9709 :
577 9709 : (define_split
578 9709 : [(set (match_operand:V_16_32_64 0 "general_reg_operand")
579 : (match_operand:V_16_32_64 1 "memory_operand"))]
580 26644474 : "reload_completed
581 26644474 : && SYMBOL_REF_P (XEXP (operands[1], 0))
582 26657025 : && CONSTANT_POOL_ADDRESS_P (XEXP (operands[1], 0))"
583 : [(set (match_dup 0) (match_dup 1))]
584 320 : {
585 320 : rtx op1 = avoid_constant_pool_reference (operands[1]);
586 26349988 :
587 320 : if (!CONST_VECTOR_P (op1))
588 0 : FAIL;
589 0 :
590 24760201 : HOST_WIDE_INT val = ix86_convert_const_vector_to_integer (op1, <MODE>mode);
591 40298 :
592 40618 : operands[0] = lowpart_subreg (<mmxinsnmode>mode, operands[0], <MODE>mode);
593 40618 : operands[1] = GEN_INT (val);
594 20915161 : })
595 :
596 : ;; 16-bit, 32-bit and 64-bit constant vector stores. After reload,
597 320 : ;; convert them to immediate integer stores.
598 : (define_insn_and_split "*mov<mode>_imm"
599 : [(set (match_operand:V_16_32_64 0 "memory_operand" "=m")
600 320 : (match_operand:V_16_32_64 1 "x86_64_const_vector_operand" "i"))]
601 16538 : "!TARGET_LCP_STALL || <MODE>mode != V2QImode"
602 : "#"
603 1966149 : "&& reload_completed"
604 1940583 : [(set (match_dup 0) (match_dup 1))]
605 2172545 : {
606 1970123 : rtx op1 = operands[1];
607 70189 : HOST_WIDE_INT val = ix86_convert_const_vector_to_integer (op1, <MODE>mode);
608 219210 :
609 29540 : operands[0] = adjust_address (operands[0], <mmxinsnmode>mode, 0);
610 1991107 : operands[1] = GEN_INT (val);
611 : })
612 :
613 : ;; We always round up to UNITS_PER_WORD bytes.
614 1520026 : (define_insn "*pushv2qi2"
615 : [(set (match_operand:V2QI 0 "push_operand" "=X,X")
616 875289 : (match_operand:V2QI 1 "nonmemory_no_elim_operand" "rC,v"))]
617 21146 : ""
618 0 : "* return TARGET_64BIT ? \"push{q}\t%q1\" : \"push{l}\t%k1\";
619 : #"
620 : [(set_attr "isa" "*,sse4")
621 : (set_attr "type" "push,multi")
622 84269 : (set (attr "mode")
623 73495 : (cond [(eq_attr "alternative" "0")
624 84269 : (if_then_else (match_test "TARGET_64BIT")
625 97217 : (const_string "DI")
626 73495 : (const_string "SI"))
627 60547 : (eq_attr "alternative" "1")
628 60547 : (if_then_else (match_test "TARGET_AVX512FP16")
629 60547 : (const_string "HI")
630 60547 : (const_string "TI"))
631 60547 : ]
632 60547 : (const_string "HI")))])
633 458 :
634 : (define_split
635 : [(set (match_operand:V2QI 0 "push_operand")
636 : (match_operand:V2QI 1 "sse_reg_operand"))]
637 0 : "TARGET_SSE4_1 && reload_completed"
638 : [(set (reg:P SP_REG) (plus:P (reg:P SP_REG) (match_dup 2)))
639 : (set (match_dup 0) (match_dup 1))]
640 0 : {
641 0 : operands[2] = GEN_INT (-PUSH_ROUNDING (GET_MODE_SIZE (V2QImode)));
642 0 : /* Preserve memory attributes. */
643 0 : operands[0] = replace_equiv_address (operands[0], stack_pointer_rtx);
644 0 : })
645 :
646 : (define_expand "movmisalignv2qi"
647 0 : [(set (match_operand:V2QI 0 "nonimmediate_operand")
648 : (match_operand:V2QI 1 "nonimmediate_operand"))]
649 : ""
650 6022 : {
651 6022 : ix86_expand_vector_move (V2QImode, operands);
652 6022 : DONE;
653 53106 : })
654 53106 :
655 53106 : (define_insn "sse_movntq"
656 : [(set (match_operand:DI 0 "memory_operand" "=m,m")
657 95 : (unspec:DI [(match_operand:DI 1 "register_operand" "y,r")]
658 : UNSPEC_MOVNTQ))]
659 53149 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
660 95 : && (TARGET_SSE || TARGET_3DNOW_A)"
661 95 : "@
662 : movntq\t{%1, %0|%0, %1}
663 53054 : movnti\t{%1, %0|%0, %1}"
664 : [(set_attr "isa" "*,x64")
665 4 : (set_attr "mmx_isa" "native,*")
666 : (set_attr "type" "mmxmov,ssemov")
667 4 : (set_attr "c86_attr" "movnt")
668 4 : (set_attr "mode" "DI")])
669 4 :
670 : (define_expand "movq_<mode>_to_sse"
671 : [(set (match_operand:<mmxdoublevecmode> 0 "register_operand")
672 53024 : (vec_concat:<mmxdoublevecmode>
673 53024 : (match_operand:V24FI 1 "nonimmediate_operand")
674 53024 : (match_dup 2)))]
675 : "TARGET_SSE2"
676 17704 : {
677 17704 : if (<MODE>mode != V2SImode
678 17711 : && !flag_trapping_math)
679 : {
680 10549 : rtx op1 = force_reg (<MODE>mode, operands[1]);
681 10549 : emit_move_insn (operands[0], lowpart_subreg (<mmxdoublevecmode>mode,
682 0 : op1, <MODE>mode));
683 10549 : DONE;
684 : }
685 :
686 7155 : operands[2] = CONST0_RTX (<MODE>mode);
687 : })
688 :
689 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
690 : ;;
691 3239728 : ;; Parallel single-precision floating point arithmetic
692 3232573 : ;;
693 3232573 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
694 3232573 :
695 7155 : (define_expand "<code>v2sf2"
696 : [(set (match_operand:V2SF 0 "register_operand")
697 : (absneg:V2SF
698 3184782 : (match_operand:V2SF 1 "register_operand")))]
699 : "TARGET_MMX_WITH_SSE"
700 481 : "ix86_expand_fp_absneg_operator (<CODE>, V2SFmode, operands); DONE;")
701 96 :
702 3185168 : (define_insn_and_split "*mmx_<code>v2sf2"
703 482 : [(set (match_operand:V2SF 0 "register_operand" "=x,x,x")
704 482 : (absneg:V2SF
705 : (match_operand:V2SF 1 "register_operand" "0,x,x")))
706 3184782 : (use (unspec:V2SF [(match_operand:V2SF 2 "nonimmediate_operand" "x,0,x")]
707 : <absneg_mask>))]
708 984 : "TARGET_MMX_WITH_SSE"
709 : "#"
710 984 : "&& reload_completed"
711 : [(set (match_dup 0)
712 3508 : (<absneg_op>:V2SF (match_dup 1) (match_dup 2)))]
713 97 : {
714 3618 : if (!TARGET_AVX && operands_match_p (operands[0], operands[2]))
715 8666 : std::swap (operands[1], operands[2]);
716 8632 : }
717 5137 : [(set_attr "isa" "noavx,noavx,avx")])
718 5123 :
719 5219 : (define_insn_and_split "*mmx_nabsv2sf2"
720 : [(set (match_operand:V2SF 0 "register_operand" "=x,x,x")
721 : (neg:V2SF
722 : (abs:V2SF
723 96 : (match_operand:V2SF 1 "register_operand" "0,x,x"))))
724 : (use (unspec:V2SF [(match_operand:V2SF 2 "nonimmediate_operand" "x,0,x")]
725 : UNSPEC_NEG_MASK))]
726 : "TARGET_MMX_WITH_SSE"
727 : "#"
728 4899 : "&& reload_completed"
729 2578 : [(set (match_dup 0)
730 4899 : (ior:V2SF (match_dup 1) (match_dup 2)))]
731 4899 : {
732 4899 : if (!TARGET_AVX && operands_match_p (operands[0], operands[2]))
733 2578 : std::swap (operands[1], operands[2]);
734 2578 : }
735 2578 : [(set_attr "isa" "noavx,noavx,avx")])
736 2578 :
737 2578 : ;; -(-fabs (x)): combine simplifies the NEG of *mmx_nabsv2sf2 into an ABS,
738 : ;; but keeps the USE of the sign mask of the NEG. Expand it again as an
739 : ;; ABS, with its own mask.
740 : (define_insn_and_split "*mmx_absv2sf2_neg_mask"
741 0 : [(set (match_operand:V2SF 0 "register_operand")
742 : (abs:V2SF (match_operand:V2SF 1 "register_operand")))
743 : (use (unspec:V2SF [(match_operand:V2SF 2)] UNSPEC_NEG_MASK))]
744 695 : "TARGET_MMX_WITH_SSE && ix86_pre_reload_split ()"
745 : "#"
746 120293 : "&& 1"
747 119583 : [(const_int 0)]
748 119599 : "ix86_expand_fp_absneg_operator (ABS, V2SFmode, operands); DONE;")
749 119598 :
750 119585 : (define_expand "<insn>v2sf3"
751 119583 : [(set (match_operand:V2SF 0 "register_operand")
752 119583 : (plusminusmult:V2SF
753 119585 : (match_operand:V2SF 1 "nonimmediate_operand")
754 15 : (match_operand:V2SF 2 "nonimmediate_operand")))]
755 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
756 6198 : {
757 6198 : rtx op2 = gen_reg_rtx (V4SFmode);
758 6198 : rtx op1 = gen_reg_rtx (V4SFmode);
759 6212 : rtx op0 = gen_reg_rtx (V4SFmode);
760 :
761 6212 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
762 7547 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
763 1104 :
764 7533 : emit_insn (gen_<insn>v4sf3 (op0, op1, op2));
765 231 :
766 6429 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
767 6212 : DONE;
768 1087 : })
769 :
770 : (define_expand "mmx_addv2sf3"
771 0 : [(parallel
772 1087 : [(set (match_operand:V2SF 0 "register_operand")
773 : (plus:V2SF
774 : (match_operand:V2SF 1 "nonimmediate_operand")
775 14 : (match_operand:V2SF 2 "nonimmediate_operand")))
776 1087 : (unspec [(const_int 0)] UNSPEC_3DNOW)])]
777 14 : "TARGET_3DNOW"
778 31 : "ix86_fixup_binary_operands_no_copy (PLUS, V2SFmode, operands);")
779 14 :
780 : (define_insn "*mmx_addv2sf3"
781 142 : [(set (match_operand:V2SF 0 "register_operand" "=y")
782 17 : (plus:V2SF (match_operand:V2SF 1 "nonimmediate_operand" "%0")
783 142 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")))
784 142 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
785 163130 : "TARGET_3DNOW && ix86_binary_operator_ok (PLUS, V2SFmode, operands)"
786 162896 : "pfadd\t{%2, %0|%0, %2}"
787 162913 : [(set_attr "type" "mmxadd")
788 162896 : (set_attr "prefix_extra" "1")
789 679 : (set_attr "mode" "V2SF")])
790 :
791 : (define_expand "mmx_subv2sf3"
792 693 : [(parallel
793 : [(set (match_operand:V2SF 0 "register_operand")
794 14 : (minus:V2SF (match_operand:V2SF 1 "register_operand")
795 14 : (match_operand:V2SF 2 "nonimmediate_operand")))
796 14 : (unspec [(const_int 0)] UNSPEC_3DNOW)])]
797 284611 : "TARGET_3DNOW")
798 284611 :
799 284611 : (define_expand "mmx_subrv2sf3"
800 : [(parallel
801 : [(set (match_operand:V2SF 0 "register_operand")
802 : (minus:V2SF (match_operand:V2SF 2 "register_operand")
803 : (match_operand:V2SF 1 "nonimmediate_operand")))
804 : (unspec [(const_int 0)] UNSPEC_3DNOW)])]
805 : "TARGET_3DNOW")
806 :
807 : (define_insn "*mmx_subv2sf3"
808 263194 : [(set (match_operand:V2SF 0 "register_operand" "=y,y")
809 263194 : (minus:V2SF (match_operand:V2SF 1 "nonimmediate_operand" "0,ym")
810 263194 : (match_operand:V2SF 2 "nonimmediate_operand" "ym,0")))
811 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
812 145 : "TARGET_3DNOW && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
813 : "@
814 90121 : pfsub\t{%2, %0|%0, %2}
815 : pfsubr\t{%1, %0|%0, %1}"
816 3804 : [(set_attr "type" "mmxadd")
817 : (set_attr "prefix_extra" "1")
818 52639 : (set_attr "mode" "V2SF")])
819 3804 :
820 : (define_expand "mmx_mulv2sf3"
821 : [(parallel
822 : [(set (match_operand:V2SF 0 "register_operand")
823 : (mult:V2SF (match_operand:V2SF 1 "nonimmediate_operand")
824 : (match_operand:V2SF 2 "nonimmediate_operand")))
825 : (unspec [(const_int 0)] UNSPEC_3DNOW)])]
826 : "TARGET_3DNOW"
827 10672 : "ix86_fixup_binary_operands_no_copy (MULT, V2SFmode, operands);")
828 10657 :
829 10657 : (define_insn "*mmx_mulv2sf3"
830 : [(set (match_operand:V2SF 0 "register_operand" "=y")
831 15 : (mult:V2SF (match_operand:V2SF 1 "nonimmediate_operand" "%0")
832 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")))
833 6367 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
834 78 : "TARGET_3DNOW && ix86_binary_operator_ok (MULT, V2SFmode, operands)"
835 : "pfmul\t{%2, %0|%0, %2}"
836 15 : [(set_attr "type" "mmxmul")
837 6367 : (set_attr "prefix_extra" "1")
838 115064 : (set_attr "mode" "V2SF")])
839 :
840 : (define_expand "divv2sf3"
841 115072 : [(set (match_operand:V2SF 0 "register_operand")
842 : (div:V2SF (match_operand:V2SF 1 "register_operand")
843 8 : (match_operand:V2SF 2 "register_operand")))]
844 8 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
845 239 : {
846 347894 : rtx op2 = gen_reg_rtx (V4SFmode);
847 347894 : rtx op1 = gen_reg_rtx (V4SFmode);
848 347894 : rtx op0 = gen_reg_rtx (V4SFmode);
849 :
850 231 : rtx tmp = gen_rtx_VEC_CONCAT (V4SFmode, operands[2],
851 : force_reg (V2SFmode, CONST1_RTX (V2SFmode)));
852 231 : emit_insn (gen_rtx_SET (op2, tmp));
853 231 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
854 :
855 231 : emit_insn (gen_divv4sf3 (op0, op1, op2));
856 :
857 231 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
858 231 : DONE;
859 : })
860 :
861 : (define_expand "<code>v2sf3"
862 : [(set (match_operand:V2SF 0 "register_operand")
863 : (smaxmin:V2SF
864 : (match_operand:V2SF 1 "register_operand")
865 : (match_operand:V2SF 2 "register_operand")))]
866 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
867 127 : {
868 127 : rtx op2 = gen_reg_rtx (V4SFmode);
869 127 : rtx op1 = gen_reg_rtx (V4SFmode);
870 127 : rtx op0 = gen_reg_rtx (V4SFmode);
871 :
872 127 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
873 1747449 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
874 1747137 :
875 1747449 : emit_insn (gen_<code>v4sf3 (op0, op1, op2));
876 185 :
877 127 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
878 127 : DONE;
879 : })
880 :
881 : (define_expand "mmx_<code>v2sf3"
882 : [(parallel
883 : [(set (match_operand:V2SF 0 "register_operand")
884 127250 : (smaxmin:V2SF (match_operand:V2SF 1 "nonimmediate_operand")
885 127250 : (match_operand:V2SF 2 "nonimmediate_operand")))
886 127250 : (unspec [(const_int 0)] UNSPEC_3DNOW)])]
887 : "TARGET_3DNOW"
888 28 : {
889 28 : if (!flag_finite_math_only || flag_signed_zeros)
890 : {
891 28 : operands[1] = force_reg (V2SFmode, operands[1]);
892 42 : emit_insn (gen_mmx_ieee_<maxmin_float>v2sf3
893 1 : (operands[0], operands[1], operands[2]));
894 42 : DONE;
895 15 : }
896 1 : else
897 0 : ix86_fixup_binary_operands_no_copy (<CODE>, V2SFmode, operands);
898 : })
899 :
900 : ;; These versions of the min/max patterns are intentionally ignorant of
901 : ;; their behavior wrt -0.0 and NaN (via the commutative operand mark).
902 0 : ;; Since both the tree-level MAX_EXPR and the rtl-level SMAX operator
903 : ;; are undefined in this condition, we're certain this is correct.
904 14 :
905 : (define_insn "*mmx_<code>v2sf3"
906 : [(set (match_operand:V2SF 0 "register_operand" "=y")
907 0 : (smaxmin:V2SF (match_operand:V2SF 1 "nonimmediate_operand" "%0")
908 0 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")))
909 0 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
910 0 : "TARGET_3DNOW && ix86_binary_operator_ok (<CODE>, V2SFmode, operands)"
911 : "pf<maxmin_float>\t{%2, %0|%0, %2}"
912 263 : [(set_attr "type" "mmxadd")
913 : (set_attr "prefix_extra" "1")
914 271 : (set_attr "mode" "V2SF")])
915 263 :
916 249 : ;; These versions of the min/max patterns implement exactly the operations
917 8 : ;; min = (op1 < op2 ? op1 : op2)
918 : ;; max = (!(op1 < op2) ? op1 : op2)
919 : ;; Their operands are not commutative, and thus they may be used in the
920 : ;; presence of -0.0 and NaN.
921 :
922 : (define_insn "mmx_ieee_<ieee_maxmin>v2sf3"
923 : [(set (match_operand:V2SF 0 "register_operand" "=y")
924 14 : (unspec:V2SF
925 : [(match_operand:V2SF 1 "register_operand" "0")
926 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")]
927 : IEEE_MAXMIN))
928 0 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
929 0 : "TARGET_3DNOW"
930 : "pf<ieee_maxmin>\t{%2, %0|%0, %2}"
931 : [(set_attr "type" "mmxadd")
932 235 : (set_attr "prefix_extra" "1")
933 : (set_attr "mode" "V2SF")])
934 235 :
935 235 : (define_insn "mmx_rcpv2sf2"
936 235 : [(set (match_operand:V2SF 0 "register_operand" "=y")
937 : (unspec:V2SF [(match_operand:V2SF 1 "nonimmediate_operand" "ym")]
938 : UNSPEC_PFRCP))]
939 : "TARGET_3DNOW"
940 : "pfrcp\t{%1, %0|%0, %1}"
941 : [(set_attr "type" "mmx")
942 : (set_attr "prefix_extra" "1")
943 : (set_attr "mode" "V2SF")])
944 :
945 : (define_insn "mmx_rcpit1v2sf3"
946 : [(set (match_operand:V2SF 0 "register_operand" "=y")
947 : (unspec:V2SF [(match_operand:V2SF 1 "register_operand" "0")
948 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")]
949 : UNSPEC_PFRCPIT1))]
950 778 : "TARGET_3DNOW"
951 : "pfrcpit1\t{%2, %0|%0, %2}"
952 : [(set_attr "type" "mmx")
953 : (set_attr "prefix_extra" "1")
954 169762 : (set_attr "mode" "V2SF")])
955 :
956 : (define_insn "mmx_rcpit2v2sf3"
957 169762 : [(set (match_operand:V2SF 0 "register_operand" "=y")
958 : (unspec:V2SF [(match_operand:V2SF 1 "register_operand" "0")
959 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")]
960 : UNSPEC_PFRCPIT2))]
961 : "TARGET_3DNOW"
962 : "pfrcpit2\t{%2, %0|%0, %2}"
963 : [(set_attr "type" "mmx")
964 : (set_attr "prefix_extra" "1")
965 : (set_attr "mode" "V2SF")])
966 :
967 : (define_expand "sqrtv2sf2"
968 : [(set (match_operand:V2SF 0 "register_operand")
969 : (sqrt:V2SF (match_operand:V2SF 1 "nonimmediate_operand")))]
970 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
971 8 : {
972 8 : rtx op1 = gen_reg_rtx (V4SFmode);
973 8 : rtx op0 = gen_reg_rtx (V4SFmode);
974 :
975 8 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
976 :
977 8 : emit_insn (gen_sqrtv4sf2 (op0, op1));
978 :
979 8 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
980 8 : DONE;
981 : })
982 :
983 : (define_insn "mmx_rsqrtv2sf2"
984 : [(set (match_operand:V2SF 0 "register_operand" "=y")
985 : (unspec:V2SF [(match_operand:V2SF 1 "nonimmediate_operand" "ym")]
986 : UNSPEC_PFRSQRT))]
987 : "TARGET_3DNOW"
988 : "pfrsqrt\t{%1, %0|%0, %1}"
989 : [(set_attr "type" "mmx")
990 : (set_attr "prefix_extra" "1")
991 : (set_attr "mode" "V2SF")])
992 :
993 5 : (define_insn "mmx_rsqit1v2sf3"
994 : [(set (match_operand:V2SF 0 "register_operand" "=y")
995 5 : (unspec:V2SF [(match_operand:V2SF 1 "register_operand" "0")
996 5 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")]
997 5 : UNSPEC_PFRSQIT1))]
998 : "TARGET_3DNOW"
999 : "pfrsqit1\t{%2, %0|%0, %2}"
1000 : [(set_attr "type" "mmx")
1001 : (set_attr "prefix_extra" "1")
1002 : (set_attr "mode" "V2SF")])
1003 :
1004 : (define_expand "mmx_haddv2sf3"
1005 : [(set (match_operand:V2SF 0 "register_operand")
1006 : (vec_concat:V2SF
1007 : (plus:SF
1008 : (vec_select:SF
1009 : (match_operand:V2SF 1 "register_operand")
1010 : (parallel [(const_int 0)]))
1011 : (vec_select:SF (match_dup 1) (parallel [(const_int 1)])))
1012 : (plus:SF
1013 : (vec_select:SF
1014 : (match_operand:V2SF 2 "nonimmediate_operand")
1015 : (parallel [(const_int 0)]))
1016 : (vec_select:SF (match_dup 2) (parallel [(const_int 1)])))))]
1017 : "TARGET_3DNOW")
1018 :
1019 : (define_insn "*mmx_haddv2sf3"
1020 : [(set (match_operand:V2SF 0 "register_operand" "=y")
1021 : (vec_concat:V2SF
1022 : (plus:SF
1023 : (vec_select:SF
1024 : (match_operand:V2SF 1 "register_operand" "0")
1025 : (parallel [(match_operand:SI 3 "const_0_to_1_operand")]))
1026 : (vec_select:SF (match_dup 1)
1027 : (parallel [(match_operand:SI 4 "const_0_to_1_operand")])))
1028 : (plus:SF
1029 : (vec_select:SF
1030 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")
1031 : (parallel [(match_operand:SI 5 "const_0_to_1_operand")]))
1032 : (vec_select:SF (match_dup 2)
1033 : (parallel [(match_operand:SI 6 "const_0_to_1_operand")])))))]
1034 79 : "TARGET_3DNOW
1035 79 : && INTVAL (operands[3]) != INTVAL (operands[4])
1036 158 : && INTVAL (operands[5]) != INTVAL (operands[6])"
1037 : "pfacc\t{%2, %0|%0, %2}"
1038 : [(set_attr "type" "mmxadd")
1039 : (set_attr "prefix_extra" "1")
1040 79 : (set_attr "mode" "V2SF")])
1041 :
1042 : (define_insn_and_split "*mmx_haddv2sf3_low"
1043 79 : [(set (match_operand:SF 0 "register_operand")
1044 : (plus:SF
1045 : (vec_select:SF
1046 : (match_operand:V2SF 1 "nonimmediate_operand")
1047 : (parallel [(match_operand:SI 2 "const_0_to_1_operand")]))
1048 : (vec_select:SF
1049 : (match_dup 1)
1050 : (parallel [(match_operand:SI 3 "const_0_to_1_operand")]))))]
1051 372 : "TARGET_SSE3 && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math
1052 372 : && INTVAL (operands[2]) != INTVAL (operands[3])
1053 1225 : && ix86_pre_reload_split ()"
1054 : "#"
1055 416 : "&& 1"
1056 : [(const_int 0)]
1057 295 : {
1058 185 : rtx op1 = gen_reg_rtx (V4SFmode);
1059 406 : rtx op0 = gen_reg_rtx (V4SFmode);
1060 110 :
1061 185 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1062 221 :
1063 185 : emit_insn (gen_sse3_haddv4sf3 (op0, op1, op1));
1064 :
1065 185 : emit_move_insn (operands[0], lowpart_subreg (SFmode, op0, V4SFmode));
1066 185 : DONE;
1067 : })
1068 :
1069 : (define_insn "mmx_hsubv2sf3"
1070 : [(set (match_operand:V2SF 0 "register_operand" "=y")
1071 : (vec_concat:V2SF
1072 : (minus:SF
1073 : (vec_select:SF
1074 : (match_operand:V2SF 1 "register_operand" "0")
1075 : (parallel [(const_int 0)]))
1076 : (vec_select:SF (match_dup 1) (parallel [(const_int 1)])))
1077 : (minus:SF
1078 14 : (vec_select:SF
1079 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")
1080 14 : (parallel [(const_int 0)]))
1081 14 : (vec_select:SF (match_dup 2) (parallel [(const_int 1)])))))]
1082 14 : "TARGET_3DNOW_A"
1083 : "pfnacc\t{%2, %0|%0, %2}"
1084 : [(set_attr "type" "mmxadd")
1085 : (set_attr "prefix_extra" "1")
1086 : (set_attr "mode" "V2SF")])
1087 :
1088 : (define_insn_and_split "*mmx_hsubv2sf3_low"
1089 : [(set (match_operand:SF 0 "register_operand")
1090 : (minus:SF
1091 : (vec_select:SF
1092 : (match_operand:V2SF 1 "register_operand")
1093 : (parallel [(const_int 0)]))
1094 : (vec_select:SF
1095 : (match_dup 1)
1096 : (parallel [(const_int 1)]))))]
1097 3 : "TARGET_SSE3 && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math
1098 102 : && ix86_pre_reload_split ()"
1099 : "#"
1100 49 : "&& 1"
1101 : [(const_int 0)]
1102 18 : {
1103 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1104 7424 : rtx op0 = gen_reg_rtx (V4SFmode);
1105 17 :
1106 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1107 7423 :
1108 1 : emit_insn (gen_sse3_hsubv4sf3 (op0, op1, op1));
1109 :
1110 1 : emit_move_insn (operands[0], lowpart_subreg (SFmode, op0, V4SFmode));
1111 1 : DONE;
1112 : })
1113 :
1114 : (define_expand "mmx_haddsubv2sf3"
1115 : [(set (match_operand:V2SF 0 "register_operand")
1116 : (vec_concat:V2SF
1117 : (minus:SF
1118 : (vec_select:SF
1119 : (match_operand:V2SF 1 "register_operand")
1120 : (parallel [(const_int 0)]))
1121 : (vec_select:SF (match_dup 1) (parallel [(const_int 1)])))
1122 : (plus:SF
1123 11 : (vec_select:SF
1124 : (match_operand:V2SF 2 "nonimmediate_operand")
1125 11 : (parallel [(const_int 0)]))
1126 11 : (vec_select:SF (match_dup 2) (parallel [(const_int 1)])))))]
1127 11 : "TARGET_3DNOW_A")
1128 :
1129 : (define_insn "*mmx_haddsubv2sf3"
1130 : [(set (match_operand:V2SF 0 "register_operand" "=y")
1131 : (vec_concat:V2SF
1132 : (minus:SF
1133 : (vec_select:SF
1134 : (match_operand:V2SF 1 "register_operand" "0")
1135 : (parallel [(const_int 0)]))
1136 : (vec_select:SF (match_dup 1) (parallel [(const_int 1)])))
1137 : (plus:SF
1138 : (vec_select:SF
1139 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")
1140 : (parallel [(match_operand:SI 3 "const_0_to_1_operand")]))
1141 : (vec_select:SF
1142 : (match_dup 2)
1143 : (parallel [(match_operand:SI 4 "const_0_to_1_operand")])))))]
1144 79 : "TARGET_3DNOW_A
1145 79 : && INTVAL (operands[3]) != INTVAL (operands[4])"
1146 : "pfpnacc\t{%2, %0|%0, %2}"
1147 : [(set_attr "type" "mmxadd")
1148 : (set_attr "prefix_extra" "1")
1149 310124 : (set_attr "mode" "V2SF")])
1150 :
1151 : (define_expand "vec_addsubv2sf3"
1152 310124 : [(set (match_operand:V2SF 0 "register_operand")
1153 : (vec_merge:V2SF
1154 : (minus:V2SF
1155 : (match_operand:V2SF 1 "nonimmediate_operand")
1156 : (match_operand:V2SF 2 "nonimmediate_operand"))
1157 : (plus:V2SF (match_dup 1) (match_dup 2))
1158 : (const_int 1)))]
1159 : "TARGET_SSE3 && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1160 246 : {
1161 246 : rtx op2 = gen_reg_rtx (V4SFmode);
1162 246 : rtx op1 = gen_reg_rtx (V4SFmode);
1163 246 : rtx op0 = gen_reg_rtx (V4SFmode);
1164 :
1165 246 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1166 246 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1167 :
1168 246 : emit_insn (gen_vec_addsubv4sf3 (op0, op1, op2));
1169 :
1170 246 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1171 246 : DONE;
1172 : })
1173 :
1174 : (define_expand "vec_fmaddsubv2sf4"
1175 : [(match_operand:V2SF 0 "register_operand")
1176 : (match_operand:V2SF 1 "nonimmediate_operand")
1177 : (match_operand:V2SF 2 "nonimmediate_operand")
1178 : (match_operand:V2SF 3 "nonimmediate_operand")]
1179 : "(TARGET_FMA || TARGET_FMA4 || TARGET_AVX512VL)
1180 : && TARGET_MMX_WITH_SSE
1181 : && ix86_partial_vec_fp_math"
1182 5 : {
1183 5 : rtx op3 = gen_reg_rtx (V4SFmode);
1184 5 : rtx op2 = gen_reg_rtx (V4SFmode);
1185 5 : rtx op1 = gen_reg_rtx (V4SFmode);
1186 6 : rtx op0 = gen_reg_rtx (V4SFmode);
1187 :
1188 6 : emit_insn (gen_movq_v2sf_to_sse (op3, operands[3]));
1189 6 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1190 6 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1191 :
1192 5 : emit_insn (gen_vec_fmaddsubv4sf4 (op0, op1, op2, op3));
1193 :
1194 5 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1195 5 : DONE;
1196 : })
1197 :
1198 : (define_expand "vec_fmsubaddv2sf4"
1199 : [(match_operand:V2SF 0 "register_operand")
1200 : (match_operand:V2SF 1 "nonimmediate_operand")
1201 : (match_operand:V2SF 2 "nonimmediate_operand")
1202 : (match_operand:V2SF 3 "nonimmediate_operand")]
1203 : "(TARGET_FMA || TARGET_FMA4 || TARGET_AVX512VL)
1204 : && TARGET_MMX_WITH_SSE
1205 : && ix86_partial_vec_fp_math"
1206 3 : {
1207 3 : rtx op3 = gen_reg_rtx (V4SFmode);
1208 3 : rtx op2 = gen_reg_rtx (V4SFmode);
1209 4 : rtx op1 = gen_reg_rtx (V4SFmode);
1210 3 : rtx op0 = gen_reg_rtx (V4SFmode);
1211 1 :
1212 4 : emit_insn (gen_movq_v2sf_to_sse (op3, operands[3]));
1213 4 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1214 3 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1215 :
1216 3 : emit_insn (gen_vec_fmsubaddv4sf4 (op0, op1, op2, op3));
1217 :
1218 3 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1219 3 : DONE;
1220 : })
1221 :
1222 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1223 : ;;
1224 : ;; Parallel single-precision floating point comparisons
1225 : ;;
1226 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1227 :
1228 : (define_expand "mmx_eqv2sf3"
1229 : [(parallel
1230 : [(set (match_operand:V2SI 0 "register_operand")
1231 : (eq:V2SI (match_operand:V2SF 1 "nonimmediate_operand")
1232 : (match_operand:V2SF 2 "nonimmediate_operand")))
1233 13 : (unspec [(const_int 0)] UNSPEC_3DNOW)])]
1234 : "TARGET_3DNOW"
1235 27 : "ix86_fixup_binary_operands_no_copy (EQ, V2SFmode, operands);")
1236 13 :
1237 13 : (define_insn "*mmx_eqv2sf3"
1238 : [(set (match_operand:V2SI 0 "register_operand" "=y")
1239 14 : (eq:V2SI (match_operand:V2SF 1 "nonimmediate_operand" "%0")
1240 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")))
1241 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
1242 70 : "TARGET_3DNOW && ix86_binary_operator_ok (EQ, V2SFmode, operands)"
1243 : "pfcmpeq\t{%2, %0|%0, %2}"
1244 14 : [(set_attr "type" "mmxcmp")
1245 : (set_attr "prefix_extra" "1")
1246 145 : (set_attr "mode" "V2SF")])
1247 :
1248 : (define_insn "mmx_gtv2sf3"
1249 892 : [(set (match_operand:V2SI 0 "register_operand" "=y")
1250 : (gt:V2SI (match_operand:V2SF 1 "register_operand" "0")
1251 747 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")))
1252 747 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
1253 747 : "TARGET_3DNOW"
1254 : "pfcmpgt\t{%2, %0|%0, %2}"
1255 : [(set_attr "type" "mmxcmp")
1256 : (set_attr "prefix_extra" "1")
1257 : (set_attr "mode" "V2SF")])
1258 :
1259 : (define_insn "mmx_gev2sf3"
1260 : [(set (match_operand:V2SI 0 "register_operand" "=y")
1261 : (ge:V2SI (match_operand:V2SF 1 "register_operand" "0")
1262 : (match_operand:V2SF 2 "nonimmediate_operand" "ym")))
1263 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
1264 : "TARGET_3DNOW"
1265 : "pfcmpge\t{%2, %0|%0, %2}"
1266 : [(set_attr "type" "mmxcmp")
1267 : (set_attr "prefix_extra" "1")
1268 : (set_attr "mode" "V2SF")])
1269 :
1270 : (define_expand "vec_cmpv2sfv2si"
1271 : [(set (match_operand:V2SI 0 "register_operand")
1272 : (match_operator:V2SI 1 "ix86_fp_vec_cmp_operator"
1273 : [(match_operand:V2SF 2 "nonimmediate_operand")
1274 : (match_operand:V2SF 3 "nonimmediate_operand")]))]
1275 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1276 235 : {
1277 235 : rtx ops[4];
1278 235 : ops[3] = gen_reg_rtx (V4SFmode);
1279 235 : ops[2] = gen_reg_rtx (V4SFmode);
1280 235 : ops[1] = gen_rtx_fmt_ee (GET_CODE (operands[1]), V4SImode, ops[2], ops[3]);
1281 235 : ops[0] = gen_reg_rtx (V4SImode);
1282 :
1283 235 : emit_insn (gen_movq_v2sf_to_sse (ops[3], operands[3]));
1284 235 : emit_insn (gen_movq_v2sf_to_sse (ops[2], operands[2]));
1285 :
1286 235 : bool ok = ix86_expand_fp_vec_cmp (ops);
1287 235 : gcc_assert (ok);
1288 :
1289 235 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, ops[0], V4SImode));
1290 235 : DONE;
1291 : })
1292 :
1293 : (define_insn "@sse4_1_insertps_<mode>"
1294 : [(set (match_operand:V2FI 0 "register_operand" "=Yr,*x,v")
1295 : (unspec:V2FI
1296 : [(match_operand:V2FI 2 "nonimmediate_operand" "Yrjm,*xjm,vm")
1297 : (match_operand:V2FI 1 "register_operand" "0,0,v")
1298 : (match_operand:SI 3 "const_0_to_255_operand")]
1299 : UNSPEC_INSERTPS))]
1300 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
1301 458 : {
1302 458 : if (MEM_P (operands[2]))
1303 : {
1304 103 : unsigned count_s = INTVAL (operands[3]) >> 6;
1305 21 : if (count_s)
1306 92 : operands[3] = GEN_INT (INTVAL (operands[3]) & 0x3f);
1307 103 : operands[2] = adjust_address_nv (operands[2],
1308 82 : <mmxscalarmode>mode, count_s * 4);
1309 : }
1310 458 : switch (which_alternative)
1311 : {
1312 : case 0:
1313 : case 1:
1314 : return "insertps\t{%3, %2, %0|%0, %2, %3}";
1315 458 : case 2:
1316 458 : return "vinsertps\t{%3, %2, %1, %0|%0, %1, %2, %3}";
1317 0 : default:
1318 0 : gcc_unreachable ();
1319 : }
1320 : }
1321 : [(set_attr "isa" "noavx,noavx,avx")
1322 : (set_attr "addr" "gpr16,gpr16,*")
1323 : (set_attr "type" "sselog")
1324 0 : (set_attr "prefix_data16" "1,1,*")
1325 : (set_attr "prefix_extra" "1")
1326 : (set_attr "length_immediate" "1")
1327 : (set_attr "prefix" "orig,orig,maybe_evex")
1328 : (set_attr "mode" "V4SF")])
1329 :
1330 : (define_insn "*mmx_blendps"
1331 : [(set (match_operand:V2SF 0 "register_operand" "=Yr,*x,x")
1332 : (vec_merge:V2SF
1333 : (match_operand:V2SF 2 "register_operand" "Yr,*x,x")
1334 : (match_operand:V2SF 1 "register_operand" "0,0,x")
1335 : (match_operand:SI 3 "const_0_to_3_operand")))]
1336 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
1337 : "@
1338 : blendps\t{%3, %2, %0|%0, %2, %3}
1339 : blendps\t{%3, %2, %0|%0, %2, %3}
1340 : vblendps\t{%3, %2, %1, %0|%0, %1, %2, %3}"
1341 : [(set_attr "isa" "noavx,noavx,avx")
1342 : (set_attr "type" "ssemov")
1343 : (set_attr "c86_attr" "blend")
1344 : (set_attr "length_immediate" "1")
1345 : (set_attr "prefix_data16" "1,1,*")
1346 : (set_attr "prefix_extra" "1")
1347 : (set_attr "prefix" "orig,orig,vex")
1348 : (set_attr "mode" "V4SF")])
1349 :
1350 : (define_insn "mmx_blendvps"
1351 : [(set (match_operand:V2SF 0 "register_operand" "=Yr,*x,x")
1352 : (unspec:V2SF
1353 : [(match_operand:V2SF 1 "register_operand" "0,0,x")
1354 : (match_operand:V2SF 2 "register_operand" "Yr,*x,x")
1355 : (match_operand:V2SF 3 "register_operand" "Yz,Yz,x")]
1356 : UNSPEC_BLENDV))]
1357 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
1358 : "@
1359 : blendvps\t{%3, %2, %0|%0, %2, %3}
1360 : blendvps\t{%3, %2, %0|%0, %2, %3}
1361 : vblendvps\t{%3, %2, %1, %0|%0, %1, %2, %3}"
1362 : [(set_attr "isa" "noavx,noavx,avx")
1363 : (set_attr "type" "ssemov")
1364 : (set_attr "c86_attr" "blendv")
1365 : (set_attr "length_immediate" "1")
1366 : (set_attr "prefix_data16" "1,1,*")
1367 : (set_attr "prefix_extra" "1")
1368 : (set_attr "prefix" "orig,orig,vex")
1369 : (set_attr "btver2_decode" "vector")
1370 : (set_attr "mode" "V4SF")])
1371 :
1372 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1373 : ;;
1374 : ;; Parallel single-precision floating point logical operations
1375 : ;;
1376 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1377 :
1378 : (define_insn "*mmx_andnotv2sf3"
1379 : [(set (match_operand:V2SF 0 "register_operand" "=x,x")
1380 : (and:V2SF
1381 : (not:V2SF
1382 : (match_operand:V2SF 1 "register_operand" "0,x"))
1383 : (match_operand:V2SF 2 "register_operand" "x,x")))]
1384 : "TARGET_MMX_WITH_SSE"
1385 : "@
1386 : andnps\t{%2, %0|%0, %2}
1387 : vandnps\t{%2, %1, %0|%0, %1, %2}"
1388 : [(set_attr "isa" "noavx,avx")
1389 : (set_attr "type" "sselog")
1390 : (set_attr "prefix" "orig,vex")
1391 : (set_attr "mode" "V4SF")])
1392 :
1393 : (define_insn "<code>v2sf3"
1394 : [(set (match_operand:V2SF 0 "register_operand" "=x,x")
1395 : (any_logic:V2SF
1396 : (match_operand:V2SF 1 "register_operand" "%0,x")
1397 : (match_operand:V2SF 2 "register_operand" "x,x")))]
1398 48696 : "TARGET_MMX_WITH_SSE"
1399 : "@
1400 : <logic>ps\t{%2, %0|%0, %2}
1401 : v<logic>ps\t{%2, %1, %0|%0, %1, %2}"
1402 69 : [(set_attr "isa" "noavx,avx")
1403 : (set_attr "type" "sselog")
1404 : (set_attr "prefix" "orig,vex")
1405 69 : (set_attr "mode" "V4SF")])
1406 :
1407 : (define_expand "copysignv2sf3"
1408 : [(set (match_dup 4)
1409 : (and:V2SF
1410 : (not:V2SF (match_dup 3))
1411 : (match_operand:V2SF 1 "register_operand")))
1412 : (set (match_dup 5)
1413 : (and:V2SF (match_dup 3)
1414 : (match_operand:V2SF 2 "register_operand")))
1415 : (set (match_operand:V2SF 0 "register_operand")
1416 : (ior:V2SF (match_dup 4) (match_dup 5)))]
1417 : "TARGET_MMX_WITH_SSE"
1418 11 : {
1419 11 : operands[3] = ix86_build_signbit_mask (V2SFmode, true, false);
1420 :
1421 11 : operands[4] = gen_reg_rtx (V2SFmode);
1422 11 : operands[5] = gen_reg_rtx (V2SFmode);
1423 : })
1424 :
1425 : (define_expand "xorsignv2sf3"
1426 : [(set (match_dup 4)
1427 11 : (and:V2SF (match_dup 3)
1428 : (match_operand:V2SF 2 "register_operand")))
1429 : (set (match_operand:V2SF 0 "register_operand")
1430 : (xor:V2SF (match_dup 4)
1431 : (match_operand:V2SF 1 "register_operand")))]
1432 : "TARGET_MMX_WITH_SSE"
1433 12 : {
1434 1 : operands[3] = ix86_build_signbit_mask (V2SFmode, true, false);
1435 :
1436 1 : operands[4] = gen_reg_rtx (V2SFmode);
1437 : })
1438 156 :
1439 : (define_expand "signbitv2sf2"
1440 156 : [(set (match_operand:V2SI 0 "register_operand")
1441 157 : (lshiftrt:V2SI
1442 156 : (subreg:V2SI
1443 : (match_operand:V2SF 1 "register_operand") 0)
1444 : (match_dup 2)))]
1445 : "TARGET_MMX_WITH_SSE"
1446 2 : {
1447 1 : operands[1] = force_reg (V2SFmode, operands[1]);
1448 1 : operands[2] = GEN_INT (GET_MODE_UNIT_BITSIZE (V2SFmode)-1);
1449 : })
1450 :
1451 2 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1452 : ;;
1453 3 : ;; Parallel single-precision FMA multiply/accumulate instructions.
1454 2 : ;;
1455 2 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1456 :
1457 1 : (define_expand "fmav2sf4"
1458 : [(set (match_operand:V2SF 0 "register_operand")
1459 : (fma:V2SF
1460 : (match_operand:V2SF 1 "nonimmediate_operand")
1461 : (match_operand:V2SF 2 "nonimmediate_operand")
1462 1 : (match_operand:V2SF 3 "nonimmediate_operand")))]
1463 : "(TARGET_FMA || TARGET_FMA4 || TARGET_AVX512VL)
1464 1 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1465 748 : {
1466 748 : rtx op3 = gen_reg_rtx (V4SFmode);
1467 747 : rtx op2 = gen_reg_rtx (V4SFmode);
1468 747 : rtx op1 = gen_reg_rtx (V4SFmode);
1469 747 : rtx op0 = gen_reg_rtx (V4SFmode);
1470 :
1471 747 : emit_insn (gen_movq_v2sf_to_sse (op3, operands[3]));
1472 747 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1473 747 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1474 :
1475 747 : emit_insn (gen_fmav4sf4 (op0, op1, op2, op3));
1476 :
1477 747 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1478 747 : DONE;
1479 : })
1480 :
1481 : (define_expand "fmsv2sf4"
1482 : [(set (match_operand:V2SF 0 "register_operand")
1483 : (fma:V2SF
1484 : (match_operand:V2SF 1 "nonimmediate_operand")
1485 : (match_operand:V2SF 2 "nonimmediate_operand")
1486 : (neg:V2SF
1487 : (match_operand:V2SF 3 "nonimmediate_operand"))))]
1488 : "(TARGET_FMA || TARGET_FMA4 || TARGET_AVX512VL)
1489 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1490 13 : {
1491 13 : rtx op3 = gen_reg_rtx (V4SFmode);
1492 455 : rtx op2 = gen_reg_rtx (V4SFmode);
1493 13 : rtx op1 = gen_reg_rtx (V4SFmode);
1494 455 : rtx op0 = gen_reg_rtx (V4SFmode);
1495 442 :
1496 455 : emit_insn (gen_movq_v2sf_to_sse (op3, operands[3]));
1497 13 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1498 13 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1499 :
1500 13 : emit_insn (gen_fmsv4sf4 (op0, op1, op2, op3));
1501 :
1502 13 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1503 13 : DONE;
1504 : })
1505 :
1506 : (define_expand "fnmav2sf4"
1507 : [(set (match_operand:V2SF 0 "register_operand")
1508 : (fma:V2SF
1509 : (neg:V2SF
1510 : (match_operand:V2SF 1 "nonimmediate_operand"))
1511 : (match_operand:V2SF 2 "nonimmediate_operand")
1512 : (match_operand:V2SF 3 "nonimmediate_operand")))]
1513 : "(TARGET_FMA || TARGET_FMA4 || TARGET_AVX512VL)
1514 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1515 156 : {
1516 156 : rtx op3 = gen_reg_rtx (V4SFmode);
1517 156 : rtx op2 = gen_reg_rtx (V4SFmode);
1518 442 : rtx op1 = gen_reg_rtx (V4SFmode);
1519 156 : rtx op0 = gen_reg_rtx (V4SFmode);
1520 286 :
1521 442 : emit_insn (gen_movq_v2sf_to_sse (op3, operands[3]));
1522 156 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1523 156 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1524 :
1525 156 : emit_insn (gen_fnmav4sf4 (op0, op1, op2, op3));
1526 :
1527 156 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1528 156 : DONE;
1529 : })
1530 :
1531 : (define_expand "fnmsv2sf4"
1532 : [(set (match_operand:V2SF 0 "register_operand" "=v,v,x")
1533 : (fma:V2SF
1534 : (neg:V2SF
1535 : (match_operand:V2SF 1 "nonimmediate_operand"))
1536 : (match_operand:V2SF 2 "nonimmediate_operand")
1537 : (neg:V2SF
1538 : (match_operand:V2SF 3 "nonimmediate_operand"))))]
1539 : "(TARGET_FMA || TARGET_FMA4 || TARGET_AVX512VL)
1540 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1541 2 : {
1542 2 : rtx op3 = gen_reg_rtx (V4SFmode);
1543 112 : rtx op2 = gen_reg_rtx (V4SFmode);
1544 2 : rtx op1 = gen_reg_rtx (V4SFmode);
1545 112 : rtx op0 = gen_reg_rtx (V4SFmode);
1546 110 :
1547 2 : emit_insn (gen_movq_v2sf_to_sse (op3, operands[3]));
1548 2 : emit_insn (gen_movq_v2sf_to_sse (op2, operands[2]));
1549 2 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1550 :
1551 2 : emit_insn (gen_fnmsv4sf4 (op0, op1, op2, op3));
1552 :
1553 2 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1554 2 : DONE;
1555 : })
1556 :
1557 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1558 : ;;
1559 : ;; Parallel single-precision floating point conversion operations
1560 : ;;
1561 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1562 :
1563 : (define_expand "fix_truncv2sfv2si2"
1564 : [(set (match_operand:V2SI 0 "register_operand")
1565 : (fix:V2SI (match_operand:V2SF 1 "nonimmediate_operand")))]
1566 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1567 82 : {
1568 82 : rtx op1 = gen_reg_rtx (V4SFmode);
1569 103 : rtx op0 = gen_reg_rtx (V4SImode);
1570 :
1571 103 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1572 21 :
1573 103 : emit_insn (gen_fix_truncv4sfv4si2 (op0, op1));
1574 :
1575 82 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
1576 82 : DONE;
1577 : })
1578 :
1579 : (define_expand "fixuns_truncv2sfv2si2"
1580 : [(set (match_operand:V2SI 0 "register_operand")
1581 : (unsigned_fix:V2SI (match_operand:V2SF 1 "nonimmediate_operand")))]
1582 : "TARGET_AVX512VL && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1583 1 : {
1584 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1585 1 : rtx op0 = gen_reg_rtx (V4SImode);
1586 :
1587 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1588 :
1589 6 : emit_insn (gen_fixuns_truncv4sfv4si2 (op0, op1));
1590 :
1591 6 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
1592 6 : DONE;
1593 5 : })
1594 :
1595 : (define_insn "mmx_fix_truncv2sfv2si2"
1596 : [(set (match_operand:V2SI 0 "register_operand" "=y")
1597 : (fix:V2SI (match_operand:V2SF 1 "nonimmediate_operand" "ym")))
1598 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
1599 : "TARGET_3DNOW"
1600 : "pf2id\t{%1, %0|%0, %1}"
1601 : [(set_attr "type" "mmxcvt")
1602 : (set_attr "prefix_extra" "1")
1603 : (set_attr "mode" "V2SF")])
1604 :
1605 : (define_expand "floatv2siv2sf2"
1606 1108 : [(set (match_operand:V2SF 0 "register_operand")
1607 : (float:V2SF (match_operand:V2SI 1 "nonimmediate_operand")))]
1608 1108 : "TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1609 1550 : {
1610 442 : rtx op1 = gen_reg_rtx (V4SImode);
1611 442 : rtx op0 = gen_reg_rtx (V4SFmode);
1612 :
1613 442 : emit_insn (gen_movq_v2si_to_sse (op1, operands[1]));
1614 :
1615 442 : emit_insn (gen_floatv4siv4sf2 (op0, op1));
1616 :
1617 442 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1618 442 : DONE;
1619 : })
1620 :
1621 : (define_expand "floatunsv2siv2sf2"
1622 : [(set (match_operand:V2SF 0 "register_operand")
1623 : (unsigned_float:V2SF (match_operand:V2SI 1 "nonimmediate_operand")))]
1624 : "TARGET_AVX512VL && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1625 5 : {
1626 5 : rtx op1 = gen_reg_rtx (V4SImode);
1627 5 : rtx op0 = gen_reg_rtx (V4SFmode);
1628 :
1629 5 : emit_insn (gen_movq_v2si_to_sse (op1, operands[1]));
1630 :
1631 5 : emit_insn (gen_floatunsv4siv4sf2 (op0, op1));
1632 86 :
1633 5 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1634 91 : DONE;
1635 86 : })
1636 :
1637 : (define_insn "mmx_floatv2siv2sf2"
1638 : [(set (match_operand:V2SF 0 "register_operand" "=y")
1639 : (float:V2SF (match_operand:V2SI 1 "nonimmediate_operand" "ym")))
1640 : (unspec [(const_int 0)] UNSPEC_3DNOW)]
1641 : "TARGET_3DNOW"
1642 : "pi2fd\t{%1, %0|%0, %1}"
1643 : [(set_attr "type" "mmxcvt")
1644 : (set_attr "prefix_extra" "1")
1645 : (set_attr "mode" "V2SF")])
1646 :
1647 1 : (define_insn "mmx_pf2iw"
1648 : [(set (match_operand:V2SI 0 "register_operand" "=y")
1649 1 : (sign_extend:V2SI
1650 1 : (ss_truncate:V2HI
1651 1 : (fix:V2SI
1652 : (match_operand:V2SF 1 "nonimmediate_operand" "ym")))))]
1653 216 : "TARGET_3DNOW_A"
1654 : "pf2iw\t{%1, %0|%0, %1}"
1655 : [(set_attr "type" "mmxcvt")
1656 : (set_attr "prefix_extra" "1")
1657 847561 : (set_attr "mode" "V2SF")])
1658 :
1659 : (define_insn "mmx_pi2fw"
1660 847561 : [(set (match_operand:V2SF 0 "register_operand" "=y")
1661 : (float:V2SF
1662 : (sign_extend:V2SI
1663 : (truncate:V2HI
1664 : (match_operand:V2SI 1 "nonimmediate_operand" "ym")))))]
1665 : "TARGET_3DNOW_A"
1666 : "pi2fw\t{%1, %0|%0, %1}"
1667 : [(set_attr "type" "mmxcvt")
1668 : (set_attr "prefix_extra" "1")
1669 : (set_attr "mode" "V2SF")])
1670 :
1671 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1672 : ;;
1673 : ;; Parallel single-precision floating point element swizzling
1674 : ;;
1675 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1676 :
1677 : (define_insn "mmx_pswapdv2sf2"
1678 : [(set (match_operand:V2SF 0 "register_operand" "=y,x,Yv")
1679 : (vec_select:V2SF
1680 : (match_operand:V2SF 1 "register_mmxmem_operand" "ym,0,Yv")
1681 : (parallel [(const_int 1) (const_int 0)])))]
1682 7270 : "TARGET_3DNOW_A || TARGET_MMX_WITH_SSE"
1683 : "@
1684 : pswapd\t{%1, %0|%0, %1}
1685 : shufps\t{$0xe1, %1, %0|%0, %1, 0xe1}
1686 491370 : vshufps\t{$0xe1, %1, %1, %0|%0, %1, %1, 0xe1}"
1687 : [(set_attr "isa" "*,sse_noavx,avx")
1688 : (set_attr "mmx_isa" "native,*,*")
1689 491370 : (set_attr "type" "mmxcvt,ssemov,ssemov")
1690 : (set_attr "prefix_extra" "1,*,*")
1691 : (set_attr "mode" "V2SF,V4SF,V4SF")])
1692 :
1693 : (define_insn "*mmx_movshdup"
1694 : [(set (match_operand:V2SF 0 "register_operand" "=v,x")
1695 : (vec_select:V2SF
1696 : (match_operand:V2SF 1 "register_operand" "v,0")
1697 : (parallel [(const_int 1) (const_int 1)])))]
1698 : "TARGET_MMX_WITH_SSE"
1699 : "@
1700 : %vmovshdup\t{%1, %0|%0, %1}
1701 : shufps\t{$0xe5, %0, %0|%0, %0, 0xe5}"
1702 : [(set_attr "isa" "sse3,*")
1703 : (set_attr "type" "sse,sseshuf1")
1704 : (set_attr "length_immediate" "*,1")
1705 : (set_attr "prefix_rep" "1,*")
1706 : (set_attr "prefix" "maybe_vex,orig")
1707 : (set_attr "mode" "V4SF")])
1708 :
1709 : (define_insn "*mmx_movsldup"
1710 : [(set (match_operand:V2SF 0 "register_operand" "=v,x")
1711 : (vec_select:V2SF
1712 : (match_operand:V2SF 1 "register_operand" "v,0")
1713 : (parallel [(const_int 0) (const_int 0)])))]
1714 : "TARGET_MMX_WITH_SSE"
1715 : "@
1716 : %vmovsldup\t{%1, %0|%0, %1}
1717 : shufps\t{$0xe0, %0, %0|%0, %0, 0xe0}"
1718 : [(set_attr "isa" "sse3,*")
1719 : (set_attr "type" "sse,sseshuf1")
1720 : (set_attr "length_immediate" "*,1")
1721 : (set_attr "prefix_rep" "1,*")
1722 : (set_attr "prefix" "maybe_vex,orig")
1723 : (set_attr "mode" "V4SF")])
1724 :
1725 : (define_insn_and_split "*vec_interleave_lowv2sf"
1726 : [(set (match_operand:V2SF 0 "register_operand" "=x,v")
1727 : (vec_select:V2SF
1728 : (vec_concat:V4SF
1729 : (match_operand:V2SF 1 "register_operand" "0,v")
1730 : (match_operand:V2SF 2 "register_operand" "x,v"))
1731 : (parallel [(const_int 0) (const_int 2)])))]
1732 : "TARGET_MMX_WITH_SSE"
1733 : "#"
1734 : "&& reload_completed"
1735 : [(const_int 0)]
1736 286 : "ix86_split_mmx_punpck (operands, false); DONE;"
1737 : [(set_attr "isa" "noavx,avx")
1738 : (set_attr "type" "sselog")
1739 : (set_attr "prefix" "orig,maybe_evex")
1740 : (set_attr "mode" "V4SF")])
1741 :
1742 : (define_insn_and_split "*vec_interleave_highv2sf"
1743 : [(set (match_operand:V2SF 0 "register_operand" "=x,v")
1744 : (vec_select:V2SF
1745 : (vec_concat:V4SF
1746 : (match_operand:V2SF 1 "register_operand" "0,v")
1747 3259 : (match_operand:V2SF 2 "register_operand" "x,v"))
1748 : (parallel [(const_int 1) (const_int 3)])))]
1749 3259 : "TARGET_MMX_WITH_SSE"
1750 3259 : "#"
1751 3259 : "&& reload_completed"
1752 : [(const_int 0)]
1753 110 : "ix86_split_mmx_punpck (operands, true); DONE;"
1754 : [(set_attr "isa" "noavx,avx")
1755 : (set_attr "type" "sselog")
1756 : (set_attr "prefix" "orig,vex")
1757 : (set_attr "mode" "V4SF")])
1758 :
1759 : (define_insn "*vec_dupv2sf"
1760 : [(set (match_operand:V2SF 0 "register_operand" "=y,Yv,x")
1761 : (vec_duplicate:V2SF
1762 : (match_operand:SF 1 "register_operand" "0,Yv,0")))]
1763 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
1764 2633 : "@
1765 : punpckldq\t%0, %0
1766 2633 : %vmovsldup\t{%1, %0|%0, %1}
1767 2633 : shufps\t{$0xe0, %0, %0|%0, %0, 0xe0}"
1768 2633 : [(set_attr "isa" "*,sse3,sse_noavx")
1769 : (set_attr "mmx_isa" "native,*,*")
1770 : (set_attr "type" "mmxcvt,sse,sseshuf1")
1771 : (set_attr "length_immediate" "*,*,1")
1772 : (set_attr "prefix_rep" "*,1,*")
1773 : (set_attr "prefix" "*,maybe_vex,orig")
1774 : (set_attr "mode" "DI,V4SF,V4SF")])
1775 :
1776 : (define_insn "*mmx_movss_<mode>"
1777 : [(set (match_operand:V2FI 0 "register_operand" "=x,v")
1778 : (vec_merge:V2FI
1779 : (match_operand:V2FI 2 "register_operand" " x,v")
1780 : (match_operand:V2FI 1 "register_operand" " 0,v")
1781 : (const_int 1)))]
1782 : "TARGET_MMX_WITH_SSE"
1783 : "@
1784 : movss\t{%2, %0|%0, %2}
1785 : vmovss\t{%2, %1, %0|%0, %1, %2}"
1786 : [(set_attr "isa" "noavx,avx")
1787 : (set_attr "type" "ssemov")
1788 : (set_attr "prefix" "orig,maybe_evex")
1789 : (set_attr "mode" "SF")])
1790 :
1791 : (define_insn "*mmx_concatv2sf"
1792 : [(set (match_operand:V2SF 0 "register_operand" "=y,y")
1793 : (vec_concat:V2SF
1794 : (match_operand:SF 1 "nonimmediate_operand" " 0,rm")
1795 : (match_operand:SF 2 "nonimm_or_0_operand" "ym,C")))]
1796 310124 : "TARGET_MMX && !TARGET_SSE"
1797 : "@
1798 : punpckldq\t{%2, %0|%0, %2}
1799 : movd\t{%1, %0|%0, %1}"
1800 48705 : [(set_attr "type" "mmxcvt,mmxmov")
1801 : (set_attr "mode" "DI")])
1802 :
1803 48705 : (define_expand "vec_setv2sf"
1804 : [(match_operand:V2SF 0 "register_operand")
1805 : (match_operand:SF 1 "register_operand")
1806 : (match_operand 2 "vec_setm_mmx_operand")]
1807 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
1808 21 : {
1809 21 : if (CONST_INT_P (operands[2]))
1810 19 : ix86_expand_vector_set (TARGET_MMX_WITH_SSE, operands[0], operands[1],
1811 19 : INTVAL (operands[2]));
1812 : else
1813 2 : ix86_expand_vector_set_var (operands[0], operands[1], operands[2]);
1814 21 : DONE;
1815 : })
1816 :
1817 : ;; Avoid combining registers from different units in a single alternative,
1818 : ;; see comment above inline_secondary_memory_needed function in i386.cc
1819 : (define_insn_and_split "*vec_extractv2sf_0"
1820 : [(set (match_operand:SF 0 "nonimmediate_operand" "=x, m,y ,m,f,r")
1821 : (vec_select:SF
1822 : (match_operand:V2SF 1 "nonimmediate_operand" " xm,x,ym,y,m,m")
1823 : (parallel [(const_int 0)])))]
1824 230 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
1825 89211 : && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
1826 : "#"
1827 7424 : "&& reload_completed"
1828 : [(set (match_dup 0) (match_dup 1))]
1829 3777 : "operands[1] = gen_lowpart (SFmode, operands[1]);"
1830 1 : [(set_attr "mmx_isa" "*,*,native,native,*,*")])
1831 14092 :
1832 3776 : ;; Avoid combining registers from different units in a single alternative,
1833 : ;; see comment above inline_secondary_memory_needed function in i386.cc
1834 14091 : (define_insn "*vec_extractv2sf_1"
1835 1108 : [(set (match_operand:SF 0 "nonimmediate_operand" "=y,x,x,y,x,f,r")
1836 : (vec_select:SF
1837 : (match_operand:V2SF 1 "nonimmediate_operand" " 0,x,0,o,o,o,o")
1838 : (parallel [(const_int 1)])))]
1839 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
1840 1 : && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
1841 : "@
1842 1 : punpckhdq\t%0, %0
1843 1 : %vmovshdup\t{%1, %0|%0, %1}
1844 1 : shufps\t{$0xe5, %0, %0|%0, %0, 0xe5}
1845 : #
1846 : #
1847 : #
1848 : #"
1849 : [(set_attr "isa" "*,sse3,noavx,*,*,*,*")
1850 : (set_attr "mmx_isa" "native,*,*,native,*,*,*")
1851 : (set_attr "type" "mmxcvt,sse,sseshuf1,mmxmov,ssemov,fmov,imov")
1852 : (set (attr "length_immediate")
1853 : (if_then_else (eq_attr "alternative" "2")
1854 : (const_string "1")
1855 : (const_string "*")))
1856 : (set (attr "prefix_rep")
1857 : (if_then_else (eq_attr "alternative" "1")
1858 : (const_string "1")
1859 : (const_string "*")))
1860 : (set_attr "prefix" "orig,maybe_vex,orig,orig,orig,orig,orig")
1861 : (set_attr "mode" "DI,V4SF,V4SF,SF,SF,SF,SF")])
1862 :
1863 : (define_split
1864 : [(set (match_operand:SF 0 "register_operand")
1865 : (vec_select:SF
1866 : (match_operand:V2SF 1 "memory_operand")
1867 : (parallel [(const_int 1)])))]
1868 143 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && reload_completed"
1869 : [(set (match_dup 0) (match_dup 1))]
1870 86 : "operands[1] = adjust_address (operands[1], SFmode, 4);")
1871 :
1872 10390 : (define_expand "vec_extractv2sfsf"
1873 86 : [(match_operand:SF 0 "register_operand")
1874 : (match_operand:V2SF 1 "register_operand")
1875 10390 : (match_operand 2 "const_int_operand")]
1876 86 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
1877 3259 : {
1878 3259 : ix86_expand_vector_extract (TARGET_MMX_WITH_SSE, operands[0],
1879 3259 : operands[1], INTVAL (operands[2]));
1880 3259 : DONE;
1881 1 : })
1882 :
1883 1 : (define_expand "vec_initv2sfsf"
1884 1 : [(match_operand:V2SF 0 "register_operand")
1885 1 : (match_operand 1)]
1886 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSE"
1887 2633 : {
1888 2633 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
1889 : operands[1]);
1890 2633 : DONE;
1891 : })
1892 :
1893 2 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1894 : ;;
1895 2 : ;; Parallel single-precision floating point rounding operations.
1896 2 : ;;
1897 2 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1898 :
1899 : (define_expand "nearbyintv2sf2"
1900 : [(match_operand:V2SF 0 "register_operand")
1901 : (match_operand:V2SF 1 "nonimmediate_operand")]
1902 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1903 2 : {
1904 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1905 2 : rtx op0 = gen_reg_rtx (V4SFmode);
1906 1 :
1907 2 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1908 :
1909 1 : emit_insn (gen_nearbyintv4sf2 (op0, op1));
1910 :
1911 1 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1912 1 : DONE;
1913 : })
1914 :
1915 : (define_expand "rintv2sf2"
1916 : [(match_operand:V2SF 0 "register_operand")
1917 : (match_operand:V2SF 1 "nonimmediate_operand")]
1918 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1919 1 : {
1920 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1921 1 : rtx op0 = gen_reg_rtx (V4SFmode);
1922 :
1923 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1924 :
1925 2 : emit_insn (gen_rintv4sf2 (op0, op1));
1926 :
1927 2 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1928 2 : DONE;
1929 1 : })
1930 :
1931 : (define_expand "lrintv2sfv2si2"
1932 : [(match_operand:V2SI 0 "register_operand")
1933 : (match_operand:V2SF 1 "nonimmediate_operand")]
1934 : "TARGET_SSE4_1 && !flag_trapping_math
1935 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1936 1 : {
1937 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1938 1 : rtx op0 = gen_reg_rtx (V4SImode);
1939 :
1940 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1941 1 :
1942 1 : emit_insn (gen_lrintv4sfv4si2 (op0, op1));
1943 1 :
1944 2 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
1945 2 : DONE;
1946 : })
1947 :
1948 : (define_expand "ceilv2sf2"
1949 : [(match_operand:V2SF 0 "register_operand")
1950 : (match_operand:V2SF 1 "nonimmediate_operand")]
1951 : "TARGET_SSE4_1 && !flag_trapping_math
1952 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1953 1 : {
1954 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1955 1 : rtx op0 = gen_reg_rtx (V4SFmode);
1956 :
1957 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1958 1 :
1959 1 : emit_insn (gen_ceilv4sf2 (op0, op1));
1960 1 :
1961 2 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1962 2 : DONE;
1963 : })
1964 :
1965 : (define_expand "lceilv2sfv2si2"
1966 : [(match_operand:V2SI 0 "register_operand")
1967 : (match_operand:V2SF 1 "nonimmediate_operand")]
1968 : "TARGET_SSE4_1 && !flag_trapping_math
1969 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1970 1 : {
1971 1 : rtx op1 = gen_reg_rtx (V4SFmode);
1972 1 : rtx op0 = gen_reg_rtx (V4SImode);
1973 :
1974 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1975 1 :
1976 1 : emit_insn (gen_lceilv4sfv4si2 (op0, op1));
1977 1 :
1978 2 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
1979 28 : DONE;
1980 : })
1981 :
1982 : (define_expand "floorv2sf2"
1983 : [(match_operand:V2SF 0 "register_operand")
1984 : (match_operand:V2SF 1 "nonimmediate_operand")]
1985 : "TARGET_SSE4_1 && !flag_trapping_math
1986 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
1987 2 : {
1988 2 : rtx op1 = gen_reg_rtx (V4SFmode);
1989 2 : rtx op0 = gen_reg_rtx (V4SFmode);
1990 :
1991 2 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
1992 8 :
1993 2 : emit_insn (gen_floorv4sf2 (op0, op1));
1994 8 :
1995 10 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
1996 10 : DONE;
1997 : })
1998 :
1999 : (define_expand "lfloorv2sfv2si2"
2000 : [(match_operand:V2SI 0 "register_operand")
2001 : (match_operand:V2SF 1 "nonimmediate_operand")]
2002 : "TARGET_SSE4_1 && !flag_trapping_math
2003 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
2004 1 : {
2005 1 : rtx op1 = gen_reg_rtx (V4SFmode);
2006 1 : rtx op0 = gen_reg_rtx (V4SImode);
2007 :
2008 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
2009 122 :
2010 1 : emit_insn (gen_lfloorv4sfv4si2 (op0, op1));
2011 122 :
2012 123 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
2013 123 : DONE;
2014 : })
2015 :
2016 : (define_expand "btruncv2sf2"
2017 : [(match_operand:V2SF 0 "register_operand")
2018 : (match_operand:V2SF 1 "nonimmediate_operand")]
2019 : "TARGET_SSE4_1 && !flag_trapping_math
2020 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
2021 1 : {
2022 1 : rtx op1 = gen_reg_rtx (V4SFmode);
2023 1 : rtx op0 = gen_reg_rtx (V4SFmode);
2024 :
2025 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
2026 0 :
2027 1 : emit_insn (gen_btruncv4sf2 (op0, op1));
2028 0 :
2029 1 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
2030 1 : DONE;
2031 : })
2032 :
2033 : (define_expand "roundv2sf2"
2034 : [(match_operand:V2SF 0 "register_operand")
2035 : (match_operand:V2SF 1 "nonimmediate_operand")]
2036 : "TARGET_SSE4_1 && !flag_trapping_math
2037 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
2038 1 : {
2039 1 : rtx op1 = gen_reg_rtx (V4SFmode);
2040 1 : rtx op0 = gen_reg_rtx (V4SFmode);
2041 :
2042 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
2043 4 :
2044 1 : emit_insn (gen_roundv4sf2 (op0, op1));
2045 4 :
2046 5 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
2047 5 : DONE;
2048 : })
2049 :
2050 : (define_expand "lroundv2sfv2si2"
2051 : [(match_operand:V2SI 0 "register_operand")
2052 : (match_operand:V2SF 1 "nonimmediate_operand")]
2053 : "TARGET_SSE4_1 && !flag_trapping_math
2054 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
2055 1 : {
2056 1 : rtx op1 = gen_reg_rtx (V4SFmode);
2057 1 : rtx op0 = gen_reg_rtx (V4SImode);
2058 :
2059 1 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
2060 5 :
2061 1 : emit_insn (gen_lroundv4sfv4si2 (op0, op1));
2062 5 :
2063 6 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
2064 1 : DONE;
2065 : })
2066 :
2067 5 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2068 : ;;
2069 : ;; Parallel half-precision floating point arithmetic
2070 : ;;
2071 0 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2072 0 :
2073 : (define_mode_iterator VHF_32_64 [V2HF (V4HF "TARGET_MMX_WITH_SSE")])
2074 :
2075 9 : (define_mode_iterator VBF_32_64 [V2BF (V4BF "TARGET_MMX_WITH_SSE")])
2076 :
2077 9 : (define_expand "divv4hf3"
2078 9 : [(set (match_operand:V4HF 0 "register_operand")
2079 9 : (div:V4HF
2080 0 : (match_operand:V4HF 1 "nonimmediate_operand")
2081 : (match_operand:V4HF 2 "register_operand")))]
2082 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math
2083 : && TARGET_MMX_WITH_SSE"
2084 8 : {
2085 8 : rtx op2 = gen_reg_rtx (V8HFmode);
2086 8 : rtx op1 = gen_reg_rtx (V8HFmode);
2087 8 : rtx op0 = gen_reg_rtx (V8HFmode);
2088 0 :
2089 8 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
2090 8 : rtx tmp = gen_rtx_VEC_CONCAT (V8HFmode, operands[2],
2091 : force_reg (V4HFmode, CONST1_RTX (V4HFmode)));
2092 12 : emit_insn (gen_rtx_SET (op2, tmp));
2093 8 : emit_insn (gen_divv8hf3 (op0, op1, op2));
2094 12 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
2095 12 : DONE;
2096 4 : })
2097 :
2098 : (define_mode_attr mov_to_sse_suffix
2099 : [(V2HF "d") (V4HF "q") (V2HI "d") (V4HI "q")])
2100 :
2101 : (define_mode_attr mmxxmmmode
2102 : [(V2HF "V8HF") (V2HI "V8HI") (V2BF "V8BF")
2103 : (V4HF "V8HF") (V4HI "V8HI") (V4BF "V8BF")
2104 : (V2SF "V4SF") (V2SI "V4SI")])
2105 :
2106 : (define_mode_attr mmxxmmmodelower
2107 : [(V2HF "v8hf") (V2HI "v8hi") (V2BF "v8bf")
2108 : (V4HF "v8hf") (V4HI "v8hi") (V4BF "v8bf")
2109 12 : (V2SF "v4sf") (V2SI "v4si")])
2110 :
2111 12 : (define_expand "movd_<mode>_to_sse"
2112 12 : [(set (match_operand:<mmxxmmmode> 0 "register_operand")
2113 12 : (vec_merge:<mmxxmmmode>
2114 : (vec_duplicate:<mmxxmmmode>
2115 : (match_operand:V2FI_32 1 "nonimmediate_operand"))
2116 : (match_dup 2)
2117 : (const_int 3)))]
2118 : "TARGET_SSE"
2119 126 : {
2120 126 : if (!flag_trapping_math)
2121 : {
2122 13 : rtx op1 = force_reg (<MODE>mode, operands[1]);
2123 13 : emit_move_insn (operands[0],
2124 : lowpart_subreg (<mmxxmmmode>mode, op1, <MODE>mode));
2125 13 : DONE;
2126 : }
2127 113 : operands[2] = CONST0_RTX (<mmxxmmmode>mode);
2128 : })
2129 :
2130 : (define_expand "movd_<mode>_to_sse_reg"
2131 : [(set (match_operand:<mmxxmmmode> 0 "register_operand")
2132 113 : (vec_merge:<mmxxmmmode>
2133 : (vec_duplicate:<mmxxmmmode>
2134 : (match_operand:V2FI_32 1 "nonimmediate_operand"))
2135 : (match_operand:<mmxxmmmode> 2 "register_operand")
2136 113 : (const_int 3)))]
2137 : "TARGET_SSE")
2138 :
2139 : (define_expand "<insn><mode>3"
2140 : [(set (match_operand:VHF_32_64 0 "register_operand")
2141 8 : (plusminusmult:VHF_32_64
2142 : (match_operand:VHF_32_64 1 "nonimmediate_operand")
2143 8 : (match_operand:VHF_32_64 2 "nonimmediate_operand")))]
2144 8 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2145 37 : {
2146 41 : rtx op2 = gen_reg_rtx (V8HFmode);
2147 37 : rtx op1 = gen_reg_rtx (V8HFmode);
2148 37 : rtx op0 = gen_reg_rtx (V8HFmode);
2149 :
2150 37 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op2, operands[2]));
2151 37 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2152 37 : emit_insn (gen_<insn>v8hf3 (op0, op1, op2));
2153 0 :
2154 37 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2155 37 : DONE;
2156 4 : })
2157 :
2158 4 : ;; VDIVNEPBF16 does not generate floating point exceptions.
2159 4 : (define_expand "<insn><mode>3"
2160 4 : [(set (match_operand:VBF_32_64 0 "register_operand")
2161 : (plusminusmultdiv:VBF_32_64
2162 : (match_operand:VBF_32_64 1 "nonimmediate_operand")
2163 : (match_operand:VBF_32_64 2 "nonimmediate_operand")))]
2164 : "TARGET_AVX10_2"
2165 10 : {
2166 20 : rtx op0 = gen_reg_rtx (V8BFmode);
2167 10 : rtx op1 = lowpart_subreg (V8BFmode,
2168 : force_reg (<MODE>mode, operands[1]), <MODE>mode);
2169 10 : rtx op2 = lowpart_subreg (V8BFmode,
2170 : force_reg (<MODE>mode, operands[2]), <MODE>mode);
2171 7 :
2172 17 : emit_insn (gen_<insn>v8bf3 (op0, op1, op2));
2173 7 :
2174 10 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2175 10 : DONE;
2176 : })
2177 :
2178 : (define_expand "divv2hf3"
2179 : [(set (match_operand:V2HF 0 "register_operand")
2180 : (div:V2HF
2181 : (match_operand:V2HF 1 "nonimmediate_operand")
2182 : (match_operand:V2HF 2 "nonimmediate_operand")))]
2183 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2184 5 : {
2185 10 : rtx op2 = gen_reg_rtx (V8HFmode);
2186 5 : rtx op1 = gen_reg_rtx (V8HFmode);
2187 5 : rtx op0 = gen_reg_rtx (V8HFmode);
2188 :
2189 13 : emit_insn (gen_movd_v2hf_to_sse_reg (op2, operands[2],
2190 : force_reg (V8HFmode, CONST1_RTX (V8HFmode))));
2191 13 : emit_insn (gen_movd_v2hf_to_sse (op1, operands[1]));
2192 18 : emit_insn (gen_divv8hf3 (op0, op1, op2));
2193 11 :
2194 5 : emit_move_insn (operands[0], lowpart_subreg (V2HFmode, op0, V8HFmode));
2195 5 : DONE;
2196 : })
2197 :
2198 : (define_expand "<code><mode>3"
2199 : [(set (match_operand:VHF_32_64 0 "register_operand")
2200 : (smaxmin:VHF_32_64
2201 : (match_operand:VHF_32_64 1 "nonimmediate_operand")
2202 : (match_operand:VHF_32_64 2 "nonimmediate_operand")))]
2203 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2204 4 : {
2205 4 : rtx op2 = gen_reg_rtx (V8HFmode);
2206 4 : rtx op1 = gen_reg_rtx (V8HFmode);
2207 4 : rtx op0 = gen_reg_rtx (V8HFmode);
2208 :
2209 5 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op2, operands[2]));
2210 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2211 1 :
2212 5 : emit_insn (gen_<code>v8hf3 (op0, op1, op2));
2213 1 :
2214 4 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2215 4 : DONE;
2216 : })
2217 :
2218 : (define_expand "<code><mode>3"
2219 : [(set (match_operand:VBF_32_64 0 "register_operand")
2220 : (smaxmin:VBF_32_64
2221 : (match_operand:VBF_32_64 1 "nonimmediate_operand")
2222 : (match_operand:VBF_32_64 2 "nonimmediate_operand")))]
2223 : "TARGET_AVX10_2"
2224 4 : {
2225 6 : rtx op0 = gen_reg_rtx (V8BFmode);
2226 4 : rtx op1 = lowpart_subreg (V8BFmode,
2227 : force_reg (<MODE>mode, operands[1]), <MODE>mode);
2228 4 : rtx op2 = lowpart_subreg (V8BFmode,
2229 4 : force_reg (<MODE>mode, operands[2]), <MODE>mode);
2230 :
2231 6 : emit_insn (gen_<code>v8bf3 (op0, op1, op2));
2232 4 :
2233 8 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2234 4 : DONE;
2235 : })
2236 :
2237 : (define_expand "sqrt<mode>2"
2238 : [(set (match_operand:VHF_32_64 0 "register_operand")
2239 : (sqrt:VHF_32_64
2240 : (match_operand:VHF_32_64 1 "nonimmediate_operand")))]
2241 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2242 2 : {
2243 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2244 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2245 :
2246 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2247 2 : emit_insn (gen_sqrtv8hf2 (op0, op1));
2248 4 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2249 2 : DONE;
2250 2 : })
2251 2 :
2252 2 : (define_expand "sqrt<mode>2"
2253 : [(set (match_operand:VBF_32_64 0 "register_operand")
2254 : (sqrt:VBF_32_64 (match_operand:VBF_32_64 1 "vector_operand")))]
2255 : "TARGET_AVX10_2"
2256 0 : {
2257 0 : rtx op0 = gen_reg_rtx (V8BFmode);
2258 0 : rtx op1 = lowpart_subreg (V8BFmode,
2259 : force_reg (<MODE>mode, operands[1]), <MODE>mode);
2260 :
2261 0 : emit_insn (gen_sqrtv8bf2 (op0, op1));
2262 2 :
2263 0 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2264 2 : DONE;
2265 2 : })
2266 2 :
2267 : (define_mode_iterator VHBF_32_64
2268 89 : [V2BF (V4BF "TARGET_MMX_WITH_SSE")
2269 : V2HF (V4HF "TARGET_MMX_WITH_SSE")])
2270 :
2271 : (define_expand "<code><mode>2"
2272 1460 : [(set (match_operand:VHBF_32_64 0 "register_operand")
2273 : (absneg:VHBF_32_64
2274 : (match_operand:VHBF_32_64 1 "register_operand")))]
2275 224 : "TARGET_SSE"
2276 11 : "ix86_expand_fp_absneg_operator (<CODE>, <MODE>mode, operands); DONE;")
2277 3 :
2278 1 : (define_insn_and_split "*mmx_<code><mode>"
2279 3 : [(set (match_operand:VHBF_32_64 0 "register_operand" "=x,x,x")
2280 4 : (absneg:VHBF_32_64
2281 4 : (match_operand:VHBF_32_64 1 "register_operand" "0,x,x")))
2282 : (use (unspec:VHBF_32_64
2283 : [(match_operand:VHBF_32_64 2 "register_operand" "x,0,x")]
2284 : <absneg_mask>))]
2285 14 : "TARGET_SSE"
2286 : "#"
2287 14 : "&& reload_completed"
2288 4 : [(set (match_dup 0)
2289 9 : (<absneg_op>:<MODE> (match_dup 1) (match_dup 2)))]
2290 18 : {
2291 153 : if (!TARGET_AVX && operands_match_p (operands[0], operands[2]))
2292 19 : std::swap (operands[1], operands[2]);
2293 : }
2294 126 : [(set_attr "isa" "noavx,noavx,avx")])
2295 :
2296 14 : (define_insn_and_split "*mmx_nabs<mode>2"
2297 : [(set (match_operand:VHBF_32_64 0 "register_operand" "=x,x,x")
2298 : (neg:VHBF_32_64
2299 : (abs:VHBF_32_64
2300 14 : (match_operand:VHBF_32_64 1 "register_operand" "0,x,x"))))
2301 : (use (unspec:VHBF_32_64
2302 : [(match_operand:VHBF_32_64 2 "register_operand" "x,0,x")]
2303 : UNSPEC_NEG_MASK))]
2304 : "TARGET_SSE"
2305 15 : "#"
2306 4 : "&& reload_completed"
2307 15 : [(set (match_dup 0)
2308 19 : (ior:<MODE> (match_dup 1) (match_dup 2)))])
2309 4 :
2310 0 : ;; Likewise for -(-fabs (x)) from *mmx_nabs<mode>2.
2311 : (define_insn_and_split "*mmx_abs<mode>2_neg_mask"
2312 : [(set (match_operand:VHBF_32_64 0 "register_operand")
2313 : (abs:VHBF_32_64 (match_operand:VHBF_32_64 1 "register_operand")))
2314 0 : (use (unspec:VHBF_32_64 [(match_operand:VHBF_32_64 2)] UNSPEC_NEG_MASK))]
2315 6 : "TARGET_SSE && ix86_pre_reload_split ()"
2316 : "#"
2317 2 : "&& 1"
2318 : [(const_int 0)]
2319 20 : "ix86_expand_fp_absneg_operator (ABS, <MODE>mode, operands); DONE;")
2320 3 :
2321 19 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2322 20 : ;;
2323 20 : ;; Parallel half-precision floating point comparisons
2324 2 : ;;
2325 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2326 :
2327 : (define_expand "vec_cmpv4hfqi"
2328 : [(set (match_operand:QI 0 "register_operand")
2329 : (match_operator:QI 1 ""
2330 25 : [(match_operand:V4HF 2 "nonimmediate_operand")
2331 : (match_operand:V4HF 3 "nonimmediate_operand")]))]
2332 25 : "TARGET_MMX_WITH_SSE && TARGET_AVX512FP16 && TARGET_AVX512VL
2333 25 : && ix86_partial_vec_fp_math"
2334 42 : {
2335 17 : rtx ops[4];
2336 17 : ops[3] = gen_reg_rtx (V8HFmode);
2337 17 : ops[2] = gen_reg_rtx (V8HFmode);
2338 :
2339 17 : emit_insn (gen_movq_v4hf_to_sse (ops[3], operands[3]));
2340 17 : emit_insn (gen_movq_v4hf_to_sse (ops[2], operands[2]));
2341 17 : emit_insn (gen_vec_cmpv8hfqi (operands[0], operands[1], ops[2], ops[3]));
2342 17 : DONE;
2343 : })
2344 :
2345 : (define_expand "vcond_mask_<mode>v4hi"
2346 : [(set (match_operand:V4F_64 0 "register_operand")
2347 : (vec_merge:V4F_64
2348 : (match_operand:V4F_64 1 "vector_or_const_vector_operand")
2349 : (match_operand:V4F_64 2 "vector_or_const_vector_operand")
2350 : (match_operand:V4HI 3 "register_operand")))]
2351 : "TARGET_MMX_WITH_SSE && TARGET_SSE4_1"
2352 18 : {
2353 18 : ix86_expand_sse_movcc (operands[0], operands[3],
2354 : operands[1], operands[2]);
2355 18 : DONE;
2356 0 : })
2357 :
2358 0 : (define_expand "vcond_mask_<mode>qi"
2359 0 : [(set (match_operand:V4FI_64 0 "register_operand")
2360 0 : (vec_merge:V4FI_64
2361 : (match_operand:V4FI_64 1 "register_operand")
2362 : (match_operand:V4FI_64 2 "register_operand")
2363 : (match_operand:QI 3 "register_operand")))]
2364 : "TARGET_MMX_WITH_SSE && TARGET_AVX512BW && TARGET_AVX512VL"
2365 22 : {
2366 22 : rtx op0 = gen_reg_rtx (<mmxxmmmode>mode);
2367 22 : operands[1] = lowpart_subreg (<mmxxmmmode>mode, operands[1], <MODE>mode);
2368 22 : operands[2] = lowpart_subreg (<mmxxmmmode>mode, operands[2], <MODE>mode);
2369 40 : emit_insn (gen_vcond_mask_<mmxxmmmodelower>qi (op0, operands[1],
2370 : operands[2], operands[3]));
2371 40 : emit_move_insn (operands[0],
2372 18 : lowpart_subreg (<MODE>mode, op0, <mmxxmmmode>mode));
2373 40 : DONE;
2374 : })
2375 :
2376 : (define_expand "vcond_mask_<mode>qi"
2377 : [(set (match_operand:V2FI 0 "register_operand")
2378 : (vec_merge:V2FI
2379 : (match_operand:V2FI 1 "register_operand")
2380 : (match_operand:V2FI 2 "register_operand")
2381 : (match_operand:QI 3 "register_operand")))]
2382 : "TARGET_MMX_WITH_SSE && TARGET_AVX512VL"
2383 1 : {
2384 1 : rtx op0 = gen_reg_rtx (<mmxxmmmode>mode);
2385 1 : operands[1] = lowpart_subreg (<mmxxmmmode>mode, operands[1], <MODE>mode);
2386 1 : operands[2] = lowpart_subreg (<mmxxmmmode>mode, operands[2], <MODE>mode);
2387 19 : emit_insn (gen_vcond_mask_<mmxxmmmodelower>qi (op0, operands[1],
2388 : operands[2], operands[3]));
2389 19 : emit_move_insn (operands[0],
2390 18 : lowpart_subreg (<MODE>mode, op0, <mmxxmmmode>mode));
2391 19 : DONE;
2392 : })
2393 :
2394 : (define_expand "vec_cmpv2hfqi"
2395 : [(set (match_operand:QI 0 "register_operand")
2396 : (match_operator:QI 1 ""
2397 : [(match_operand:V2HF 2 "nonimmediate_operand")
2398 : (match_operand:V2HF 3 "nonimmediate_operand")]))]
2399 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2400 : && ix86_partial_vec_fp_math"
2401 17 : {
2402 17 : rtx ops[4];
2403 17 : ops[3] = gen_reg_rtx (V8HFmode);
2404 17 : ops[2] = gen_reg_rtx (V8HFmode);
2405 22 :
2406 17 : emit_insn (gen_movd_v2hf_to_sse (ops[3], operands[3]));
2407 39 : emit_insn (gen_movd_v2hf_to_sse (ops[2], operands[2]));
2408 39 : emit_insn (gen_vec_cmpv8hfqi (operands[0], operands[1], ops[2], ops[3]));
2409 39 : DONE;
2410 : })
2411 :
2412 : (define_expand "vcond_mask_<mode>v2hi"
2413 : [(set (match_operand:V2F_32 0 "register_operand")
2414 : (vec_merge:V2F_32
2415 : (match_operand:V2F_32 1 "vector_or_const_vector_operand")
2416 : (match_operand:V2F_32 2 "vector_or_const_vector_operand")
2417 : (match_operand:V2HI 3 "register_operand")))]
2418 : "TARGET_SSE4_1"
2419 18 : {
2420 18 : ix86_expand_sse_movcc (operands[0], operands[3],
2421 : operands[1], operands[2]);
2422 18 : DONE;
2423 5 : })
2424 :
2425 5 : (define_expand "vcond_mask_<mode>qi"
2426 5 : [(set (match_operand:V2FI_32 0 "register_operand")
2427 5 : (vec_merge:V2FI_32
2428 : (match_operand:V2FI_32 1 "register_operand")
2429 : (match_operand:V2FI_32 2 "register_operand")
2430 : (match_operand:QI 3 "register_operand")))]
2431 : "TARGET_AVX512BW && TARGET_AVX512VL"
2432 22 : {
2433 22 : rtx op0 = gen_reg_rtx (<mmxxmmmode>mode);
2434 22 : operands[1] = lowpart_subreg (<mmxxmmmode>mode, operands[1], <MODE>mode);
2435 22 : operands[2] = lowpart_subreg (<mmxxmmmode>mode, operands[2], <MODE>mode);
2436 28 : emit_insn (gen_vcond_mask_<mmxxmmmodelower>qi (op0, operands[1],
2437 : operands[2], operands[3]));
2438 28 : emit_move_insn (operands[0],
2439 6 : lowpart_subreg (<MODE>mode, op0, <mmxxmmmode>mode));
2440 28 : DONE;
2441 : })
2442 :
2443 : ;;This instruction does not generate floating point exceptions
2444 : (define_expand "vec_cmp<mode>qi"
2445 : [(set (match_operand:QI 0 "register_operand")
2446 : (match_operator:QI 1 ""
2447 : [(match_operand:VBF_32_64 2 "register_operand")
2448 : (match_operand:VBF_32_64 3 "nonimmediate_operand")]))]
2449 : "TARGET_AVX10_2"
2450 10 : {
2451 10 : rtx op2 = lowpart_subreg (V8BFmode,
2452 : force_reg (<MODE>mode, operands[2]), <MODE>mode);
2453 10 : rtx op3 = lowpart_subreg (V8BFmode,
2454 3 : force_reg (<MODE>mode, operands[3]), <MODE>mode);
2455 :
2456 13 : emit_insn (gen_vec_cmpv8bfqi (operands[0], operands[1], op2, op3));
2457 13 : DONE;
2458 3 : })
2459 :
2460 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2461 : ;;
2462 : ;; Parallel half-precision floating point rounding operations.
2463 : ;;
2464 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2465 :
2466 : (define_expand "btrunc<mode>2"
2467 : [(match_operand:VHF_32_64 0 "register_operand")
2468 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2469 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2470 : && ix86_partial_vec_fp_math
2471 1 : && !flag_trapping_math"
2472 2 : {
2473 3 : rtx op1 = gen_reg_rtx (V8HFmode);
2474 3 : rtx op0 = gen_reg_rtx (V8HFmode);
2475 1 :
2476 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2477 2 : emit_insn (gen_btruncv8hf2 (op0, op1));
2478 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2479 :
2480 2 : DONE;
2481 : })
2482 :
2483 : (define_expand "nearbyint<mode>2"
2484 : [(match_operand:VHF_32_64 0 "register_operand")
2485 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2486 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2487 : && ix86_partial_vec_fp_math"
2488 2 : {
2489 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2490 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2491 :
2492 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2493 3 : emit_insn (gen_nearbyintv8hf2 (op0, op1));
2494 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2495 1 :
2496 3 : DONE;
2497 1 : })
2498 :
2499 : (define_expand "rint<mode>2"
2500 : [(match_operand:VHF_32_64 0 "register_operand")
2501 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2502 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2503 : && ix86_partial_vec_fp_math"
2504 2 : {
2505 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2506 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2507 :
2508 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2509 3 : emit_insn (gen_rintv8hf2 (op0, op1));
2510 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2511 1 :
2512 3 : DONE;
2513 1 : })
2514 :
2515 : (define_expand "lrint<mode><mmxintvecmodelower>2"
2516 : [(match_operand:<mmxintvecmode> 0 "register_operand")
2517 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2518 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2519 : && ix86_partial_vec_fp_math"
2520 0 : {
2521 0 : rtx op1 = gen_reg_rtx (V8HFmode);
2522 0 : rtx op0 = gen_reg_rtx (V8HFmode);
2523 :
2524 0 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2525 1 : emit_insn (gen_lrintv8hfv8hi2 (op0, op1));
2526 0 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2527 1 :
2528 1 : DONE;
2529 1 : })
2530 :
2531 : (define_expand "floor<mode>2"
2532 : [(match_operand:VHF_32_64 0 "register_operand")
2533 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2534 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2535 : && ix86_partial_vec_fp_math
2536 : && !flag_trapping_math"
2537 2 : {
2538 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2539 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2540 :
2541 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2542 2 : emit_insn (gen_floorv8hf2 (op0, op1));
2543 4 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2544 2 :
2545 4 : DONE;
2546 : })
2547 :
2548 : (define_expand "lfloor<mode><mmxintvecmodelower>2"
2549 : [(match_operand:<mmxintvecmode> 0 "register_operand")
2550 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2551 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2552 : && ix86_partial_vec_fp_math
2553 : && !flag_trapping_math"
2554 0 : {
2555 0 : rtx op1 = gen_reg_rtx (V8HFmode);
2556 0 : rtx op0 = gen_reg_rtx (V8HFmode);
2557 :
2558 0 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2559 0 : emit_insn (gen_lfloorv8hfv8hi2 (op0, op1));
2560 0 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2561 0 :
2562 0 : DONE;
2563 : })
2564 :
2565 : (define_expand "ceil<mode>2"
2566 : [(match_operand:VHF_32_64 0 "register_operand")
2567 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2568 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2569 : && ix86_partial_vec_fp_math
2570 : && !flag_trapping_math"
2571 2 : {
2572 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2573 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2574 :
2575 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2576 2 : emit_insn (gen_ceilv8hf2 (op0, op1));
2577 4 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2578 2 :
2579 4 : DONE;
2580 : })
2581 :
2582 : (define_expand "lceil<mode><mmxintvecmodelower>2"
2583 : [(match_operand:<mmxintvecmode> 0 "register_operand")
2584 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2585 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2586 : && ix86_partial_vec_fp_math
2587 : && !flag_trapping_math"
2588 0 : {
2589 0 : rtx op1 = gen_reg_rtx (V8HFmode);
2590 0 : rtx op0 = gen_reg_rtx (V8HFmode);
2591 :
2592 0 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2593 0 : emit_insn (gen_lceilv8hfv8hi2 (op0, op1));
2594 0 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2595 0 :
2596 0 : DONE;
2597 : })
2598 :
2599 : (define_expand "round<mode>2"
2600 : [(match_operand:VHF_32_64 0 "register_operand")
2601 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2602 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2603 : && ix86_partial_vec_fp_math
2604 : && !flag_trapping_math"
2605 2 : {
2606 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2607 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2608 :
2609 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2610 2 : emit_insn (gen_roundv8hf2 (op0, op1));
2611 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2612 0 :
2613 2 : DONE;
2614 : })
2615 :
2616 : (define_expand "lround<mode><mmxintvecmodelower>2"
2617 : [(match_operand:<mmxintvecmode> 0 "register_operand")
2618 : (match_operand:VHF_32_64 1 "nonimmediate_operand")]
2619 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2620 : && ix86_partial_vec_fp_math
2621 : && !flag_trapping_math"
2622 0 : {
2623 0 : rtx op1 = gen_reg_rtx (V8HFmode);
2624 0 : rtx op0 = gen_reg_rtx (V8HFmode);
2625 :
2626 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2627 0 : emit_insn (gen_lroundv8hfv8hi2 (op0, op1));
2628 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2629 2 :
2630 2 : DONE;
2631 : })
2632 :
2633 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2634 : ;;
2635 : ;; Parallel half-precision floating point logical operations
2636 : ;;
2637 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2638 :
2639 : (define_insn "*mmx_andnot<mode>3"
2640 : [(set (match_operand:VHBF_32_64 0 "register_operand" "=x,x")
2641 : (and:VHBF_32_64
2642 : (not:VHBF_32_64
2643 0 : (match_operand:VHBF_32_64 1 "register_operand" "0,x"))
2644 : (match_operand:VHBF_32_64 2 "register_operand" "x,x")))]
2645 0 : "TARGET_SSE"
2646 0 : "@
2647 0 : andnps\t{%2, %0|%0, %2}
2648 : vandnps\t{%2, %1, %0|%0, %1, %2}"
2649 : [(set_attr "isa" "noavx,avx")
2650 : (set_attr "type" "sselog")
2651 : (set_attr "prefix" "orig,vex")
2652 : (set_attr "mode" "V4SF")])
2653 :
2654 : (define_insn "<code><mode>3"
2655 : [(set (match_operand:VHBF_32_64 0 "register_operand" "=x,x")
2656 : (any_logic:VHBF_32_64
2657 : (match_operand:VHBF_32_64 1 "register_operand" "%0,x")
2658 : (match_operand:VHBF_32_64 2 "register_operand" " x,x")))]
2659 69 : "TARGET_SSE"
2660 : "@
2661 : <logic>ps\t{%2, %0|%0, %2}
2662 : v<logic>ps\t{%2, %1, %0|%0, %1, %2}"
2663 : [(set_attr "isa" "noavx,avx")
2664 : (set_attr "type" "sselog,sselog")
2665 : (set_attr "prefix" "orig,vex")
2666 : (set_attr "mode" "V4SF")])
2667 :
2668 : (define_expand "copysign<mode>3"
2669 : [(set (match_dup 4)
2670 : (and:VHBF_32_64
2671 : (not:VHBF_32_64 (match_dup 3))
2672 : (match_operand:VHBF_32_64 1 "register_operand")))
2673 : (set (match_dup 5)
2674 : (and:VHBF_32_64 (match_dup 3)
2675 : (match_operand:VHBF_32_64 2 "register_operand")))
2676 : (set (match_operand:VHBF_32_64 0 "register_operand")
2677 : (ior:VHBF_32_64 (match_dup 4) (match_dup 5)))]
2678 : "TARGET_SSE"
2679 2 : {
2680 2 : operands[3] = ix86_build_signbit_mask (<MODE>mode, true, false);
2681 :
2682 2 : operands[4] = gen_reg_rtx (<MODE>mode);
2683 2 : operands[5] = gen_reg_rtx (<MODE>mode);
2684 : })
2685 :
2686 : (define_expand "xorsign<mode>3"
2687 : [(set (match_dup 4)
2688 2 : (and:VHBF_32_64 (match_dup 3)
2689 : (match_operand:VHBF_32_64 2 "register_operand")))
2690 : (set (match_operand:VHBF_32_64 0 "register_operand")
2691 : (xor:VHBF_32_64 (match_dup 4)
2692 : (match_operand:VHBF_32_64 1 "register_operand")))]
2693 : "TARGET_SSE"
2694 2 : {
2695 4 : operands[3] = ix86_build_signbit_mask (<MODE>mode, true, false);
2696 :
2697 2 : operands[4] = gen_reg_rtx (<MODE>mode);
2698 : })
2699 2 :
2700 : (define_expand "signbit<mode>2"
2701 2 : [(set (match_operand:<mmxintvecmode> 0 "register_operand")
2702 2 : (lshiftrt:<mmxintvecmode>
2703 2 : (subreg:<mmxintvecmode>
2704 : (match_operand:VHBF_32_64 1 "register_operand") 0)
2705 : (match_dup 2)))]
2706 : "TARGET_SSE2"
2707 2 : {
2708 0 : operands[1] = force_reg (<MODE>mode, operands[1]);
2709 0 : operands[2] = GEN_INT (GET_MODE_UNIT_BITSIZE (<MODE>mode)-1);
2710 : })
2711 :
2712 2 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2713 : ;;
2714 2 : ;; Parallel half-precision FMA multiply/accumulate instructions.
2715 2 : ;;
2716 2 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2717 :
2718 0 : (define_expand "fma<mode>4"
2719 : [(set (match_operand:VHF_32_64 0 "register_operand")
2720 : (fma:VHF_32_64
2721 : (match_operand:VHF_32_64 1 "nonimmediate_operand")
2722 : (match_operand:VHF_32_64 2 "nonimmediate_operand")
2723 5 : (match_operand:VHF_32_64 3 "nonimmediate_operand")))]
2724 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2725 8 : {
2726 6 : rtx op3 = gen_reg_rtx (V8HFmode);
2727 6 : rtx op2 = gen_reg_rtx (V8HFmode);
2728 3 : rtx op1 = gen_reg_rtx (V8HFmode);
2729 3 : rtx op0 = gen_reg_rtx (V8HFmode);
2730 :
2731 3 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op3, operands[3]));
2732 3 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op2, operands[2]));
2733 3 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2734 :
2735 3 : emit_insn (gen_fmav8hf4 (op0, op1, op2, op3));
2736 :
2737 3 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2738 3 : DONE;
2739 : })
2740 :
2741 : (define_expand "fms<mode>4"
2742 : [(set (match_operand:VHF_32_64 0 "register_operand")
2743 : (fma:VHF_32_64
2744 : (match_operand:VHF_32_64 1 "nonimmediate_operand")
2745 : (match_operand:VHF_32_64 2 "nonimmediate_operand")
2746 : (neg:VHF_32_64
2747 : (match_operand:VHF_32_64 3 "nonimmediate_operand"))))]
2748 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2749 2 : {
2750 2 : rtx op3 = gen_reg_rtx (V8HFmode);
2751 2 : rtx op2 = gen_reg_rtx (V8HFmode);
2752 4 : rtx op1 = gen_reg_rtx (V8HFmode);
2753 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2754 2 :
2755 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op3, operands[3]));
2756 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op2, operands[2]));
2757 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2758 :
2759 2 : emit_insn (gen_fmsv8hf4 (op0, op1, op2, op3));
2760 :
2761 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2762 2 : DONE;
2763 : })
2764 :
2765 : (define_expand "fnma<mode>4"
2766 : [(set (match_operand:VHF_32_64 0 "register_operand")
2767 : (fma:VHF_32_64
2768 : (neg:VHF_32_64
2769 : (match_operand:VHF_32_64 1 "nonimmediate_operand"))
2770 : (match_operand:VHF_32_64 2 "nonimmediate_operand")
2771 : (match_operand:VHF_32_64 3 "nonimmediate_operand")))]
2772 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2773 2 : {
2774 2 : rtx op3 = gen_reg_rtx (V8HFmode);
2775 2 : rtx op2 = gen_reg_rtx (V8HFmode);
2776 4 : rtx op1 = gen_reg_rtx (V8HFmode);
2777 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2778 2 :
2779 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op3, operands[3]));
2780 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op2, operands[2]));
2781 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2782 :
2783 2 : emit_insn (gen_fnmav8hf4 (op0, op1, op2, op3));
2784 :
2785 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2786 2 : DONE;
2787 : })
2788 :
2789 : (define_expand "fnms<mode>4"
2790 : [(set (match_operand:VHF_32_64 0 "register_operand" "=v,v,x")
2791 : (fma:VHF_32_64
2792 : (neg:VHF_32_64
2793 : (match_operand:VHF_32_64 1 "nonimmediate_operand"))
2794 : (match_operand:VHF_32_64 2 "nonimmediate_operand")
2795 : (neg:VHF_32_64
2796 : (match_operand:VHF_32_64 3 "nonimmediate_operand"))))]
2797 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
2798 2 : {
2799 2 : rtx op3 = gen_reg_rtx (V8HFmode);
2800 4 : rtx op2 = gen_reg_rtx (V8HFmode);
2801 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2802 4 : rtx op0 = gen_reg_rtx (V8HFmode);
2803 2 :
2804 4 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op3, operands[3]));
2805 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op2, operands[2]));
2806 2 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
2807 :
2808 2 : emit_insn (gen_fnmsv8hf4 (op0, op1, op2, op3));
2809 :
2810 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8HFmode));
2811 2 : DONE;
2812 : })
2813 :
2814 : (define_expand "vec_fmaddsubv4hf4"
2815 : [(match_operand:V4HF 0 "register_operand")
2816 : (match_operand:V4HF 1 "nonimmediate_operand")
2817 : (match_operand:V4HF 2 "nonimmediate_operand")
2818 : (match_operand:V4HF 3 "nonimmediate_operand")]
2819 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2820 : && TARGET_MMX_WITH_SSE
2821 : && ix86_partial_vec_fp_math"
2822 1 : {
2823 1 : rtx op3 = gen_reg_rtx (V8HFmode);
2824 1 : rtx op2 = gen_reg_rtx (V8HFmode);
2825 1 : rtx op1 = gen_reg_rtx (V8HFmode);
2826 3 : rtx op0 = gen_reg_rtx (V8HFmode);
2827 :
2828 3 : emit_insn (gen_movq_v4hf_to_sse (op3, operands[3]));
2829 3 : emit_insn (gen_movq_v4hf_to_sse (op2, operands[2]));
2830 3 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
2831 :
2832 1 : emit_insn (gen_vec_fmaddsubv8hf4 (op0, op1, op2, op3));
2833 :
2834 1 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
2835 1 : DONE;
2836 : })
2837 :
2838 : (define_expand "vec_fmsubaddv4hf4"
2839 : [(match_operand:V4HF 0 "register_operand")
2840 : (match_operand:V4HF 1 "nonimmediate_operand")
2841 : (match_operand:V4HF 2 "nonimmediate_operand")
2842 : (match_operand:V4HF 3 "nonimmediate_operand")]
2843 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2844 : && ix86_partial_vec_fp_math
2845 : && TARGET_MMX_WITH_SSE"
2846 1 : {
2847 1 : rtx op3 = gen_reg_rtx (V8HFmode);
2848 1 : rtx op2 = gen_reg_rtx (V8HFmode);
2849 2 : rtx op1 = gen_reg_rtx (V8HFmode);
2850 1 : rtx op0 = gen_reg_rtx (V8HFmode);
2851 1 :
2852 2 : emit_insn (gen_movq_v4hf_to_sse (op3, operands[3]));
2853 2 : emit_insn (gen_movq_v4hf_to_sse (op2, operands[2]));
2854 1 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
2855 :
2856 1 : emit_insn (gen_vec_fmsubaddv8hf4 (op0, op1, op2, op3));
2857 :
2858 1 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
2859 1 : DONE;
2860 : })
2861 :
2862 : (define_expand "fma<mode>4"
2863 : [(set (match_operand:VBF_32_64 0 "register_operand")
2864 : (fma:VBF_32_64
2865 : (match_operand:VBF_32_64 1 "nonimmediate_operand")
2866 : (match_operand:VBF_32_64 2 "nonimmediate_operand")
2867 : (match_operand:VBF_32_64 3 "nonimmediate_operand")))]
2868 : "TARGET_AVX10_2"
2869 2 : {
2870 2 : rtx op0 = gen_reg_rtx (V8BFmode);
2871 2 : rtx op1 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[1]), <MODE>mode);
2872 2 : rtx op2 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[2]), <MODE>mode);
2873 3 : rtx op3 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[3]), <MODE>mode);
2874 :
2875 3 : emit_insn (gen_fmav8bf4 (op0, op1, op2, op3));
2876 1 :
2877 3 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2878 2 : DONE;
2879 : })
2880 :
2881 : (define_expand "fms<mode>4"
2882 : [(set (match_operand:VBF_32_64 0 "register_operand")
2883 : (fma:VBF_32_64
2884 : (match_operand:VBF_32_64 1 "nonimmediate_operand")
2885 : (match_operand:VBF_32_64 2 "nonimmediate_operand")
2886 : (neg:VBF_32_64
2887 : (match_operand:VBF_32_64 3 "nonimmediate_operand"))))]
2888 : "TARGET_AVX10_2"
2889 2 : {
2890 2 : rtx op0 = gen_reg_rtx (V8BFmode);
2891 2 : rtx op1 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[1]), <MODE>mode);
2892 4 : rtx op2 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[2]), <MODE>mode);
2893 2 : rtx op3 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[3]), <MODE>mode);
2894 2 :
2895 4 : emit_insn (gen_fmsv8bf4 (op0, op1, op2, op3));
2896 2 :
2897 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2898 2 : DONE;
2899 : })
2900 :
2901 : (define_expand "fnma<mode>4"
2902 : [(set (match_operand:VBF_32_64 0 "register_operand")
2903 : (fma:VBF_32_64
2904 : (neg:VBF_32_64
2905 : (match_operand:VBF_32_64 1 "nonimmediate_operand"))
2906 : (match_operand:VBF_32_64 2 "nonimmediate_operand")
2907 : (match_operand:VBF_32_64 3 "nonimmediate_operand")))]
2908 : "TARGET_AVX10_2"
2909 2 : {
2910 2 : rtx op0 = gen_reg_rtx (V8BFmode);
2911 2 : rtx op1 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[1]), <MODE>mode);
2912 4 : rtx op2 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[2]), <MODE>mode);
2913 2 : rtx op3 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[3]), <MODE>mode);
2914 2 :
2915 4 : emit_insn (gen_fnmav8bf4 (op0, op1, op2, op3));
2916 2 :
2917 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2918 2 : DONE;
2919 : })
2920 :
2921 : (define_expand "fnms<mode>4"
2922 : [(set (match_operand:VBF_32_64 0 "register_operand")
2923 : (fma:VBF_32_64
2924 : (neg:VBF_32_64
2925 : (match_operand:VBF_32_64 1 "nonimmediate_operand"))
2926 : (match_operand:VBF_32_64 2 "nonimmediate_operand")
2927 : (neg:VBF_32_64
2928 : (match_operand:VBF_32_64 3 "nonimmediate_operand"))))]
2929 : "TARGET_AVX10_2"
2930 2 : {
2931 2 : rtx op0 = gen_reg_rtx (V8BFmode);
2932 4 : rtx op1 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[1]), <MODE>mode);
2933 2 : rtx op2 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[2]), <MODE>mode);
2934 4 : rtx op3 = lowpart_subreg (V8BFmode, force_reg (<MODE>mode, operands[3]), <MODE>mode);
2935 2 :
2936 4 : emit_insn (gen_fnmsv8bf4 (op0, op1, op2, op3));
2937 :
2938 2 : emit_move_insn (operands[0], lowpart_subreg (<MODE>mode, op0, V8BFmode));
2939 2 : DONE;
2940 : })
2941 :
2942 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2943 : ;;
2944 : ;; Parallel half-precision floating point complex type operations
2945 : ;;
2946 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2947 :
2948 : (define_expand "cmlav4hf4"
2949 : [(match_operand:V4HF 0 "register_operand")
2950 : (match_operand:V4HF 1 "vector_operand")
2951 : (match_operand:V4HF 2 "vector_operand")
2952 : (match_operand:V4HF 3 "vector_operand")]
2953 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2954 4 : && TARGET_MMX_WITH_SSE"
2955 1 : {
2956 5 : rtx op3 = gen_reg_rtx (V8HFmode);
2957 5 : rtx op2 = gen_reg_rtx (V8HFmode);
2958 5 : rtx op1 = gen_reg_rtx (V8HFmode);
2959 1 : rtx op0 = gen_reg_rtx (V8HFmode);
2960 :
2961 1 : emit_insn (gen_movq_v4hf_to_sse (op3, operands[3]));
2962 1 : emit_insn (gen_movq_v4hf_to_sse (op2, operands[2]));
2963 1 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
2964 :
2965 1 : emit_insn (gen_cmlav8hf4 (op0, op1, op2, op3));
2966 :
2967 1 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
2968 1 : DONE;
2969 : })
2970 :
2971 : (define_expand "cmla_conjv4hf4"
2972 : [(match_operand:V4HF 0 "register_operand")
2973 : (match_operand:V4HF 1 "vector_operand")
2974 : (match_operand:V4HF 2 "vector_operand")
2975 : (match_operand:V4HF 3 "vector_operand")]
2976 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2977 : && TARGET_MMX_WITH_SSE"
2978 1 : {
2979 1 : rtx op3 = gen_reg_rtx (V8HFmode);
2980 1 : rtx op2 = gen_reg_rtx (V8HFmode);
2981 1 : rtx op1 = gen_reg_rtx (V8HFmode);
2982 2 : rtx op0 = gen_reg_rtx (V8HFmode);
2983 :
2984 2 : emit_insn (gen_movq_v4hf_to_sse (op3, operands[3]));
2985 2 : emit_insn (gen_movq_v4hf_to_sse (op2, operands[2]));
2986 2 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
2987 :
2988 1 : emit_insn (gen_cmla_conjv8hf4 (op0, op1, op2, op3));
2989 :
2990 1 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
2991 1 : DONE;
2992 : })
2993 :
2994 : (define_expand "cmulv4hf3"
2995 : [(match_operand:V4HF 0 "register_operand")
2996 : (match_operand:V4HF 1 "vector_operand")
2997 : (match_operand:V4HF 2 "vector_operand")]
2998 : "TARGET_AVX512FP16 && TARGET_AVX512VL
2999 : && TARGET_MMX_WITH_SSE"
3000 1 : {
3001 1 : rtx op2 = gen_reg_rtx (V8HFmode);
3002 1 : rtx op1 = gen_reg_rtx (V8HFmode);
3003 1 : rtx op0 = gen_reg_rtx (V8HFmode);
3004 :
3005 4 : emit_insn (gen_movq_v4hf_to_sse (op2, operands[2]));
3006 1 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
3007 3 :
3008 4 : emit_insn (gen_cmulv8hf3 (op0, op1, op2));
3009 4 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
3010 1 : DONE;
3011 : })
3012 :
3013 : (define_expand "cmul_conjv4hf3"
3014 : [(match_operand:V4HF 0 "register_operand")
3015 : (match_operand:V4HF 1 "vector_operand")
3016 : (match_operand:V4HF 2 "vector_operand")]
3017 : "TARGET_AVX512FP16 && TARGET_AVX512VL
3018 : && TARGET_MMX_WITH_SSE"
3019 1 : {
3020 1 : rtx op2 = gen_reg_rtx (V8HFmode);
3021 1 : rtx op1 = gen_reg_rtx (V8HFmode);
3022 1 : rtx op0 = gen_reg_rtx (V8HFmode);
3023 3 :
3024 1 : emit_insn (gen_movq_v4hf_to_sse (op2, operands[2]));
3025 4 : emit_insn (gen_movq_v4hf_to_sse (op1, operands[1]));
3026 3 :
3027 4 : emit_insn (gen_cmul_conjv8hf3 (op0, op1, op2));
3028 1 : emit_move_insn (operands[0], lowpart_subreg (V4HFmode, op0, V8HFmode));
3029 1 : DONE;
3030 : })
3031 :
3032 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3033 : ;;
3034 : ;; Parallel half-precision floating point conversion operations
3035 : ;;
3036 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3037 :
3038 : (define_expand "fix<fixunssuffix>_trunc<mode><mmxintvecmodelower>2"
3039 : [(set (match_operand:<mmxintvecmode> 0 "register_operand")
3040 : (any_fix:<mmxintvecmode>
3041 : (match_operand:VHF_32_64 1 "nonimmediate_operand")))]
3042 1 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
3043 8 : {
3044 8 : rtx op1 = gen_reg_rtx (V8HFmode);
3045 9 : rtx op0 = gen_reg_rtx (V8HImode);
3046 1 :
3047 8 : emit_insn (gen_mov<mov_to_sse_suffix>_<mode>_to_sse (op1, operands[1]));
3048 :
3049 8 : emit_insn (gen_fix<fixunssuffix>_truncv8hfv8hi2 (op0, op1));
3050 :
3051 8 : emit_move_insn (operands[0],
3052 : lowpart_subreg (<mmxintvecmode>mode, op0, V8HImode));
3053 8 : DONE;
3054 : })
3055 :
3056 : (define_expand "fix<fixunssuffix>_truncv2hfv2si2"
3057 : [(set (match_operand:V2SI 0 "register_operand")
3058 : (any_fix:V2SI
3059 : (match_operand:V2HF 1 "nonimmediate_operand")))]
3060 : "TARGET_AVX512FP16 && TARGET_AVX512VL
3061 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
3062 2 : {
3063 2 : rtx op1 = gen_reg_rtx (V8HFmode);
3064 2 : rtx op0 = gen_reg_rtx (V4SImode);
3065 :
3066 8 : emit_insn (gen_movd_v2hf_to_sse (op1, operands[1]));
3067 :
3068 8 : emit_insn (gen_avx512fp16_fix<fixunssuffix>_truncv4si2 (op0, op1));
3069 6 :
3070 7 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
3071 2 : DONE;
3072 : })
3073 :
3074 : (define_expand "float<floatunssuffix><mmxintvecmodelower><mode>2"
3075 : [(set (match_operand:VHF_32_64 0 "register_operand")
3076 : (any_float:VHF_32_64
3077 : (match_operand:<mmxintvecmode> 1 "nonimmediate_operand")))]
3078 : "TARGET_AVX512FP16 && TARGET_AVX512VL && ix86_partial_vec_fp_math"
3079 8 : {
3080 8 : rtx op1 = gen_reg_rtx (V8HImode);
3081 8 : rtx op0 = gen_reg_rtx (V8HFmode);
3082 :
3083 8 : rtx_insn *(*gen_movd_sse) (rtx, rtx)
3084 2 : = gen_mov<mov_to_sse_suffix>_<mmxintvecmodelower>_to_sse;
3085 8 : emit_insn (gen_movd_sse (op1, operands[1]));
3086 2 :
3087 10 : emit_insn (gen_float<floatunssuffix>v8hiv8hf2 (op0, op1));
3088 2 :
3089 8 : emit_move_insn (operands[0],
3090 : lowpart_subreg (<MODE>mode, op0, V8HFmode));
3091 8 : DONE;
3092 : })
3093 :
3094 : (define_expand "float<floatunssuffix>v2siv2hf2"
3095 : [(set (match_operand:V2HF 0 "register_operand")
3096 : (any_float:V2HF
3097 : (match_operand:V2SI 1 "nonimmediate_operand")))]
3098 : "TARGET_AVX512FP16 && TARGET_AVX512VL
3099 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
3100 2 : {
3101 2 : rtx op1 = gen_reg_rtx (V4SImode);
3102 2 : rtx op0 = gen_reg_rtx (V8HFmode);
3103 :
3104 11 : emit_insn (gen_movq_v2si_to_sse (op1, operands[1]));
3105 :
3106 11 : emit_insn (gen_avx512fp16_float<floatunssuffix>v4siv4hf2 (op0, op1));
3107 9 :
3108 11 : emit_move_insn (operands[0], lowpart_subreg (V2HFmode, op0, V8HFmode));
3109 2 : DONE;
3110 : })
3111 :
3112 : (define_expand "extendv2hfv2sf2"
3113 : [(set (match_operand:V2SF 0 "register_operand")
3114 : (float_extend:V2SF
3115 : (match_operand:V2HF 1 "nonimmediate_operand")))]
3116 : "TARGET_AVX512FP16 && TARGET_AVX512VL
3117 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
3118 1 : {
3119 1 : rtx op1 = gen_reg_rtx (V8HFmode);
3120 1 : rtx op0 = gen_reg_rtx (V4SFmode);
3121 :
3122 12 : emit_insn (gen_movd_v2hf_to_sse (op1, operands[1]));
3123 :
3124 12 : emit_insn (gen_avx512fp16_float_extend_phv4sf2 (op0, op1));
3125 11 :
3126 12 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
3127 1 : DONE;
3128 : })
3129 :
3130 : (define_expand "truncv2sfv2hf2"
3131 : [(set (match_operand:V2HF 0 "register_operand")
3132 : (float_truncate:V2HF
3133 : (match_operand:V2SF 1 "nonimmediate_operand")))]
3134 : "TARGET_AVX512FP16 && TARGET_AVX512VL
3135 : && TARGET_MMX_WITH_SSE && ix86_partial_vec_fp_math"
3136 1 : {
3137 1 : rtx op1 = gen_reg_rtx (V4SFmode);
3138 1 : rtx op0 = gen_reg_rtx (V8HFmode);
3139 :
3140 90 : emit_insn (gen_movq_v2sf_to_sse (op1, operands[1]));
3141 :
3142 90 : emit_insn (gen_avx512fp16_truncv4sfv4hf2 (op0, op1));
3143 89 :
3144 90 : emit_move_insn (operands[0], lowpart_subreg (V2HFmode, op0, V8HFmode));
3145 1 : DONE;
3146 : })
3147 :
3148 : (define_expand "truncv2sfv2bf2"
3149 : [(set (match_operand:V2BF 0 "register_operand")
3150 : (float_truncate:V2BF
3151 : (match_operand:V2SF 1 "nonimmediate_operand")))]
3152 : "TARGET_SSSE3 && TARGET_MMX_WITH_SSE
3153 : && !HONOR_NANS (BFmode) && !flag_rounding_math
3154 : && (flag_unsafe_math_optimizations
3155 : || TARGET_AVXNECONVERT
3156 : || (TARGET_AVX512BF16 && TARGET_AVX512VL))"
3157 2 : {
3158 7 : rtx op1 = gen_reg_rtx (V4SFmode);
3159 2 : rtx op0 = gen_reg_rtx (V4BFmode);
3160 5 :
3161 7 : emit_move_insn (op1, lowpart_subreg (V4SFmode,
3162 5 : force_reg (V2SFmode, operands[1]),
3163 : V2SFmode));
3164 2 : emit_insn (gen_truncv4sfv4bf2 (op0, op1));
3165 :
3166 2 : emit_move_insn (operands[0], lowpart_subreg (V2BFmode, op0, V4BFmode));
3167 2 : DONE;
3168 : })
3169 :
3170 : (define_expand "extendv2bfv2sf2"
3171 : [(set (match_operand:V2SF 0 "register_operand")
3172 : (float_extend:V2SF
3173 : (match_operand:V2BF 1 "nonimmediate_operand")))]
3174 : "TARGET_SSE2 && TARGET_MMX_WITH_SSE && !HONOR_NANS (BFmode)"
3175 2 : {
3176 2 : rtx op0 = gen_reg_rtx (V4SFmode);
3177 2 : rtx op1 = gen_reg_rtx (V4BFmode);
3178 :
3179 2 : emit_move_insn (op1, lowpart_subreg (V4BFmode,
3180 33 : force_reg (V2BFmode, operands[1]),
3181 : V2BFmode));
3182 35 : emit_insn (gen_extendv4bfv4sf2 (op0, op1));
3183 33 :
3184 35 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, op0, V4SFmode));
3185 2 : DONE;
3186 : })
3187 :
3188 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3189 : ;;
3190 : ;; Parallel integral arithmetic
3191 : ;;
3192 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3193 :
3194 : (define_expand "neg<mode>2"
3195 : [(set (match_operand:MMXMODEI 0 "register_operand")
3196 : (minus:MMXMODEI
3197 : (match_dup 2)
3198 36 : (match_operand:MMXMODEI 1 "register_operand")))]
3199 : "TARGET_MMX_WITH_SSE"
3200 139 : "operands[2] = force_reg (<MODE>mode, CONST0_RTX (<MODE>mode));")
3201 36 :
3202 36 : (define_expand "neg<mode>2"
3203 : [(set (match_operand:VI_32 0 "register_operand")
3204 103 : (minus:VI_32
3205 : (match_dup 2)
3206 : (match_operand:VI_32 1 "register_operand")))]
3207 : "TARGET_SSE2"
3208 108 : "operands[2] = force_reg (<MODE>mode, CONST0_RTX (<MODE>mode));")
3209 :
3210 : (define_insn "negv2qi2"
3211 : [(set (match_operand:V2QI 0 "register_operand" "=?Q,&Yw")
3212 14 : (neg:V2QI
3213 9 : (match_operand:V2QI 1 "register_operand" "0,Yw")))
3214 9 : (clobber (reg:CC FLAGS_REG))]
3215 2744 : "!TARGET_PARTIAL_REG_STALL || optimize_size || TARGET_SSE2"
3216 32 : "#"
3217 18 : [(set_attr "isa" "*,sse2")
3218 : (set_attr "type" "multi")
3219 2647 : (set_attr "mode" "QI,TI")
3220 : (set (attr "enabled")
3221 66 : (cond [(and (eq_attr "alternative" "0")
3222 2647 : (and (match_test "TARGET_PARTIAL_REG_STALL")
3223 66 : (not (match_test "optimize_size"))))
3224 66 : (symbol_ref "false")
3225 66 : ]
3226 : (const_string "*")))])
3227 :
3228 : (define_split
3229 : [(set (match_operand:V2QI 0 "general_reg_operand")
3230 : (neg:V2QI
3231 : (match_operand:V2QI 1 "general_reg_operand")))
3232 : (clobber (reg:CC FLAGS_REG))]
3233 : "(!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun))
3234 : && reload_completed"
3235 : [(parallel
3236 : [(set (strict_low_part (match_dup 0))
3237 : (neg:QI (match_dup 1)))
3238 : (clobber (reg:CC FLAGS_REG))])
3239 : (parallel
3240 : [(set (zero_extract:HI (match_dup 2) (const_int 8) (const_int 8))
3241 : (subreg:HI
3242 : (neg:QI
3243 : (subreg:QI
3244 : (zero_extract:HI (match_dup 3)
3245 : (const_int 8)
3246 : (const_int 8)) 0)) 0))
3247 : (clobber (reg:CC FLAGS_REG))])]
3248 9 : {
3249 9 : operands[3] = lowpart_subreg (HImode, operands[1], V2QImode);
3250 9 : operands[2] = lowpart_subreg (HImode, operands[0], V2QImode);
3251 9 : operands[1] = lowpart_subreg (QImode, operands[1], V2QImode);
3252 9 : operands[0] = lowpart_subreg (QImode, operands[0], V2QImode);
3253 : })
3254 :
3255 : (define_split
3256 9 : [(set (match_operand:V2QI 0 "sse_reg_operand")
3257 : (neg:V2QI
3258 : (match_operand:V2QI 1 "sse_reg_operand")))
3259 : (clobber (reg:CC FLAGS_REG))]
3260 : "TARGET_SSE2 && reload_completed"
3261 : [(set (match_dup 0) (match_dup 2))
3262 : (set (match_dup 0)
3263 : (minus:V16QI (match_dup 0) (match_dup 1)))]
3264 0 : {
3265 9 : operands[2] = CONST0_RTX (V16QImode);
3266 0 : operands[1] = lowpart_subreg (V16QImode, operands[1], V2QImode);
3267 0 : operands[0] = lowpart_subreg (V16QImode, operands[0], V2QImode);
3268 : })
3269 :
3270 1014 : (define_expand "mmx_<insn><mode>3"
3271 0 : [(set (match_operand:MMXMODEI8 0 "register_operand")
3272 1014 : (plusminus:MMXMODEI8
3273 1014 : (match_operand:MMXMODEI8 1 "register_mmxmem_operand")
3274 : (match_operand:MMXMODEI8 2 "register_mmxmem_operand")))]
3275 0 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3276 161 : "ix86_fixup_binary_operands_no_copy (<CODE>, <MODE>mode, operands);")
3277 1014 :
3278 : (define_expand "<insn><mode>3"
3279 : [(set (match_operand:MMXMODEI 0 "register_operand")
3280 280 : (plusminus:MMXMODEI
3281 0 : (match_operand:MMXMODEI 1 "register_operand")
3282 26 : (match_operand:MMXMODEI 2 "register_operand")))]
3283 26 : "TARGET_MMX_WITH_SSE")
3284 254 :
3285 : (define_insn "*mmx_<insn><mode>3"
3286 166 : [(set (match_operand:MMXMODEI8 0 "register_operand" "=y,x,<Yv_Yw>")
3287 : (plusminus:MMXMODEI8
3288 166 : (match_operand:MMXMODEI8 1 "register_mmxmem_operand"
3289 11317 : "<comm>0,0,<Yv_Yw>")
3290 : (match_operand:MMXMODEI8 2 "register_mmxmem_operand"
3291 11151 : "ym,x,<Yv_Yw>")))]
3292 11447 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3293 140854 : && ix86_binary_operator_ok (<CODE>, <MODE>mode, operands)"
3294 : "@
3295 : p<plusminus_mnemonic><mmxvecsize>\t{%2, %0|%0, %2}
3296 11058 : p<plusminus_mnemonic><mmxvecsize>\t{%2, %0|%0, %2}
3297 129433 : vp<plusminus_mnemonic><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3298 : [(set_attr "isa" "*,sse2_noavx,avx")
3299 : (set_attr "mmx_isa" "native,*,*")
3300 129891 : (set_attr "type" "mmxadd,sseadd,sseadd")
3301 458 : (set_attr "mode" "DI,TI,TI")])
3302 :
3303 : (define_insn "<insn><mode>3"
3304 72 : [(set (match_operand:VI_32 0 "register_operand" "=x,Yw")
3305 85 : (plusminus:VI_32
3306 72 : (match_operand:VI_32 1 "register_operand" "<comm>0,Yw")
3307 157 : (match_operand:VI_32 2 "register_operand" "x,Yw")))]
3308 157 : "TARGET_SSE2"
3309 : "@
3310 : p<plusminus_mnemonic><mmxvecsize>\t{%2, %0|%0, %2}
3311 : vp<plusminus_mnemonic><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3312 : [(set_attr "isa" "noavx,avx")
3313 : (set_attr "type" "sseadd")
3314 : (set_attr "mode" "TI")])
3315 :
3316 : (define_insn "<insn>v2qi3"
3317 : [(set (match_operand:V2QI 0 "register_operand" "=?Q,x,Yw")
3318 : (plusminus:V2QI
3319 : (match_operand:V2QI 1 "register_operand" "<comm>0,0,Yw")
3320 : (match_operand:V2QI 2 "register_operand" "Q,x,Yw")))
3321 : (clobber (reg:CC FLAGS_REG))]
3322 : "!TARGET_PARTIAL_REG_STALL || optimize_size || TARGET_SSE2"
3323 : "#"
3324 : [(set_attr "isa" "*,sse2_noavx,avx")
3325 : (set_attr "type" "multi,sseadd,sseadd")
3326 : (set_attr "mode" "QI,TI,TI")
3327 : (set (attr "enabled")
3328 : (cond [(and (eq_attr "alternative" "0")
3329 8191410 : (and (match_test "TARGET_PARTIAL_REG_STALL")
3330 0 : (not (match_test "optimize_size"))))
3331 : (symbol_ref "false")
3332 : ]
3333 124164 : (const_string "*")))])
3334 :
3335 : (define_split
3336 : [(set (match_operand:V2QI 0 "general_reg_operand")
3337 : (plusminus:V2QI
3338 : (match_operand:V2QI 1 "general_reg_operand")
3339 : (match_operand:V2QI 2 "general_reg_operand")))
3340 : (clobber (reg:CC FLAGS_REG))]
3341 : "(!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun))
3342 : && reload_completed"
3343 : [(parallel
3344 : [(set (strict_low_part (match_dup 0))
3345 : (plusminus:QI (match_dup 1) (match_dup 2)))
3346 : (clobber (reg:CC FLAGS_REG))])
3347 : (parallel
3348 : [(set (zero_extract:HI (match_dup 3) (const_int 8) (const_int 8))
3349 : (subreg:HI
3350 : (plusminus:QI
3351 : (subreg:QI
3352 : (zero_extract:HI (match_dup 4)
3353 : (const_int 8)
3354 : (const_int 8)) 0)
3355 : (subreg:QI
3356 : (zero_extract:HI (match_dup 5)
3357 : (const_int 8)
3358 : (const_int 8)) 0)) 0))
3359 : (clobber (reg:CC FLAGS_REG))])]
3360 194 : {
3361 194 : operands[5] = lowpart_subreg (HImode, operands[2], V2QImode);
3362 194 : operands[4] = lowpart_subreg (HImode, operands[1], V2QImode);
3363 194 : operands[3] = lowpart_subreg (HImode, operands[0], V2QImode);
3364 194 : operands[2] = lowpart_subreg (QImode, operands[2], V2QImode);
3365 194 : operands[1] = lowpart_subreg (QImode, operands[1], V2QImode);
3366 194 : operands[0] = lowpart_subreg (QImode, operands[0], V2QImode);
3367 : })
3368 :
3369 : (define_split
3370 194 : [(set (match_operand:V2QI 0 "sse_reg_operand")
3371 : (plusminus:V2QI
3372 : (match_operand:V2QI 1 "sse_reg_operand")
3373 : (match_operand:V2QI 2 "sse_reg_operand")))
3374 : (clobber (reg:CC FLAGS_REG))]
3375 39797 : "TARGET_SSE2 && reload_completed"
3376 : [(set (match_dup 0)
3377 : (plusminus:V16QI (match_dup 1) (match_dup 2)))]
3378 57 : {
3379 578 : operands[2] = lowpart_subreg (V16QImode, operands[2], V2QImode);
3380 251 : operands[1] = lowpart_subreg (V16QImode, operands[1], V2QImode);
3381 57 : operands[0] = lowpart_subreg (V16QImode, operands[0], V2QImode);
3382 521 : })
3383 :
3384 : (define_expand "mmx_<insn><mode>3"
3385 125 : [(set (match_operand:MMXMODE12 0 "register_operand")
3386 : (sat_plusminus:MMXMODE12
3387 68 : (match_operand:MMXMODE12 1 "register_mmxmem_operand")
3388 68 : (match_operand:MMXMODE12 2 "register_mmxmem_operand")))]
3389 125 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3390 206 : "ix86_fixup_binary_operands_no_copy (<CODE>, <MODE>mode, operands);")
3391 :
3392 : (define_expand "<insn><mode>3"
3393 : [(set (match_operand:MMXMODE12 0 "register_operand")
3394 342 : (sat_plusminus:MMXMODE12
3395 : (match_operand:MMXMODE12 1 "register_operand")
3396 66 : (match_operand:MMXMODE12 2 "register_operand")))]
3397 66 : "TARGET_MMX_WITH_SSE")
3398 276 :
3399 : (define_insn "*mmx_<insn><mode>3"
3400 : [(set (match_operand:MMXMODE12 0 "register_operand" "=y,x,Yw")
3401 : (sat_plusminus:MMXMODE12
3402 : (match_operand:MMXMODE12 1 "register_mmxmem_operand" "<comm>0,0,Yw")
3403 103 : (match_operand:MMXMODE12 2 "register_mmxmem_operand" "ym,x,Yw")))]
3404 86 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3405 2188 : && ix86_binary_operator_ok (<CODE>, <MODE>mode, operands)"
3406 103 : "@
3407 70 : p<plusminus_mnemonic><mmxvecsize>\t{%2, %0|%0, %2}
3408 : p<plusminus_mnemonic><mmxvecsize>\t{%2, %0|%0, %2}
3409 323900 : vp<plusminus_mnemonic><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3410 33 : [(set_attr "isa" "*,sse2_noavx,avx")
3411 : (set_attr "mmx_isa" "native,*,*")
3412 323653 : (set_attr "type" "mmxadd,sseadd,sseadd")
3413 : (set_attr "mode" "DI,TI,TI")])
3414 0 :
3415 0 : (define_insn "<insn><mode>3"
3416 : [(set (match_operand:VI_16_32 0 "register_operand" "=x,Yw")
3417 : (sat_plusminus:VI_16_32
3418 1721 : (match_operand:VI_16_32 1 "register_operand" "<comm>0,Yw")
3419 : (match_operand:VI_16_32 2 "register_operand" "x,Yw")))]
3420 1721 : "TARGET_SSE2"
3421 1721 : "@
3422 1341 : p<plusminus_mnemonic><mmxvecsize>\t{%2, %0|%0, %2}
3423 : vp<plusminus_mnemonic><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3424 : [(set_attr "isa" "noavx,avx")
3425 380 : (set_attr "type" "sseadd")
3426 : (set_attr "mode" "TI")])
3427 :
3428 : (define_insn "mulv2si3"
3429 0 : [(set (match_operand:V2SI 0 "register_operand" "=Yr,*x,v")
3430 0 : (mult:V2SI
3431 : (match_operand:V2SI 1 "register_operand" "%0,0,v")
3432 : (match_operand:V2SI 2 "register_operand" "Yr,*x,v")))]
3433 57 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
3434 : "@
3435 57 : pmulld\t{%2, %0|%0, %2}
3436 57 : pmulld\t{%2, %0|%0, %2}
3437 56 : vpmulld\t{%2, %1, %0|%0, %1, %2}"
3438 : [(set_attr "isa" "noavx,noavx,avx")
3439 : (set_attr "type" "sseimul")
3440 : (set_attr "prefix_extra" "1")
3441 1 : (set_attr "prefix" "orig,orig,vex")
3442 : (set_attr "btver2_decode" "vector")
3443 : (set_attr "mode" "TI")])
3444 :
3445 0 : (define_expand "mmx_mulv4hi3"
3446 0 : [(set (match_operand:V4HI 0 "register_operand")
3447 : (mult:V4HI (match_operand:V4HI 1 "register_mmxmem_operand")
3448 : (match_operand:V4HI 2 "register_mmxmem_operand")))]
3449 12 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3450 33 : "ix86_fixup_binary_operands_no_copy (MULT, V4HImode, operands);")
3451 12 :
3452 12 : (define_expand "mulv4hi3"
3453 12 : [(set (match_operand:V4HI 0 "register_operand")
3454 33 : (mult:V4HI (match_operand:V4HI 1 "register_operand")
3455 : (match_operand:V4HI 2 "register_operand")))]
3456 : "TARGET_MMX_WITH_SSE")
3457 :
3458 33 : (define_insn "*mmx_mulv4hi3"
3459 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
3460 : (mult:V4HI (match_operand:V4HI 1 "register_mmxmem_operand" "%0,0,Yw")
3461 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")))]
3462 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3463 25 : && ix86_binary_operator_ok (MULT, V4HImode, operands)"
3464 : "@
3465 25 : pmullw\t{%2, %0|%0, %2}
3466 25 : pmullw\t{%2, %0|%0, %2}
3467 : vpmullw\t{%2, %1, %0|%0, %1, %2}"
3468 : [(set_attr "isa" "*,sse2_noavx,avx")
3469 : (set_attr "mmx_isa" "native,*,*")
3470 : (set_attr "type" "mmxmul,ssemul,ssemul")
3471 25 : (set_attr "mode" "DI,TI,TI")])
3472 :
3473 : (define_insn "mulv2hi3"
3474 : [(set (match_operand:V2HI 0 "register_operand" "=x,Yw")
3475 0 : (mult:V2HI (match_operand:V2HI 1 "register_operand" "%0,Yw")
3476 0 : (match_operand:V2HI 2 "register_operand" "x,Yw")))]
3477 : "TARGET_SSE2"
3478 : "@
3479 15 : pmullw\t{%2, %0|%0, %2}
3480 : vpmullw\t{%2, %1, %0|%0, %1, %2}"
3481 15 : [(set_attr "isa" "noavx,avx")
3482 15 : (set_attr "type" "ssemul")
3483 : (set_attr "mode" "TI")])
3484 :
3485 : (define_expand "mulv8qi3"
3486 15 : [(set (match_operand:V8QI 0 "register_operand")
3487 : (mult:V8QI (match_operand:V8QI 1 "register_operand")
3488 : (match_operand:V8QI 2 "register_operand")))]
3489 : "TARGET_MMX_WITH_SSE"
3490 374 : {
3491 374 : ix86_expand_vecop_qihi_partial (MULT, operands[0], operands[1], operands[2]);
3492 370 : DONE;
3493 : })
3494 11 :
3495 : (define_expand "mulv4qi3"
3496 11 : [(set (match_operand:V4QI 0 "register_operand")
3497 11 : (mult:V4QI (match_operand:V4QI 1 "register_operand")
3498 : (match_operand:V4QI 2 "register_operand")))]
3499 : "TARGET_SSE2"
3500 938 : {
3501 949 : ix86_expand_vecop_qihi_partial (MULT, operands[0], operands[1], operands[2]);
3502 938 : DONE;
3503 : })
3504 :
3505 6 : (define_expand "mmx_smulv4hi3_highpart"
3506 40 : [(set (match_operand:V4HI 0 "register_operand")
3507 : (truncate:V4HI
3508 34 : (lshiftrt:V4SI
3509 58 : (mult:V4SI
3510 34 : (sign_extend:V4SI
3511 24 : (match_operand:V4HI 1 "register_mmxmem_operand"))
3512 24 : (sign_extend:V4SI
3513 : (match_operand:V4HI 2 "register_mmxmem_operand")))
3514 : (const_int 16))))]
3515 24 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3516 48 : "ix86_fixup_binary_operands_no_copy (MULT, V4HImode, operands);")
3517 :
3518 14 : (define_insn "*mmx_smulv4hi3_highpart"
3519 14 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
3520 48 : (truncate:V4HI
3521 : (lshiftrt:V4SI
3522 : (mult:V4SI
3523 : (sign_extend:V4SI
3524 0 : (match_operand:V4HI 1 "register_mmxmem_operand" "%0,0,Yw"))
3525 34 : (sign_extend:V4SI
3526 0 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")))
3527 0 : (const_int 16))))]
3528 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3529 : && ix86_binary_operator_ok (MULT, V4HImode, operands)"
3530 22 : "@
3531 : pmulhw\t{%2, %0|%0, %2}
3532 22 : pmulhw\t{%2, %0|%0, %2}
3533 22 : vpmulhw\t{%2, %1, %0|%0, %1, %2}"
3534 22 : [(set_attr "isa" "*,sse2_noavx,avx")
3535 : (set_attr "mmx_isa" "native,*,*")
3536 : (set_attr "type" "mmxmul,ssemul,ssemul")
3537 : (set_attr "mode" "DI,TI,TI")])
3538 :
3539 : (define_expand "mmx_umulv4hi3_highpart"
3540 : [(set (match_operand:V4HI 0 "register_operand")
3541 : (truncate:V4HI
3542 : (lshiftrt:V4SI
3543 : (mult:V4SI
3544 : (zero_extend:V4SI
3545 : (match_operand:V4HI 1 "register_mmxmem_operand"))
3546 : (zero_extend:V4SI
3547 : (match_operand:V4HI 2 "register_mmxmem_operand")))
3548 : (const_int 16))))]
3549 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3550 : && (TARGET_SSE || TARGET_3DNOW_A)"
3551 22 : "ix86_fixup_binary_operands_no_copy (MULT, V4HImode, operands);")
3552 :
3553 : (define_insn "*mmx_umulv4hi3_highpart"
3554 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
3555 22 : (truncate:V4HI
3556 : (lshiftrt:V4SI
3557 : (mult:V4SI
3558 : (zero_extend:V4SI
3559 : (match_operand:V4HI 1 "register_mmxmem_operand" "%0,0,Yw"))
3560 22 : (zero_extend:V4SI
3561 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")))
3562 : (const_int 16))))]
3563 17 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3564 247 : && (TARGET_SSE || TARGET_3DNOW_A)
3565 516 : && ix86_binary_operator_ok (MULT, V4HImode, operands)"
3566 : "@
3567 22 : pmulhuw\t{%2, %0|%0, %2}
3568 22 : pmulhuw\t{%2, %0|%0, %2}
3569 109 : vpmulhuw\t{%2, %1, %0|%0, %1, %2}"
3570 : [(set_attr "isa" "*,sse2_noavx,avx")
3571 : (set_attr "mmx_isa" "native,*,*")
3572 87 : (set_attr "type" "mmxmul,ssemul,ssemul")
3573 : (set_attr "mode" "DI,TI,TI")])
3574 :
3575 : (define_expand "<s>mulv4hi3_highpart"
3576 : [(set (match_operand:V4HI 0 "register_operand")
3577 : (truncate:V4HI
3578 : (lshiftrt:V4SI
3579 : (mult:V4SI
3580 : (any_extend:V4SI
3581 : (match_operand:V4HI 1 "register_operand"))
3582 : (any_extend:V4SI
3583 : (match_operand:V4HI 2 "register_operand")))
3584 : (const_int 16))))]
3585 : "TARGET_MMX_WITH_SSE")
3586 :
3587 : (define_insn "<s>mulv2hi3_highpart"
3588 : [(set (match_operand:V2HI 0 "register_operand" "=x,Yw")
3589 : (truncate:V2HI
3590 : (lshiftrt:V2SI
3591 : (mult:V2SI
3592 : (any_extend:V2SI
3593 : (match_operand:V2HI 1 "register_operand" "%0,Yw"))
3594 : (any_extend:V2SI
3595 : (match_operand:V2HI 2 "register_operand" "x,Yw")))
3596 : (const_int 16))))]
3597 : "TARGET_SSE2"
3598 : "@
3599 : pmulh<u>w\t{%2, %0|%0, %2}
3600 : vpmulh<u>w\t{%2, %1, %0|%0, %1, %2}"
3601 : [(set_attr "isa" "noavx,avx")
3602 : (set_attr "type" "ssemul")
3603 : (set_attr "mode" "TI")])
3604 :
3605 : (define_expand "mmx_pmaddwd"
3606 : [(set (match_operand:V2SI 0 "register_operand")
3607 : (plus:V2SI
3608 : (mult:V2SI
3609 : (sign_extend:V2SI
3610 : (vec_select:V2HI
3611 : (match_operand:V4HI 1 "register_mmxmem_operand")
3612 : (parallel [(const_int 0) (const_int 2)])))
3613 : (sign_extend:V2SI
3614 : (vec_select:V2HI
3615 : (match_operand:V4HI 2 "register_mmxmem_operand")
3616 : (parallel [(const_int 0) (const_int 2)]))))
3617 : (mult:V2SI
3618 : (sign_extend:V2SI
3619 : (vec_select:V2HI (match_dup 1)
3620 : (parallel [(const_int 1) (const_int 3)])))
3621 : (sign_extend:V2SI
3622 : (vec_select:V2HI (match_dup 2)
3623 : (parallel [(const_int 1) (const_int 3)]))))))]
3624 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3625 34 : "ix86_fixup_binary_operands_no_copy (MULT, V4HImode, operands);")
3626 :
3627 : (define_insn "*mmx_pmaddwd"
3628 : [(set (match_operand:V2SI 0 "register_operand" "=y,x,Yw")
3629 34 : (plus:V2SI
3630 : (mult:V2SI
3631 : (sign_extend:V2SI
3632 : (vec_select:V2HI
3633 : (match_operand:V4HI 1 "register_mmxmem_operand" "%0,0,Yw")
3634 : (parallel [(const_int 0) (const_int 2)])))
3635 : (sign_extend:V2SI
3636 : (vec_select:V2HI
3637 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")
3638 : (parallel [(const_int 0) (const_int 2)]))))
3639 : (mult:V2SI
3640 34 : (sign_extend:V2SI
3641 : (vec_select:V2HI (match_dup 1)
3642 : (parallel [(const_int 1) (const_int 3)])))
3643 : (sign_extend:V2SI
3644 : (vec_select:V2HI (match_dup 2)
3645 16 : (parallel [(const_int 1) (const_int 3)]))))))]
3646 38 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3647 4514 : && ix86_binary_operator_ok (MULT, V4HImode, operands)"
3648 16 : "@
3649 : pmaddwd\t{%2, %0|%0, %2}
3650 : pmaddwd\t{%2, %0|%0, %2}
3651 23782 : vpmaddwd\t{%2, %1, %0|%0, %1, %2}"
3652 : [(set_attr "isa" "*,sse2_noavx,avx")
3653 : (set_attr "mmx_isa" "native,*,*")
3654 23766 : (set_attr "type" "mmxmul,sseiadd,sseiadd")
3655 0 : (set_attr "c86_attr" "madd")
3656 0 : (set_attr "mode" "DI,TI,TI")])
3657 :
3658 : (define_expand "mmx_pmulhrwv4hi3"
3659 17 : [(set (match_operand:V4HI 0 "register_operand")
3660 : (truncate:V4HI
3661 17 : (lshiftrt:V4SI
3662 17 : (plus:V4SI
3663 : (mult:V4SI
3664 : (sign_extend:V4SI
3665 17 : (match_operand:V4HI 1 "nonimmediate_operand"))
3666 : (sign_extend:V4SI
3667 : (match_operand:V4HI 2 "nonimmediate_operand")))
3668 : (const_vector:V4SI [(const_int 32768) (const_int 32768)
3669 0 : (const_int 32768) (const_int 32768)]))
3670 0 : (const_int 16))))]
3671 : "TARGET_3DNOW"
3672 14 : "ix86_fixup_binary_operands_no_copy (MULT, V4HImode, operands);")
3673 :
3674 0 : (define_insn "*mmx_pmulhrwv4hi3"
3675 : [(set (match_operand:V4HI 0 "register_operand" "=y")
3676 14 : (truncate:V4HI
3677 0 : (lshiftrt:V4SI
3678 : (plus:V4SI
3679 : (mult:V4SI
3680 : (sign_extend:V4SI
3681 : (match_operand:V4HI 1 "nonimmediate_operand" "%0"))
3682 : (sign_extend:V4SI
3683 : (match_operand:V4HI 2 "nonimmediate_operand" "ym")))
3684 14 : (const_vector:V4SI [(const_int 32768) (const_int 32768)
3685 : (const_int 32768) (const_int 32768)]))
3686 : (const_int 16))))]
3687 87 : "TARGET_3DNOW && ix86_binary_operator_ok (MULT, V4HImode, operands)"
3688 : "pmulhrw\t{%2, %0|%0, %2}"
3689 3 : [(set_attr "type" "mmxmul")
3690 : (set_attr "prefix_extra" "1")
3691 233 : (set_attr "mode" "DI")])
3692 3 :
3693 : (define_expand "sse2_umulv1siv1di3"
3694 230 : [(set (match_operand:V1DI 0 "register_operand")
3695 : (mult:V1DI
3696 3 : (zero_extend:V1DI
3697 : (vec_select:V1SI
3698 : (match_operand:V2SI 1 "register_mmxmem_operand")
3699 : (parallel [(const_int 0)])))
3700 2 : (zero_extend:V1DI
3701 2 : (vec_select:V1SI
3702 : (match_operand:V2SI 2 "register_mmxmem_operand")
3703 : (parallel [(const_int 0)])))))]
3704 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSE2"
3705 326 : "ix86_fixup_binary_operands_no_copy (MULT, V2SImode, operands);")
3706 :
3707 314 : (define_insn "*sse2_umulv1siv1di3"
3708 314 : [(set (match_operand:V1DI 0 "register_operand" "=y,x,Yv")
3709 12 : (mult:V1DI
3710 : (zero_extend:V1DI
3711 : (vec_select:V1SI
3712 : (match_operand:V2SI 1 "register_mmxmem_operand" "%0,0,Yv")
3713 : (parallel [(const_int 0)])))
3714 : (zero_extend:V1DI
3715 12 : (vec_select:V1SI
3716 : (match_operand:V2SI 2 "register_mmxmem_operand" "ym,x,Yv")
3717 : (parallel [(const_int 0)])))))]
3718 7 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3719 65 : && TARGET_SSE2
3720 131 : && ix86_binary_operator_ok (MULT, V2SImode, operands)"
3721 : "@
3722 1 : pmuludq\t{%2, %0|%0, %2}
3723 1 : pmuludq\t{%2, %0|%0, %2}
3724 1417 : vpmuludq\t{%2, %1, %0|%0, %1, %2}"
3725 : [(set_attr "isa" "*,sse2_noavx,avx")
3726 : (set_attr "mmx_isa" "native,*,*")
3727 1418 : (set_attr "type" "mmxmul,ssemul,ssemul")
3728 : (set_attr "mode" "DI,TI,TI")])
3729 :
3730 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3731 0 : ;;
3732 0 : ;; Parallel integral shifts
3733 : ;;
3734 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3735 :
3736 377 : (define_insn "<code><mode>3"
3737 : [(set (match_operand:MMXMODE14 0 "register_operand" "=Yr,*x,Yv")
3738 377 : (smaxmin:MMXMODE14
3739 377 : (match_operand:MMXMODE14 1 "register_operand" "%0,0,Yv")
3740 : (match_operand:MMXMODE14 2 "register_operand" "Yr,*x,Yv")))]
3741 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
3742 : "@
3743 : p<maxmin_int><mmxvecsize>\t{%2, %0|%0, %2}
3744 : p<maxmin_int><mmxvecsize>\t{%2, %0|%0, %2}
3745 : vp<maxmin_int><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3746 : [(set_attr "isa" "noavx,noavx,avx")
3747 : (set_attr "type" "sseiadd")
3748 : (set_attr "prefix_extra" "1")
3749 : (set_attr "prefix" "orig,orig,vex")
3750 : (set_attr "mode" "TI")])
3751 :
3752 : (define_expand "mmx_<code>v4hi3"
3753 : [(set (match_operand:V4HI 0 "register_operand")
3754 : (smaxmin:V4HI
3755 : (match_operand:V4HI 1 "register_mmxmem_operand")
3756 : (match_operand:V4HI 2 "register_mmxmem_operand")))]
3757 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3758 : && (TARGET_SSE || TARGET_3DNOW_A)"
3759 44 : "ix86_fixup_binary_operands_no_copy (<CODE>, V4HImode, operands);")
3760 :
3761 : (define_insn "*mmx_<code>v4hi3"
3762 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
3763 44 : (smaxmin:V4HI
3764 : (match_operand:V4HI 1 "register_mmxmem_operand" "%0,0,Yw")
3765 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")))]
3766 80 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3767 514 : && (TARGET_SSE || TARGET_3DNOW_A)
3768 729 : && ix86_binary_operator_ok (<CODE>, V4HImode, operands)"
3769 : "@
3770 : p<maxmin_int>w\t{%2, %0|%0, %2}
3771 : p<maxmin_int>w\t{%2, %0|%0, %2}
3772 706 : vp<maxmin_int>w\t{%2, %1, %0|%0, %1, %2}"
3773 : [(set_attr "isa" "*,sse2_noavx,avx")
3774 44 : (set_attr "mmx_isa" "native,*,*")
3775 706 : (set_attr "type" "mmxadd,sseiadd,sseiadd")
3776 44 : (set_attr "mode" "DI,TI,TI")])
3777 :
3778 : (define_expand "<code>v4hi3"
3779 : [(set (match_operand:V4HI 0 "register_operand")
3780 : (smaxmin:V4HI
3781 : (match_operand:V4HI 1 "register_operand")
3782 : (match_operand:V4HI 2 "register_operand")))]
3783 : "TARGET_MMX_WITH_SSE")
3784 :
3785 : (define_insn "<code><mode>3"
3786 : [(set (match_operand:VI1_16_32 0 "register_operand" "=Yr,*x,Yv")
3787 : (smaxmin:VI1_16_32
3788 : (match_operand:VI1_16_32 1 "register_operand" "%0,0,Yv")
3789 : (match_operand:VI1_16_32 2 "register_operand" "Yr,*x,Yv")))]
3790 : "TARGET_SSE4_1"
3791 : "@
3792 : p<maxmin_int>b\t{%2, %0|%0, %2}
3793 : p<maxmin_int>b\t{%2, %0|%0, %2}
3794 : vp<maxmin_int>b\t{%2, %1, %0|%0, %1, %2}"
3795 : [(set_attr "isa" "noavx,noavx,avx")
3796 : (set_attr "type" "sseiadd")
3797 : (set_attr "prefix_extra" "1")
3798 : (set_attr "prefix" "orig,orig,vex")
3799 : (set_attr "mode" "TI")])
3800 :
3801 : (define_insn "<code>v2hi3"
3802 : [(set (match_operand:V2HI 0 "register_operand" "=x,Yw")
3803 : (smaxmin:V2HI
3804 : (match_operand:V2HI 1 "register_operand" "%0,Yw")
3805 : (match_operand:V2HI 2 "register_operand" "x,Yw")))]
3806 : "TARGET_SSE2"
3807 : "@
3808 : p<maxmin_int>w\t{%2, %0|%0, %2}
3809 : vp<maxmin_int>w\t{%2, %1, %0|%0, %1, %2}"
3810 : [(set_attr "isa" "noavx,avx")
3811 : (set_attr "type" "sseiadd")
3812 : (set_attr "mode" "TI")])
3813 :
3814 : (define_insn "<code><mode>3"
3815 : [(set (match_operand:MMXMODE24 0 "register_operand" "=Yr,*x,Yv")
3816 : (umaxmin:MMXMODE24
3817 : (match_operand:MMXMODE24 1 "register_operand" "%0,0,Yv")
3818 : (match_operand:MMXMODE24 2 "register_operand" "Yr,*x,Yv")))]
3819 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
3820 : "@
3821 : p<maxmin_int><mmxvecsize>\t{%2, %0|%0, %2}
3822 : p<maxmin_int><mmxvecsize>\t{%2, %0|%0, %2}
3823 : vp<maxmin_int><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3824 : [(set_attr "isa" "noavx,noavx,avx")
3825 : (set_attr "type" "sseiadd")
3826 : (set_attr "prefix_extra" "1")
3827 : (set_attr "prefix" "orig,orig,vex")
3828 : (set_attr "mode" "TI")])
3829 :
3830 : (define_expand "mmx_<code>v8qi3"
3831 : [(set (match_operand:V8QI 0 "register_operand")
3832 : (umaxmin:V8QI
3833 : (match_operand:V8QI 1 "register_mmxmem_operand")
3834 : (match_operand:V8QI 2 "register_mmxmem_operand")))]
3835 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3836 : && (TARGET_SSE || TARGET_3DNOW_A)"
3837 44 : "ix86_fixup_binary_operands_no_copy (<CODE>, V8QImode, operands);")
3838 :
3839 : (define_insn "*mmx_<code>v8qi3"
3840 : [(set (match_operand:V8QI 0 "register_operand" "=y,x,Yw")
3841 44 : (umaxmin:V8QI
3842 : (match_operand:V8QI 1 "register_mmxmem_operand" "%0,0,Yw")
3843 : (match_operand:V8QI 2 "register_mmxmem_operand" "ym,x,Yw")))]
3844 34 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
3845 324 : && (TARGET_SSE || TARGET_3DNOW_A)
3846 560 : && ix86_binary_operator_ok (<CODE>, V8QImode, operands)"
3847 : "@
3848 : p<maxmin_int>b\t{%2, %0|%0, %2}
3849 : p<maxmin_int>b\t{%2, %0|%0, %2}
3850 626 : vp<maxmin_int>b\t{%2, %1, %0|%0, %1, %2}"
3851 : [(set_attr "isa" "*,sse2_noavx,avx")
3852 395 : (set_attr "mmx_isa" "native,*,*")
3853 626 : (set_attr "type" "mmxadd,sseiadd,sseiadd")
3854 : (set_attr "mode" "DI,TI,TI")])
3855 :
3856 : (define_expand "<code>v8qi3"
3857 395 : [(set (match_operand:V8QI 0 "register_operand")
3858 : (umaxmin:V8QI
3859 : (match_operand:V8QI 1 "register_operand")
3860 : (match_operand:V8QI 2 "register_operand")))]
3861 0 : "TARGET_MMX_WITH_SSE")
3862 0 :
3863 : (define_insn "<code><mode>3"
3864 : [(set (match_operand:VI1_16_32 0 "register_operand" "=x,Yw")
3865 79 : (umaxmin:VI1_16_32
3866 0 : (match_operand:VI1_16_32 1 "register_operand" "%0,Yw")
3867 79 : (match_operand:VI1_16_32 2 "register_operand" "x,Yw")))]
3868 79 : "TARGET_SSE2"
3869 0 : "@
3870 : p<maxmin_int>b\t{%2, %0|%0, %2}
3871 : vp<maxmin_int>b\t{%2, %1, %0|%0, %1, %2}"
3872 79 : [(set_attr "isa" "noavx,avx")
3873 : (set_attr "type" "sseiadd")
3874 : (set_attr "mode" "TI")])
3875 :
3876 0 : (define_insn "<code>v2hi3"
3877 0 : [(set (match_operand:V2HI 0 "register_operand" "=Yr,*x,Yv")
3878 : (umaxmin:V2HI
3879 : (match_operand:V2HI 1 "register_operand" "%0,0,Yv")
3880 : (match_operand:V2HI 2 "register_operand" "Yr,*x,Yv")))]
3881 0 : "TARGET_SSE4_1"
3882 : "@
3883 0 : p<maxmin_int>w\t{%2, %0|%0, %2}
3884 0 : p<maxmin_int>w\t{%2, %0|%0, %2}
3885 : vp<maxmin_int>w\t{%2, %1, %0|%0, %1, %2}"
3886 : [(set_attr "isa" "noavx,noavx,avx")
3887 : (set_attr "type" "sseiadd")
3888 : (set_attr "prefix_extra" "1")
3889 : (set_attr "prefix" "orig,orig,vex")
3890 : (set_attr "mode" "TI")])
3891 :
3892 : (define_insn "ssse3_abs<mode>2"
3893 : [(set (match_operand:MMXMODEI 0 "register_operand" "=y,Yv")
3894 : (abs:MMXMODEI
3895 : (match_operand:MMXMODEI 1 "register_mmxmem_operand" "ym,Yv")))]
3896 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSSE3"
3897 : "@
3898 : pabs<mmxvecsize>\t{%1, %0|%0, %1}
3899 : %vpabs<mmxvecsize>\t{%1, %0|%0, %1}"
3900 : [(set_attr "mmx_isa" "native,*")
3901 : (set_attr "type" "sselog1")
3902 : (set_attr "prefix_rep" "0")
3903 : (set_attr "prefix_extra" "1")
3904 : (set (attr "prefix_rex") (symbol_ref "x86_extended_reg_mentioned_p (insn)"))
3905 : (set_attr "mode" "DI,TI")])
3906 :
3907 : (define_expand "abs<mode>2"
3908 : [(set (match_operand:MMXMODEI 0 "register_operand")
3909 : (abs:MMXMODEI
3910 : (match_operand:MMXMODEI 1 "register_operand")))]
3911 : "TARGET_SSSE3 && TARGET_MMX_WITH_SSE")
3912 :
3913 : (define_insn "abs<mode>2"
3914 : [(set (match_operand:VI_16_32 0 "register_operand" "=Yv")
3915 : (abs:VI_16_32
3916 : (match_operand:VI_16_32 1 "register_operand" "Yv")))]
3917 : "TARGET_SSSE3"
3918 : "%vpabs<mmxvecsize>\t{%1, %0|%0, %1}"
3919 : [(set_attr "type" "sselog1")
3920 : (set_attr "prefix_rep" "0")
3921 : (set_attr "prefix_extra" "1")
3922 : (set (attr "prefix_rex") (symbol_ref "x86_extended_reg_mentioned_p (insn)"))
3923 : (set_attr "mode" "TI")])
3924 :
3925 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3926 : ;;
3927 : ;; Parallel integral shifts
3928 : ;;
3929 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3930 :
3931 : (define_insn "mmx_ashr<mode>3"
3932 : [(set (match_operand:MMXMODE24 0 "register_operand" "=y,x,<Yv_Yw>")
3933 : (ashiftrt:MMXMODE24
3934 : (match_operand:MMXMODE24 1 "register_operand" "0,0,<Yv_Yw>")
3935 : (match_operand:DI 2 "nonmemory_operand" "yN,xN,<Yv_Yw>N")))]
3936 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3937 : "@
3938 : psra<mmxvecsize>\t{%2, %0|%0, %2}
3939 : psra<mmxvecsize>\t{%2, %0|%0, %2}
3940 : vpsra<mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3941 : [(set_attr "isa" "*,sse2_noavx,avx")
3942 : (set_attr "mmx_isa" "native,*,*")
3943 : (set_attr "type" "mmxshft,sseishft,sseishft")
3944 : (set (attr "length_immediate")
3945 : (if_then_else (match_operand 2 "const_int_operand")
3946 : (const_string "1")
3947 : (const_string "0")))
3948 : (set_attr "mode" "DI,TI,TI")])
3949 :
3950 : (define_insn_and_split "*mmx_ashr<mode>3_1"
3951 : [(set (match_operand:MMXMODE24 0 "register_operand")
3952 : (lt:MMXMODE24
3953 : (match_operand:MMXMODE24 1 "register_operand")
3954 : (match_operand:MMXMODE24 2 "const0_operand")))]
3955 : "TARGET_MMX_WITH_SSE && ix86_pre_reload_split ()"
3956 : "#"
3957 : "&& 1"
3958 : [(set (match_dup 0) (ashiftrt:MMXMODE24 (match_dup 1) (match_dup 3)))]
3959 691 : "operands[3] = gen_int_mode (<mmxscalarsize> - 1, DImode);")
3960 :
3961 : (define_expand "ashr<mode>3"
3962 691 : [(set (match_operand:MMXMODE24 0 "register_operand")
3963 : (ashiftrt:MMXMODE24
3964 : (match_operand:MMXMODE24 1 "register_operand")
3965 : (match_operand:DI 2 "nonmemory_operand")))]
3966 691 : "TARGET_MMX_WITH_SSE")
3967 :
3968 : (define_insn "mmx_<insn><mode>3"
3969 : [(set (match_operand:MMXMODE248 0 "register_operand" "=y,x,<Yv_Yw>")
3970 : (any_lshift:MMXMODE248
3971 1796 : (match_operand:MMXMODE248 1 "register_operand" "0,0,<Yv_Yw>")
3972 : (match_operand:DI 2 "nonmemory_operand" "yN,xN,<Yv_Yw>N")))]
3973 1796 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
3974 1796 : "@
3975 : p<vshift><mmxvecsize>\t{%2, %0|%0, %2}
3976 : p<vshift><mmxvecsize>\t{%2, %0|%0, %2}
3977 : vp<vshift><mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
3978 1796 : [(set_attr "isa" "*,sse2_noavx,avx")
3979 : (set_attr "mmx_isa" "native,*,*")
3980 : (set_attr "type" "mmxshft,sseishft,sseishft")
3981 : (set (attr "length_immediate")
3982 0 : (if_then_else (match_operand 2 "const_int_operand")
3983 0 : (const_string "1")
3984 : (const_string "0")))
3985 : (set_attr "mode" "DI,TI,TI")])
3986 79 :
3987 : (define_split
3988 79 : [(set (match_operand:MMXMODE248 0 "register_operand")
3989 79 : (and:MMXMODE248
3990 79 : (lt:MMXMODE248
3991 : (match_operand:MMXMODE248 1 "register_operand")
3992 : (match_operand:MMXMODE248 2 "const0_operand"))
3993 : (match_operand:MMXMODE248 3 "const1_operand")))]
3994 : "TARGET_MMX_WITH_SSE && ix86_pre_reload_split ()"
3995 : [(set (match_dup 0) (lshiftrt:MMXMODE248 (match_dup 1) (match_dup 4)))]
3996 0 : "operands[4] = gen_int_mode (<mmxscalarsize> - 1, DImode);")
3997 :
3998 : (define_expand "<insn><mode>3"
3999 0 : [(set (match_operand:MMXMODE24 0 "register_operand")
4000 : (any_lshift:MMXMODE24
4001 : (match_operand:MMXMODE24 1 "register_operand")
4002 : (match_operand:DI 2 "nonmemory_operand")))]
4003 0 : "TARGET_MMX_WITH_SSE")
4004 :
4005 : (define_insn "mmx_<insn>v1si3"
4006 : [(set (match_operand:V1SI 0 "register_operand" "=x,Yw")
4007 : (any_lshift:V1SI
4008 321 : (match_operand:V1SI 1 "register_operand" "0,Yw")
4009 75 : (match_operand:DI 2 "nonmemory_operand" "xN,YwN")))]
4010 321 : "TARGET_SSE2"
4011 396 : "@
4012 97 : p<vshift>d\t{%2, %0|%0, %2}
4013 : vp<vshift>d\t{%2, %1, %0|%0, %1, %2}"
4014 : [(set_attr "isa" "noavx,avx")
4015 299 : (set_attr "type" "sseishft")
4016 : (set (attr "length_immediate")
4017 : (if_then_else (match_operand 2 "const_int_operand")
4018 : (const_string "1")
4019 0 : (const_string "0")))
4020 0 : (set_attr "mode" "TI")])
4021 :
4022 : (define_insn "<insn>v2hi3"
4023 4 : [(set (match_operand:V2HI 0 "register_operand" "=x,Yw")
4024 : (any_shift:V2HI
4025 4 : (match_operand:V2HI 1 "register_operand" "0,Yw")
4026 4 : (match_operand:DI 2 "nonmemory_operand" "xN,YwN")))]
4027 4 : "TARGET_SSE2"
4028 : "@
4029 : p<vshift>w\t{%2, %0|%0, %2}
4030 : vp<vshift>w\t{%2, %1, %0|%0, %1, %2}"
4031 : [(set_attr "isa" "noavx,avx")
4032 : (set_attr "type" "sseishft")
4033 : (set (attr "length_immediate")
4034 : (if_then_else (match_operand 2 "const_int_operand")
4035 : (const_string "1")
4036 : (const_string "0")))
4037 : (set_attr "mode" "TI")])
4038 :
4039 : (define_insn_and_split "*mmx_ashrv2hi3_1"
4040 : [(set (match_operand:V2HI 0 "register_operand")
4041 : (lt:V2HI
4042 : (match_operand:V2HI 1 "register_operand")
4043 : (match_operand:V2HI 2 "const0_operand")))]
4044 : "TARGET_SSE2 && ix86_pre_reload_split ()"
4045 : "#"
4046 : "&& 1"
4047 : [(set (match_dup 0) (ashiftrt:V2HI (match_dup 1) (match_dup 3)))]
4048 75 : "operands[3] = gen_int_mode (15, DImode);")
4049 :
4050 : (define_split
4051 75 : [(set (match_operand:V2HI 0 "register_operand")
4052 : (and:V2HI
4053 : (lt:V2HI
4054 : (match_operand:V2HI 1 "register_operand")
4055 75 : (match_operand:V2HI 2 "const0_operand"))
4056 : (match_operand:V2HI 3 "const1_operand")))]
4057 : "TARGET_SSE2 && ix86_pre_reload_split ()"
4058 : [(set (match_dup 0) (lshiftrt:V2HI (match_dup 1) (match_dup 4)))]
4059 0 : "operands[4] = gen_int_mode (15, DImode);")
4060 18 :
4061 : (define_expand "<insn>v8qi3"
4062 18 : [(set (match_operand:V8QI 0 "register_operand")
4063 18 : (any_shift:V8QI (match_operand:V8QI 1 "register_operand")
4064 18 : (match_operand:DI 2 "nonmemory_operand")))]
4065 : "TARGET_MMX_WITH_SSE"
4066 101 : {
4067 101 : ix86_expand_vecop_qihi_partial (<CODE>, operands[0],
4068 : operands[1], operands[2]);
4069 101 : DONE;
4070 : })
4071 11 :
4072 : (define_expand "<insn>v4qi3"
4073 11 : [(set (match_operand:V4QI 0 "register_operand")
4074 11 : (any_shift:V4QI (match_operand:V4QI 1 "register_operand")
4075 11 : (match_operand:DI 2 "nonmemory_operand")))]
4076 : "TARGET_SSE2"
4077 33 : {
4078 33 : ix86_expand_vecop_qihi_partial (<CODE>, operands[0],
4079 : operands[1], operands[2]);
4080 33 : DONE;
4081 : })
4082 :
4083 : (define_insn_and_split "<insn>v2qi3"
4084 83 : [(set (match_operand:V2QI 0 "register_operand" "=Q")
4085 : (any_shift:V2QI
4086 83 : (match_operand:V2QI 1 "register_operand" "0")
4087 83 : (match_operand:QI 2 "nonmemory_operand" "cI")))
4088 : (clobber (reg:CC FLAGS_REG))]
4089 1120 : "!TARGET_PARTIAL_REG_STALL || optimize_size"
4090 : "#"
4091 : "(!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun))
4092 : && reload_completed"
4093 8988 : [(parallel
4094 9 : [(set (zero_extract:HI (match_dup 3) (const_int 8) (const_int 8))
4095 : (subreg:HI
4096 8997 : (any_shift:QI
4097 9 : (subreg:QI
4098 9 : (zero_extract:HI (match_dup 4)
4099 : (const_int 8)
4100 : (const_int 8)) 0)
4101 : (match_dup 2)) 0))
4102 : (clobber (reg:CC FLAGS_REG))])
4103 : (parallel
4104 : [(set (strict_low_part (match_dup 0))
4105 : (any_shift:QI (match_dup 1) (match_dup 2)))
4106 : (clobber (reg:CC FLAGS_REG))])]
4107 83 : {
4108 83 : operands[4] = lowpart_subreg (HImode, operands[1], V2QImode);
4109 83 : operands[3] = lowpart_subreg (HImode, operands[0], V2QImode);
4110 83 : operands[1] = lowpart_subreg (QImode, operands[1], V2QImode);
4111 83 : operands[0] = lowpart_subreg (QImode, operands[0], V2QImode);
4112 : }
4113 : [(set_attr "type" "multi")
4114 : (set_attr "mode" "QI")])
4115 83 :
4116 : (define_expand "v<insn>v8qi3"
4117 : [(set (match_operand:V8QI 0 "register_operand")
4118 : (any_shift:V8QI
4119 : (match_operand:V8QI 1 "register_operand")
4120 : (match_operand:V8QI 2 "register_operand")))]
4121 : "TARGET_AVX512BW && TARGET_AVX512VL && TARGET_MMX_WITH_SSE"
4122 9 : {
4123 9 : ix86_expand_vecop_qihi_partial (<CODE>, operands[0],
4124 83 : operands[1], operands[2]);
4125 9 : DONE;
4126 : })
4127 :
4128 : (define_expand "v<insn>v4qi3"
4129 6 : [(set (match_operand:V4QI 0 "register_operand")
4130 : (any_shift:V4QI
4131 6 : (match_operand:V4QI 1 "register_operand")
4132 6 : (match_operand:V4QI 2 "register_operand")))]
4133 6 : "TARGET_AVX512BW && TARGET_AVX512VL"
4134 4 : {
4135 4 : ix86_expand_vecop_qihi_partial (<CODE>, operands[0],
4136 : operands[1], operands[2]);
4137 4 : DONE;
4138 : })
4139 2 :
4140 : (define_expand "vec_shl_<mode>"
4141 2 : [(set (match_operand:V248FI 0 "register_operand")
4142 2 : (ashift:V1DI
4143 2 : (match_operand:V248FI 1 "nonimmediate_operand")
4144 : (match_operand:DI 2 "nonmemory_operand")))]
4145 : "TARGET_MMX_WITH_SSE"
4146 9 : {
4147 14 : rtx op0 = gen_reg_rtx (V1DImode);
4148 9 : rtx op1 = force_reg (<MODE>mode, operands[1]);
4149 :
4150 9 : emit_insn (gen_mmx_ashlv1di3
4151 9 : (op0, gen_lowpart (V1DImode, op1), operands[2]));
4152 9 : emit_move_insn (operands[0], gen_lowpart (<MODE>mode, op0));
4153 9 : DONE;
4154 5 : })
4155 5 :
4156 : (define_expand "vec_shl_<mode>"
4157 : [(set (match_operand:V24FI_32 0 "register_operand")
4158 : (ashift:V1SI
4159 : (match_operand:V24FI_32 1 "nonimmediate_operand")
4160 : (match_operand:DI 2 "nonmemory_operand")))]
4161 : "TARGET_SSE2"
4162 4 : {
4163 8 : rtx op0 = gen_reg_rtx (V1SImode);
4164 4 : rtx op1 = force_reg (<MODE>mode, operands[1]);
4165 :
4166 4 : emit_insn (gen_mmx_ashlv1si3
4167 1061 : (op0, gen_lowpart (V1SImode, op1), operands[2]));
4168 4 : emit_move_insn (operands[0], gen_lowpart (<MODE>mode, op0));
4169 1061 : DONE;
4170 1061 : })
4171 1061 :
4172 : (define_expand "vec_shr_<mode>"
4173 : [(set (match_operand:V248FI 0 "register_operand")
4174 : (lshiftrt:V1DI
4175 : (match_operand:V248FI 1 "nonimmediate_operand")
4176 : (match_operand:DI 2 "nonmemory_operand")))]
4177 : "TARGET_MMX_WITH_SSE"
4178 1085 : {
4179 1113 : rtx op0 = gen_reg_rtx (V1DImode);
4180 1085 : rtx op1 = force_reg (<MODE>mode, operands[1]);
4181 :
4182 1085 : emit_insn (gen_mmx_lshrv1di3
4183 1085 : (op0, gen_lowpart (V1DImode, op1), operands[2]));
4184 1085 : emit_move_insn (operands[0], gen_lowpart (<MODE>mode, op0));
4185 1085 : DONE;
4186 28 : })
4187 28 :
4188 : (define_expand "vec_shr_<mode>"
4189 : [(set (match_operand:V24FI_32 0 "register_operand")
4190 : (lshiftrt:V1SI
4191 : (match_operand:V24FI_32 1 "nonimmediate_operand")
4192 : (match_operand:DI 2 "nonmemory_operand")))]
4193 : "TARGET_SSE2"
4194 241 : {
4195 482 : rtx op0 = gen_reg_rtx (V1SImode);
4196 241 : rtx op1 = force_reg (<MODE>mode, operands[1]);
4197 :
4198 241 : emit_insn (gen_mmx_lshrv1si3
4199 313 : (op0, gen_lowpart (V1SImode, op1), operands[2]));
4200 241 : emit_move_insn (operands[0], gen_lowpart (<MODE>mode, op0));
4201 313 : DONE;
4202 313 : })
4203 313 :
4204 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4205 : ;;
4206 : ;; Parallel integral comparisons
4207 : ;;
4208 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4209 :
4210 : (define_expand "mmx_eq<mode>3"
4211 : [(set (match_operand:MMXMODEI 0 "register_operand")
4212 : (eq:MMXMODEI
4213 : (match_operand:MMXMODEI 1 "register_mmxmem_operand")
4214 : (match_operand:MMXMODEI 2 "register_mmxmem_operand")))]
4215 823 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4216 105 : "ix86_fixup_binary_operands_no_copy (EQ, <MODE>mode, operands);")
4217 823 :
4218 823 : (define_insn "*mmx_eq<mode>3"
4219 823 : [(set (match_operand:MMXMODEI 0 "register_operand" "=y,x,x")
4220 105 : (eq:MMXMODEI
4221 : (match_operand:MMXMODEI 1 "register_mmxmem_operand" "%0,0,x")
4222 : (match_operand:MMXMODEI 2 "register_mmxmem_operand" "ym,x,x")))]
4223 52 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
4224 11936 : && ix86_binary_operator_ok (EQ, <MODE>mode, operands)"
4225 : "@
4226 : pcmpeq<mmxvecsize>\t{%2, %0|%0, %2}
4227 : pcmpeq<mmxvecsize>\t{%2, %0|%0, %2}
4228 13848 : vpcmpeq<mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
4229 190 : [(set_attr "isa" "*,sse2_noavx,avx")
4230 : (set_attr "mmx_isa" "native,*,*")
4231 14038 : (set_attr "type" "mmxcmp,ssecmp,ssecmp")
4232 190 : (set_attr "mode" "DI,TI,TI")])
4233 190 :
4234 : (define_insn "*eq<mode>3"
4235 : [(set (match_operand:VI_16_32 0 "register_operand" "=x,x")
4236 : (eq:VI_16_32
4237 : (match_operand:VI_16_32 1 "register_operand" "%0,x")
4238 : (match_operand:VI_16_32 2 "register_operand" "x,x")))]
4239 : "TARGET_SSE2"
4240 : "@
4241 : pcmpeq<mmxvecsize>\t{%2, %0|%0, %2}
4242 : vpcmpeq<mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
4243 : [(set_attr "isa" "noavx,avx")
4244 : (set_attr "type" "ssecmp")
4245 : (set_attr "mode" "TI")])
4246 :
4247 : (define_insn "mmx_gt<mode>3"
4248 : [(set (match_operand:MMXMODEI 0 "register_operand" "=y,x,x")
4249 : (gt:MMXMODEI
4250 : (match_operand:MMXMODEI 1 "register_operand" "0,0,x")
4251 : (match_operand:MMXMODEI 2 "register_mmxmem_operand" "ym,x,x")))]
4252 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4253 : "@
4254 : pcmpgt<mmxvecsize>\t{%2, %0|%0, %2}
4255 : pcmpgt<mmxvecsize>\t{%2, %0|%0, %2}
4256 : vpcmpgt<mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
4257 : [(set_attr "isa" "*,sse2_noavx,avx")
4258 : (set_attr "mmx_isa" "native,*,*")
4259 : (set_attr "type" "mmxcmp,ssecmp,ssecmp")
4260 : (set_attr "mode" "DI,TI,TI")])
4261 :
4262 : (define_insn "*gt<mode>3"
4263 : [(set (match_operand:VI_16_32 0 "register_operand" "=x,x")
4264 : (gt:VI_16_32
4265 : (match_operand:VI_16_32 1 "register_operand" "0,x")
4266 : (match_operand:VI_16_32 2 "register_operand" "x,x")))]
4267 : "TARGET_SSE2"
4268 : "@
4269 : pcmpgt<mmxvecsize>\t{%2, %0|%0, %2}
4270 : vpcmpgt<mmxvecsize>\t{%2, %1, %0|%0, %1, %2}"
4271 : [(set_attr "isa" "noavx,avx")
4272 : (set_attr "type" "ssecmp")
4273 : (set_attr "mode" "TI")])
4274 :
4275 : (define_insn "*xop_maskcmp<mode>3"
4276 : [(set (match_operand:MMXMODEI 0 "register_operand" "=x")
4277 : (match_operator:MMXMODEI 1 "ix86_comparison_int_operator"
4278 : [(match_operand:MMXMODEI 2 "register_operand" "x")
4279 : (match_operand:MMXMODEI 3 "register_operand" "x")]))]
4280 : "TARGET_XOP"
4281 : "vpcom%Y1<mmxvecsize>\t{%3, %2, %0|%0, %2, %3}"
4282 : [(set_attr "type" "sse4arg")
4283 : (set_attr "mode" "TI")])
4284 :
4285 : (define_insn "*xop_maskcmp<mode>3"
4286 : [(set (match_operand:VI_16_32 0 "register_operand" "=x")
4287 : (match_operator:VI_16_32 1 "ix86_comparison_int_operator"
4288 : [(match_operand:VI_16_32 2 "register_operand" "x")
4289 : (match_operand:VI_16_32 3 "register_operand" "x")]))]
4290 : "TARGET_XOP"
4291 : "vpcom%Y1<mmxvecsize>\t{%3, %2, %0|%0, %2, %3}"
4292 : [(set_attr "type" "sse4arg")
4293 : (set_attr "mode" "TI")])
4294 :
4295 : (define_insn "*xop_maskcmp_uns<mode>3"
4296 : [(set (match_operand:MMXMODEI 0 "register_operand" "=x")
4297 : (match_operator:MMXMODEI 1 "ix86_comparison_uns_operator"
4298 : [(match_operand:MMXMODEI 2 "register_operand" "x")
4299 : (match_operand:MMXMODEI 3 "register_operand" "x")]))]
4300 : "TARGET_XOP"
4301 : "vpcom%Y1u<mmxvecsize>\t{%3, %2, %0|%0, %2, %3}"
4302 : [(set_attr "type" "sse4arg")
4303 : (set_attr "mode" "TI")])
4304 :
4305 : (define_insn "*xop_maskcmp_uns<mode>3"
4306 : [(set (match_operand:VI_16_32 0 "register_operand" "=x")
4307 : (match_operator:VI_16_32 1 "ix86_comparison_uns_operator"
4308 : [(match_operand:VI_16_32 2 "register_operand" "x")
4309 : (match_operand:VI_16_32 3 "register_operand" "x")]))]
4310 : "TARGET_XOP"
4311 : "vpcom%Y1u<mmxvecsize>\t{%3, %2, %0|%0, %2, %3}"
4312 : [(set_attr "type" "sse4arg")
4313 : (set_attr "mode" "TI")])
4314 :
4315 : (define_expand "vec_cmp<mode><mode>"
4316 : [(set (match_operand:MMXMODEI 0 "register_operand")
4317 : (match_operator:MMXMODEI 1 ""
4318 : [(match_operand:MMXMODEI 2 "register_operand")
4319 : (match_operand:MMXMODEI 3 "register_operand")]))]
4320 : "TARGET_MMX_WITH_SSE"
4321 853 : {
4322 853 : bool ok = ix86_expand_int_vec_cmp (operands);
4323 853 : gcc_assert (ok);
4324 853 : DONE;
4325 : })
4326 :
4327 : (define_expand "vec_cmp<mode><mode>"
4328 : [(set (match_operand:VI_16_32 0 "register_operand")
4329 : (match_operator:VI_16_32 1 ""
4330 : [(match_operand:VI_16_32 2 "register_operand")
4331 : (match_operand:VI_16_32 3 "register_operand")]))]
4332 : "TARGET_SSE2"
4333 127 : {
4334 127 : bool ok = ix86_expand_int_vec_cmp (operands);
4335 127 : gcc_assert (ok);
4336 127 : DONE;
4337 : })
4338 255 :
4339 : (define_expand "vec_cmpu<mode><mode>"
4340 255 : [(set (match_operand:MMXMODEI 0 "register_operand")
4341 255 : (match_operator:MMXMODEI 1 ""
4342 255 : [(match_operand:MMXMODEI 2 "register_operand")
4343 : (match_operand:MMXMODEI 3 "register_operand")]))]
4344 : "TARGET_MMX_WITH_SSE"
4345 255 : {
4346 255 : bool ok = ix86_expand_int_vec_cmp (operands);
4347 255 : gcc_assert (ok);
4348 255 : DONE;
4349 : })
4350 111 :
4351 : (define_expand "vec_cmpu<mode><mode>"
4352 111 : [(set (match_operand:VI_16_32 0 "register_operand")
4353 111 : (match_operator:VI_16_32 1 ""
4354 111 : [(match_operand:VI_16_32 2 "register_operand")
4355 : (match_operand:VI_16_32 3 "register_operand")]))]
4356 : "TARGET_SSE2"
4357 111 : {
4358 111 : bool ok = ix86_expand_int_vec_cmp (operands);
4359 111 : gcc_assert (ok);
4360 111 : DONE;
4361 : })
4362 269 :
4363 : (define_expand "vcond_mask_<mode><mmxintvecmodelower>"
4364 269 : [(set (match_operand:MMXMODEI 0 "register_operand")
4365 269 : (vec_merge:MMXMODEI
4366 269 : (match_operand:MMXMODEI 1 "vector_or_const_vector_operand")
4367 : (match_operand:MMXMODEI 2 "vector_or_const_vector_operand")
4368 : (match_operand:<mmxintvecmode> 3 "register_operand")))]
4369 : "TARGET_MMX_WITH_SSE"
4370 269 : {
4371 269 : ix86_expand_sse_movcc (operands[0], operands[3],
4372 : operands[1], operands[2]);
4373 269 : DONE;
4374 234 : })
4375 :
4376 234 : (define_expand "vcond_mask_v2sfv2si"
4377 234 : [(set (match_operand:V2SF 0 "register_operand")
4378 234 : (vec_merge:V2SF
4379 : (match_operand:V2SF 1 "vector_or_const_vector_operand")
4380 : (match_operand:V2SF 2 "vector_or_const_vector_operand")
4381 : (match_operand:V2SI 3 "register_operand")))]
4382 : "TARGET_MMX_WITH_SSE"
4383 144 : {
4384 : /* Without vec_cmpv2sfv2si no min or max can be formed, so widening
4385 : would only add zero extensions. */
4386 144 : if (!ix86_partial_vec_fp_math)
4387 36 : {
4388 3 : ix86_expand_sse_movcc (operands[0], operands[3],
4389 36 : operands[1], operands[2]);
4390 39 : DONE;
4391 39 : }
4392 :
4393 : /* Do the select in V4SFmode on operands widened the same way as
4394 : vec_cmpv2sfv2si widens its operands, so that combine can turn a
4395 : select of the compared values into a min or max. */
4396 : rtx ops[2];
4397 432 : for (int i = 0; i < 2; i++)
4398 : {
4399 288 : rtx op = operands[i + 1];
4400 : /* Widen a constant with zeros, so that a zero arm is still
4401 : CONST0_RTX for ix86_expand_sse_movcc. */
4402 288 : if (CONST_VECTOR_P (op))
4403 57 : ops[i] = simplify_gen_binary (VEC_CONCAT, V4SFmode, op,
4404 : CONST0_RTX (V2SFmode));
4405 : else
4406 : {
4407 231 : ops[i] = gen_reg_rtx (V4SFmode);
4408 231 : emit_insn (gen_movq_v2sf_to_sse (ops[i], op));
4409 : }
4410 : }
4411 144 : rtx tmp = gen_reg_rtx (V4SFmode);
4412 144 : rtx mask = force_lowpart_subreg (V4SImode, operands[3], V2SImode);
4413 144 : ix86_expand_sse_movcc (tmp, mask, ops[0], ops[1]);
4414 144 : emit_move_insn (operands[0], lowpart_subreg (V2SFmode, tmp, V4SFmode));
4415 144 : DONE;
4416 : })
4417 :
4418 : (define_expand "vcond_mask_<mode><mode>"
4419 : [(set (match_operand:VI_16_32 0 "register_operand")
4420 : (vec_merge:VI_16_32
4421 : (match_operand:VI_16_32 1 "vector_or_const_vector_operand")
4422 : (match_operand:VI_16_32 2 "vector_or_const_vector_operand")
4423 : (match_operand:VI_16_32 3 "register_operand")))]
4424 : "TARGET_SSE2"
4425 126 : {
4426 126 : ix86_expand_sse_movcc (operands[0], operands[3],
4427 : operands[1], operands[2]);
4428 126 : DONE;
4429 25 : })
4430 :
4431 25 : (define_insn "mmx_pblendvb_v8qi"
4432 25 : [(set (match_operand:V8QI 0 "register_operand" "=Yr,*x,x")
4433 25 : (unspec:V8QI
4434 : [(match_operand:V8QI 1 "register_operand" "0,0,x")
4435 : (match_operand:V8QI 2 "register_operand" "Yr,*x,x")
4436 : (match_operand:V8QI 3 "register_operand" "Yz,Yz,x")]
4437 : UNSPEC_BLENDV))]
4438 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
4439 : "@
4440 : pblendvb\t{%3, %2, %0|%0, %2, %3}
4441 : pblendvb\t{%3, %2, %0|%0, %2, %3}
4442 : vpblendvb\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4443 18 : [(set_attr "isa" "noavx,noavx,avx")
4444 : (set_attr "type" "ssemov")
4445 18 : (set_attr "c86_attr" "blendv")
4446 18 : (set_attr "prefix_extra" "1")
4447 : (set_attr "length_immediate" "1")
4448 : (set_attr "prefix" "orig,orig,vex")
4449 : (set_attr "btver2_decode" "vector")
4450 : (set_attr "mode" "TI")])
4451 :
4452 : (define_insn_and_split "*mmx_pblendvb_v8qi_1"
4453 : [(set (match_operand:V8QI 0 "register_operand")
4454 : (unspec:V8QI
4455 : [(match_operand:V8QI 1 "register_operand")
4456 : (match_operand:V8QI 2 "register_operand")
4457 : (eq:V8QI
4458 : (eq:V8QI
4459 : (match_operand:V8QI 3 "register_operand")
4460 : (match_operand:V8QI 4 "nonmemory_operand"))
4461 : (match_operand:V8QI 5 "const0_operand"))]
4462 : UNSPEC_BLENDV))]
4463 : "TARGET_MMX_WITH_SSE && ix86_pre_reload_split ()"
4464 : "#"
4465 : "&& 1"
4466 : [(set (match_dup 6)
4467 : (eq:V8QI (match_dup 3) (match_dup 7)))
4468 : (set (match_dup 0)
4469 : (unspec:V8QI
4470 : [(match_dup 2)
4471 : (match_dup 1)
4472 : (match_dup 6)]
4473 : UNSPEC_BLENDV))]
4474 0 : {
4475 0 : operands[6] = gen_reg_rtx (V8QImode);
4476 0 : operands[7] = force_reg (V8QImode, operands[4]);
4477 : })
4478 :
4479 : (define_insn_and_split "*mmx_pblendvb_v8qi_2"
4480 0 : [(set (match_operand:V8QI 0 "register_operand")
4481 : (unspec:V8QI
4482 : [(match_operand:V8QI 1 "register_operand")
4483 : (match_operand:V8QI 2 "register_operand")
4484 : (subreg:V8QI
4485 0 : (eq:MMXMODE24
4486 : (eq:MMXMODE24
4487 : (match_operand:MMXMODE24 3 "register_operand")
4488 : (match_operand:MMXMODE24 4 "nonmemory_operand"))
4489 : (match_operand:MMXMODE24 5 "const0_operand")) 0)]
4490 : UNSPEC_BLENDV))]
4491 7255 : "TARGET_MMX_WITH_SSE && ix86_pre_reload_split ()"
4492 : "#"
4493 0 : "&& 1"
4494 0 : [(set (match_dup 6)
4495 43780 : (eq:MMXMODE24 (match_dup 3) (match_dup 8)))
4496 : (set (match_dup 0)
4497 : (unspec:V8QI
4498 43780 : [(match_dup 2)
4499 : (match_dup 1)
4500 : (match_dup 7)]
4501 : UNSPEC_BLENDV))]
4502 3 : {
4503 3 : operands[6] = gen_reg_rtx (<MODE>mode);
4504 3 : operands[7] = lowpart_subreg (V8QImode, operands[6], <MODE>mode);
4505 3 : operands[8] = force_reg (<MODE>mode, operands[4]);
4506 : })
4507 :
4508 : (define_insn "mmx_pblendvb_<mode>"
4509 3 : [(set (match_operand:VI_16_32 0 "register_operand" "=Yr,*x,x")
4510 : (unspec:VI_16_32
4511 : [(match_operand:VI_16_32 1 "register_operand" "0,0,x")
4512 : (match_operand:VI_16_32 2 "register_operand" "Yr,*x,x")
4513 : (match_operand:VI_16_32 3 "register_operand" "Yz,Yz,x")]
4514 3 : UNSPEC_BLENDV))]
4515 : "TARGET_SSE4_1"
4516 : "@
4517 : pblendvb\t{%3, %2, %0|%0, %2, %3}
4518 : pblendvb\t{%3, %2, %0|%0, %2, %3}
4519 15 : vpblendvb\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4520 15 : [(set_attr "isa" "noavx,noavx,avx")
4521 15 : (set_attr "type" "ssemov")
4522 30 : (set_attr "c86_attr" "blendv")
4523 30 : (set_attr "prefix_extra" "1")
4524 : (set_attr "length_immediate" "1")
4525 : (set_attr "prefix" "orig,orig,vex")
4526 : (set_attr "btver2_decode" "vector")
4527 : (set_attr "mode" "TI")])
4528 :
4529 : (define_insn_and_split "*mmx_pblendvb_<mode>_1"
4530 : [(set (match_operand:VI_16_32 0 "register_operand")
4531 : (unspec:VI_16_32
4532 : [(match_operand:VI_16_32 1 "register_operand")
4533 : (match_operand:VI_16_32 2 "register_operand")
4534 : (eq:VI_16_32
4535 : (eq:VI_16_32
4536 : (match_operand:VI_16_32 3 "register_operand")
4537 : (match_operand:VI_16_32 4 "nonmemory_operand"))
4538 : (match_operand:VI_16_32 5 "const0_operand"))]
4539 : UNSPEC_BLENDV))]
4540 3898 : "TARGET_SSE2 && ix86_pre_reload_split ()"
4541 : "#"
4542 3898 : "&& 1"
4543 : [(set (match_dup 6)
4544 : (eq:VI_16_32 (match_dup 3) (match_dup 7)))
4545 : (set (match_dup 0)
4546 2412 : (unspec:VI_16_32
4547 : [(match_dup 2)
4548 : (match_dup 1)
4549 2412 : (match_dup 6)]
4550 : UNSPEC_BLENDV))]
4551 18 : {
4552 18 : operands[6] = gen_reg_rtx (<MODE>mode);
4553 18 : operands[7] = force_reg (<MODE>mode, operands[4]);
4554 : })
4555 :
4556 : (define_insn_and_split "*mmx_pblendvb_v4qi_2"
4557 18 : [(set (match_operand:V4QI 0 "register_operand")
4558 : (unspec:V4QI
4559 : [(match_operand:V4QI 1 "register_operand")
4560 : (match_operand:V4QI 2 "register_operand")
4561 : (subreg:V4QI
4562 18 : (eq:V2HI
4563 : (eq:V2HI
4564 : (match_operand:V2HI 3 "register_operand")
4565 : (match_operand:V2HI 4 "nonmemory_operand"))
4566 : (match_operand:V2HI 5 "const0_operand")) 0)]
4567 25 : UNSPEC_BLENDV))]
4568 43794 : "TARGET_SSE2 && ix86_pre_reload_split ()"
4569 25 : "#"
4570 39 : "&& 1"
4571 39 : [(set (match_dup 6)
4572 0 : (eq:V2HI (match_dup 3) (match_dup 8)))
4573 : (set (match_dup 0)
4574 : (unspec:V4QI
4575 0 : [(match_dup 2)
4576 : (match_dup 1)
4577 : (match_dup 7)]
4578 : UNSPEC_BLENDV))]
4579 15 : {
4580 15 : operands[6] = gen_reg_rtx (V2HImode);
4581 15 : operands[7] = lowpart_subreg (V4QImode, operands[6], V2HImode);
4582 15 : operands[8] = force_reg (V2HImode, operands[4]);
4583 : })
4584 :
4585 : ;; XOP parallel XMM conditional moves
4586 15 : (define_insn "*xop_pcmov_<mode>"
4587 : [(set (match_operand:MMXMODE124 0 "register_operand" "=x")
4588 : (if_then_else:MMXMODE124
4589 : (match_operand:MMXMODE124 3 "register_operand" "x")
4590 : (match_operand:MMXMODE124 1 "register_operand" "x")
4591 15 : (match_operand:MMXMODE124 2 "register_operand" "x")))]
4592 279 : "TARGET_XOP && TARGET_MMX_WITH_SSE"
4593 : "vpcmov\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4594 : [(set_attr "type" "sse4arg")
4595 : (set_attr "mode" "TI")])
4596 7870 :
4597 8 : (define_insn "*xop_pcmov_<mode>"
4598 : [(set (match_operand:V4F_64 0 "register_operand" "=x")
4599 7878 : (if_then_else:V4F_64
4600 8 : (match_operand:V4F_64 3 "register_operand" "x")
4601 : (match_operand:V4F_64 1 "register_operand" "x")
4602 : (match_operand:V4F_64 2 "register_operand" "x")))]
4603 : "TARGET_XOP && TARGET_MMX_WITH_SSE"
4604 : "vpcmov\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4605 : [(set_attr "type" "sse4arg")
4606 : (set_attr "mode" "TI")])
4607 :
4608 : (define_insn "*xop_pcmov_<mode>"
4609 : [(set (match_operand:VI_16_32 0 "register_operand" "=x")
4610 : (if_then_else:VI_16_32
4611 : (match_operand:VI_16_32 3 "register_operand" "x")
4612 : (match_operand:VI_16_32 1 "register_operand" "x")
4613 : (match_operand:VI_16_32 2 "register_operand" "x")))]
4614 : "TARGET_XOP"
4615 : "vpcmov\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4616 : [(set_attr "type" "sse4arg")
4617 : (set_attr "mode" "TI")])
4618 :
4619 : (define_insn "*xop_pcmov_<mode>"
4620 : [(set (match_operand:V2F_32 0 "register_operand" "=x")
4621 : (if_then_else:V2F_32
4622 : (match_operand:V2F_32 3 "register_operand" "x")
4623 : (match_operand:V2F_32 1 "register_operand" "x")
4624 : (match_operand:V2F_32 2 "register_operand" "x")))]
4625 : "TARGET_XOP"
4626 : "vpcmov\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4627 : [(set_attr "type" "sse4arg")
4628 : (set_attr "mode" "TI")])
4629 :
4630 : ;; XOP permute instructions
4631 : (define_insn "mmx_ppermv64"
4632 : [(set (match_operand:V8QI 0 "register_operand" "=x")
4633 : (unspec:V8QI
4634 : [(match_operand:V8QI 1 "register_operand" "x")
4635 : (match_operand:V8QI 2 "register_operand" "x")
4636 : (match_operand:V16QI 3 "nonimmediate_operand" "xm")]
4637 : UNSPEC_XOP_PERMUTE))]
4638 : "TARGET_XOP && TARGET_MMX_WITH_SSE"
4639 : "vpperm\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4640 : [(set_attr "type" "sse4arg")
4641 : (set_attr "mode" "TI")])
4642 :
4643 : (define_insn "mmx_ppermv32"
4644 : [(set (match_operand:V4QI 0 "register_operand" "=x")
4645 : (unspec:V4QI
4646 : [(match_operand:V4QI 1 "register_operand" "x")
4647 : (match_operand:V4QI 2 "register_operand" "x")
4648 : (match_operand:V16QI 3 "nonimmediate_operand" "xm")]
4649 : UNSPEC_XOP_PERMUTE))]
4650 : "TARGET_XOP"
4651 : "vpperm\t{%3, %2, %1, %0|%0, %1, %2, %3}"
4652 : [(set_attr "type" "sse4arg")
4653 : (set_attr "mode" "TI")])
4654 :
4655 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4656 : ;;
4657 : ;; Parallel integral logical operations
4658 : ;;
4659 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4660 :
4661 : (define_expand "one_cmpl<mode>2"
4662 : [(set (match_operand:MMXMODEI 0 "register_operand")
4663 : (xor:MMXMODEI
4664 : (match_operand:MMXMODEI 1 "register_operand")
4665 : (match_dup 2)))]
4666 : "TARGET_MMX_WITH_SSE"
4667 65 : "operands[2] = force_reg (<MODE>mode, CONSTM1_RTX (<MODE>mode));")
4668 :
4669 : (define_insn "one_cmpl<mode>2"
4670 : [(set (match_operand:VI_16_32 0 "register_operand" "=?r,&x,&v")
4671 65 : (not:VI_16_32
4672 : (match_operand:VI_16_32 1 "register_operand" "0,x,v")))]
4673 : ""
4674 : "#"
4675 65 : [(set_attr "isa" "*,sse2,avx512vl")
4676 : (set_attr "type" "negnot,sselog1,sselog1")
4677 : (set_attr "mode" "SI,TI,TI")])
4678 :
4679 : (define_split
4680 : [(set (match_operand:VI_16_32 0 "general_reg_operand")
4681 11 : (not:VI_16_32
4682 : (match_operand:VI_16_32 1 "general_reg_operand")))]
4683 11 : "reload_completed"
4684 11 : [(set (match_dup 0)
4685 : (not:SI (match_dup 1)))]
4686 15 : {
4687 15 : operands[1] = lowpart_subreg (SImode, operands[1], <MODE>mode);
4688 15 : operands[0] = lowpart_subreg (SImode, operands[0], <MODE>mode);
4689 : })
4690 :
4691 : (define_split
4692 15 : [(set (match_operand:VI_16_32 0 "sse_reg_operand")
4693 : (not:VI_16_32
4694 : (match_operand:VI_16_32 1 "sse_reg_operand")))]
4695 15 : "TARGET_SSE2 && reload_completed"
4696 : [(set (match_dup 0) (match_dup 2))
4697 : (set (match_dup 0)
4698 : (xor:V16QI
4699 : (match_dup 0) (match_dup 1)))]
4700 44 : {
4701 18 : operands[2] = CONSTM1_RTX (V16QImode);
4702 44 : operands[1] = lowpart_subreg (V16QImode, operands[1], <MODE>mode);
4703 44 : operands[0] = lowpart_subreg (V16QImode, operands[0], <MODE>mode);
4704 : })
4705 :
4706 : (define_expand "andn<mode>3"
4707 44 : [(set (match_operand:MMXMODEI 0 "register_operand")
4708 : (and:MMXMODEI
4709 : (not:MMXMODEI (match_operand:MMXMODEI 2 "register_operand"))
4710 : (match_operand:MMXMODEI 1 "register_operand")))]
4711 18 : "TARGET_MMX_WITH_SSE")
4712 0 :
4713 : (define_insn "mmx_andnot<mode>3"
4714 : [(set (match_operand:MMXMODEI 0 "register_operand" "=y,x,x,v")
4715 : (and:MMXMODEI
4716 2 : (not:MMXMODEI (match_operand:MMXMODEI 1 "register_operand" "0,0,x,v"))
4717 1 : (match_operand:MMXMODEI 2 "register_mmxmem_operand" "ym,x,x,v")))]
4718 2 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4719 3 : "@
4720 1 : pandn\t{%2, %0|%0, %2}
4721 : pandn\t{%2, %0|%0, %2}
4722 : vpandn\t{%2, %1, %0|%0, %1, %2}
4723 : vpandnd\t{%2, %1, %0|%0, %1, %2}"
4724 : [(set_attr "isa" "*,sse2_noavx,avx,avx512vl")
4725 : (set_attr "mmx_isa" "native,*,*,*")
4726 : (set_attr "type" "mmxadd,sselog,sselog,sselog")
4727 : (set_attr "mode" "DI,TI,TI,TI")])
4728 :
4729 : (define_insn "*andnot<mode>3"
4730 : [(set (match_operand:VI_16_32 0 "register_operand" "=?&r,?r,x,x,v")
4731 : (and:VI_16_32
4732 : (not:VI_16_32
4733 : (match_operand:VI_16_32 1 "register_operand" "0,r,0,x,v"))
4734 : (match_operand:VI_16_32 2 "register_operand" "r,r,x,x,v")))
4735 : (clobber (reg:CC FLAGS_REG))]
4736 : ""
4737 : "#"
4738 : [(set_attr "isa" "*,bmi,sse2_noavx,avx,avx512vl")
4739 : (set_attr "type" "alu,bitmanip,sselog,sselog,sselog")
4740 : (set_attr "mode" "SI,SI,TI,TI,TI")])
4741 :
4742 : (define_split
4743 : [(set (match_operand:VI_16_32 0 "general_reg_operand")
4744 : (and:VI_16_32
4745 : (not:VI_16_32 (match_operand:VI_16_32 1 "general_reg_operand"))
4746 : (match_operand:VI_16_32 2 "general_reg_operand")))
4747 : (clobber (reg:CC FLAGS_REG))]
4748 3 : "TARGET_BMI && reload_completed"
4749 : [(parallel
4750 : [(set (match_dup 0)
4751 : (and:SI (not:SI (match_dup 1)) (match_dup 2)))
4752 3 : (clobber (reg:CC FLAGS_REG))])]
4753 0 : {
4754 0 : operands[2] = lowpart_subreg (SImode, operands[2], <MODE>mode);
4755 3 : operands[1] = lowpart_subreg (SImode, operands[1], <MODE>mode);
4756 0 : operands[0] = lowpart_subreg (SImode, operands[0], <MODE>mode);
4757 : })
4758 :
4759 : (define_split
4760 0 : [(set (match_operand:VI_16_32 0 "general_reg_operand")
4761 : (and:VI_16_32
4762 : (not:VI_16_32 (match_operand:VI_16_32 1 "general_reg_operand"))
4763 : (match_operand:VI_16_32 2 "general_reg_operand")))
4764 : (clobber (reg:CC FLAGS_REG))]
4765 3 : "!TARGET_BMI && reload_completed"
4766 : [(set (match_dup 0)
4767 : (not:SI (match_dup 1)))
4768 : (parallel
4769 1 : [(set (match_dup 0)
4770 : (and:SI (match_dup 0) (match_dup 2)))
4771 58 : (clobber (reg:CC FLAGS_REG))])]
4772 4 : {
4773 61 : operands[2] = lowpart_subreg (SImode, operands[2], <MODE>mode);
4774 61 : operands[1] = lowpart_subreg (SImode, operands[1], <MODE>mode);
4775 3 : operands[0] = lowpart_subreg (SImode, operands[0], <MODE>mode);
4776 : })
4777 :
4778 : (define_split
4779 3 : [(set (match_operand:VI_16_32 0 "sse_reg_operand")
4780 : (and:VI_16_32
4781 : (not:VI_16_32 (match_operand:VI_16_32 1 "sse_reg_operand"))
4782 : (match_operand:VI_16_32 2 "sse_reg_operand")))
4783 : (clobber (reg:CC FLAGS_REG))]
4784 3 : "TARGET_SSE2 && reload_completed"
4785 : [(set (match_dup 0)
4786 : (and:V16QI (not:V16QI (match_dup 1)) (match_dup 2)))]
4787 58 : {
4788 58 : operands[2] = lowpart_subreg (V16QImode, operands[2], <MODE>mode);
4789 58 : operands[1] = lowpart_subreg (V16QImode, operands[1], <MODE>mode);
4790 58 : operands[0] = lowpart_subreg (V16QImode, operands[0], <MODE>mode);
4791 0 : })
4792 0 :
4793 0 : (define_expand "mmx_<code><mode>3"
4794 58 : [(set (match_operand:MMXMODEI 0 "register_operand")
4795 : (any_logic:MMXMODEI
4796 : (match_operand:MMXMODEI 1 "register_mmxmem_operand")
4797 : (match_operand:MMXMODEI 2 "register_mmxmem_operand")))]
4798 58 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4799 39 : "ix86_fixup_binary_operands_no_copy (<CODE>, <MODE>mode, operands);")
4800 :
4801 : (define_expand "<code><mode>3"
4802 : [(set (match_operand:MMXMODEI 0 "register_operand")
4803 148 : (any_logic:MMXMODEI
4804 : (match_operand:MMXMODEI 1 "register_operand")
4805 39 : (match_operand:MMXMODEI 2 "register_operand")))]
4806 39 : "TARGET_MMX_WITH_SSE")
4807 109 :
4808 : (define_insn "*mmx_<code><mode>3"
4809 : [(set (match_operand:MMXMODEI 0 "register_operand" "=y,x,x,v")
4810 : (any_logic:MMXMODEI
4811 : (match_operand:MMXMODEI 1 "register_mmxmem_operand" "%0,0,x,v")
4812 1897 : (match_operand:MMXMODEI 2 "register_mmxmem_operand" "ym,x,x,v")))]
4813 248 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
4814 33711 : && ix86_binary_operator_ok (<CODE>, <MODE>mode, operands)"
4815 1897 : "@
4816 70 : p<logic>\t{%2, %0|%0, %2}
4817 : p<logic>\t{%2, %0|%0, %2}
4818 29899 : vp<logic>\t{%2, %1, %0|%0, %1, %2}
4819 1827 : vp<logic>d\t{%2, %1, %0|%0, %1, %2}"
4820 : [(set_attr "isa" "*,sse2_noavx,avx,avx512vl")
4821 28200 : (set_attr "mmx_isa" "native,*,*,*")
4822 : (set_attr "type" "mmxadd,sselog,sselog,sselog")
4823 1260 : (set_attr "mode" "DI,TI,TI,TI")])
4824 1260 :
4825 : (define_expand "<code><mode>3"
4826 : [(set (match_operand:VI_16_32 0 "nonimmediate_operand")
4827 1556 : (any_logic:VI_16_32
4828 : (match_operand:VI_16_32 1 "nonimmediate_operand")
4829 1556 : (match_operand:VI_16_32 2 "nonimmediate_or_x86_64_const_vector_operand")))]
4830 1556 : ""
4831 456 : "ix86_expand_binary_operator (<CODE>, <MODE>mode, operands); DONE;")
4832 :
4833 : (define_insn "*<code><mode>3"
4834 1387 : [(set (match_operand:VI_16_32 0 "nonimmediate_operand" "=?r,m,x,x,v")
4835 : (any_logic:VI_16_32
4836 : (match_operand:VI_16_32 1 "nonimmediate_operand" "%0,0,0,x,v")
4837 : (match_operand:VI_16_32 2 "nonimmediate_or_x86_64_const_vector_operand" "r,i,x,x,v")))
4838 0 : (clobber (reg:CC FLAGS_REG))]
4839 2546 : "ix86_binary_operator_ok (<CODE>, <MODE>mode, operands)"
4840 : "#"
4841 : [(set_attr "isa" "*,*,sse2_noavx,avx,avx512vl")
4842 158 : (set_attr "type" "alu,alu,sselog,sselog,sselog")
4843 86764 : (set_attr "mode" "SI,SI,TI,TI,TI")])
4844 287 :
4845 207 : (define_split
4846 87051 : [(set (match_operand:VI_16_32 0 "nonimmediate_gr_operand")
4847 198 : (any_logic:VI_16_32
4848 198 : (match_operand:VI_16_32 1 "nonimmediate_gr_operand")
4849 : (match_operand:VI_16_32 2 "reg_or_const_vector_operand")))
4850 : (clobber (reg:CC FLAGS_REG))]
4851 : "reload_completed"
4852 : [(parallel
4853 : [(set (match_dup 0)
4854 : (any_logic:<mmxinsnmode> (match_dup 1) (match_dup 2)))
4855 : (clobber (reg:CC FLAGS_REG))])]
4856 80 : {
4857 80 : if (!register_operand (operands[2], <MODE>mode))
4858 : {
4859 23 : HOST_WIDE_INT val = ix86_convert_const_vector_to_integer (operands[2],
4860 : <MODE>mode);
4861 23 : operands[2] = GEN_INT (val);
4862 : }
4863 : else
4864 57 : operands[2] = lowpart_subreg (<mmxinsnmode>mode, operands[2], <MODE>mode);
4865 80 : operands[1] = lowpart_subreg (<mmxinsnmode>mode, operands[1], <MODE>mode);
4866 80 : operands[0] = lowpart_subreg (<mmxinsnmode>mode, operands[0], <MODE>mode);
4867 : })
4868 :
4869 : (define_split
4870 80 : [(set (match_operand:VI_16_32 0 "sse_reg_operand")
4871 : (any_logic:VI_16_32
4872 : (match_operand:VI_16_32 1 "sse_reg_operand")
4873 : (match_operand:VI_16_32 2 "sse_reg_operand")))
4874 80 : (clobber (reg:CC FLAGS_REG))]
4875 : "TARGET_SSE2 && reload_completed"
4876 : [(set (match_dup 0)
4877 : (any_logic:V16QI (match_dup 1) (match_dup 2)))]
4878 397 : {
4879 397 : operands[2] = lowpart_subreg (V16QImode, operands[2], <MODE>mode);
4880 408 : operands[1] = lowpart_subreg (V16QImode, operands[1], <MODE>mode);
4881 397 : operands[0] = lowpart_subreg (V16QImode, operands[0], <MODE>mode);
4882 370 : })
4883 370 :
4884 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4885 397 : ;;
4886 : ;; Parallel integral element swizzling
4887 : ;;
4888 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4889 397 :
4890 : (define_insn_and_split "mmx_packsswb"
4891 : [(set (match_operand:V8QI 0 "register_operand" "=y,x,Yw")
4892 : (vec_concat:V8QI
4893 : (ss_truncate:V4QI
4894 : (match_operand:V4HI 1 "register_operand" "0,0,Yw"))
4895 1606 : (ss_truncate:V4QI
4896 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw"))))]
4897 1606 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4898 1606 : "@
4899 : packsswb\t{%2, %0|%0, %2}
4900 : #
4901 : #"
4902 : "&& reload_completed
4903 : && SSE_REGNO_P (REGNO (operands[0]))"
4904 : [(const_int 0)]
4905 46 : "ix86_split_mmx_pack (operands, SS_TRUNCATE); DONE;"
4906 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
4907 : (set_attr "type" "mmxshft,sselog,sselog")
4908 : (set_attr "mode" "DI,TI,TI")])
4909 :
4910 : ;; This instruction does unsigned saturation of signed source
4911 : ;; and is different from generic us_truncate RTX.
4912 : (define_insn_and_split "mmx_packuswb"
4913 : [(set (match_operand:V8QI 0 "register_operand" "=y,x,Yw")
4914 : (unspec:V8QI
4915 : [(match_operand:V4HI 1 "register_operand" "0,0,Yw")
4916 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")]
4917 499 : UNSPEC_US_TRUNCATE))]
4918 181326 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4919 499 : "@
4920 499 : packuswb\t{%2, %0|%0, %2}
4921 : #
4922 34529 : #"
4923 11564 : "&& reload_completed
4924 5782 : && SSE_REGNO_P (REGNO (operands[0]))"
4925 34529 : [(const_int 0)]
4926 690 : "ix86_split_mmx_pack (operands, US_TRUNCATE); DONE;"
4927 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
4928 184 : (set_attr "type" "mmxshft,sselog,sselog")
4929 : (set_attr "mode" "DI,TI,TI")])
4930 :
4931 184 : (define_insn_and_split "mmx_packssdw"
4932 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
4933 : (vec_concat:V4HI
4934 : (ss_truncate:V2HI
4935 : (match_operand:V2SI 1 "register_operand" "0,0,Yw"))
4936 : (ss_truncate:V2HI
4937 : (match_operand:V2SI 2 "register_mmxmem_operand" "ym,x,Yw"))))]
4938 363 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4939 : "@
4940 363 : packssdw\t{%2, %0|%0, %2}
4941 363 : #
4942 : #"
4943 : "&& reload_completed
4944 : && SSE_REGNO_P (REGNO (operands[0]))"
4945 : [(const_int 0)]
4946 56 : "ix86_split_mmx_pack (operands, SS_TRUNCATE); DONE;"
4947 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
4948 : (set_attr "type" "mmxshft,sselog,sselog")
4949 : (set_attr "mode" "DI,TI,TI")])
4950 :
4951 : (define_insn_and_split "mmx_packusdw"
4952 : [(set (match_operand:V4HI 0 "register_operand" "=Yr,*x,Yw")
4953 : (unspec:V4HI
4954 : [(match_operand:V2SI 1 "register_operand" "0,0,Yw")
4955 : (match_operand:V2SI 2 "register_operand" "Yr,*x,Yw")]
4956 : UNSPEC_US_TRUNCATE))]
4957 34713 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
4958 1448 : "#"
4959 184 : "&& reload_completed"
4960 1448 : [(const_int 0)]
4961 2867 : "ix86_split_mmx_pack (operands, US_TRUNCATE); DONE;"
4962 : [(set_attr "isa" "noavx,noavx,avx")
4963 9 : (set_attr "type" "sselog")
4964 1327 : (set_attr "mode" "TI")])
4965 :
4966 9 : (define_insn_and_split "mmx_punpckhbw"
4967 : [(set (match_operand:V8QI 0 "register_operand" "=y,x,Yw")
4968 : (vec_select:V8QI
4969 : (vec_concat:V16QI
4970 : (match_operand:V8QI 1 "register_operand" "0,0,Yw")
4971 : (match_operand:V8QI 2 "register_mmxmem_operand" "ym,x,Yw"))
4972 : (parallel [(const_int 4) (const_int 12)
4973 1927 : (const_int 5) (const_int 13)
4974 : (const_int 6) (const_int 14)
4975 1927 : (const_int 7) (const_int 15)])))]
4976 1927 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
4977 : "@
4978 : punpckhbw\t{%2, %0|%0, %2}
4979 : #
4980 : #"
4981 : "&& reload_completed
4982 : && SSE_REGNO_P (REGNO (operands[0]))"
4983 : [(const_int 0)]
4984 447 : "ix86_split_mmx_punpck (operands, true); DONE;"
4985 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
4986 : (set_attr "type" "mmxcvt,sselog,sselog")
4987 : (set_attr "mode" "DI,TI,TI")])
4988 :
4989 : (define_insn_and_split "mmx_punpckhbw_low"
4990 : [(set (match_operand:V4QI 0 "register_operand" "=x,Yw")
4991 : (vec_select:V4QI
4992 : (vec_concat:V8QI
4993 : (match_operand:V4QI 1 "register_operand" "0,Yw")
4994 : (match_operand:V4QI 2 "register_operand" "x,Yw"))
4995 : (parallel [(const_int 2) (const_int 6)
4996 289 : (const_int 3) (const_int 7)])))]
4997 : "TARGET_SSE2"
4998 289 : "#"
4999 289 : "&& reload_completed"
5000 : [(const_int 0)]
5001 237 : "ix86_split_mmx_punpck (operands, true); DONE;"
5002 : [(set_attr "isa" "noavx,avx")
5003 : (set_attr "type" "sselog")
5004 : (set_attr "mode" "TI")])
5005 :
5006 : (define_insn_and_split "mmx_punpcklbw"
5007 : [(set (match_operand:V8QI 0 "register_operand" "=y,x,Yw")
5008 : (vec_select:V8QI
5009 : (vec_concat:V16QI
5010 : (match_operand:V8QI 1 "register_operand" "0,0,Yw")
5011 : (match_operand:V8QI 2 "register_mmxmem_operand" "ym,x,Yw"))
5012 : (parallel [(const_int 0) (const_int 8)
5013 380 : (const_int 1) (const_int 9)
5014 : (const_int 2) (const_int 10)
5015 380 : (const_int 3) (const_int 11)])))]
5016 380 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5017 : "@
5018 : punpcklbw\t{%2, %0|%0, %k2}
5019 : #
5020 : #"
5021 : "&& reload_completed
5022 : && SSE_REGNO_P (REGNO (operands[0]))"
5023 : [(const_int 0)]
5024 499 : "ix86_split_mmx_punpck (operands, false); DONE;"
5025 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
5026 : (set_attr "type" "mmxcvt,sselog,sselog")
5027 : (set_attr "mode" "DI,TI,TI")])
5028 :
5029 : (define_insn_and_split "mmx_punpcklbw_low"
5030 : [(set (match_operand:V4QI 0 "register_operand" "=x,Yw")
5031 : (vec_select:V4QI
5032 : (vec_concat:V8QI
5033 : (match_operand:V4QI 1 "register_operand" "0,Yw")
5034 : (match_operand:V4QI 2 "register_operand" "x,Yw"))
5035 16 : (parallel [(const_int 0) (const_int 4)
5036 : (const_int 1) (const_int 5)])))]
5037 16 : "TARGET_SSE2"
5038 16 : "#"
5039 16 : "&& reload_completed"
5040 : [(const_int 0)]
5041 363 : "ix86_split_mmx_punpck (operands, false); DONE;"
5042 : [(set_attr "isa" "noavx,avx")
5043 : (set_attr "type" "sselog")
5044 : (set_attr "mode" "TI")])
5045 :
5046 : (define_insn_and_split "mmx_punpckhwd"
5047 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
5048 : (vec_select:V4HI
5049 : (vec_concat:V8HI
5050 : (match_operand:V4HI 1 "register_operand" "0,0,Yw")
5051 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw"))
5052 84 : (parallel [(const_int 2) (const_int 6)
5053 : (const_int 3) (const_int 7)])))]
5054 84 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5055 84 : "@
5056 84 : punpckhwd\t{%2, %0|%0, %2}
5057 : #
5058 : #"
5059 : "&& reload_completed
5060 : && SSE_REGNO_P (REGNO (operands[0]))"
5061 : [(const_int 0)]
5062 1448 : "ix86_split_mmx_punpck (operands, true); DONE;"
5063 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
5064 : (set_attr "type" "mmxcvt,sselog,sselog")
5065 : (set_attr "mode" "DI,TI,TI")])
5066 :
5067 : (define_insn_and_split "mmx_punpcklwd"
5068 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
5069 : (vec_select:V4HI
5070 : (vec_concat:V8HI
5071 : (match_operand:V4HI 1 "register_operand" "0,0,Yw")
5072 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw"))
5073 22 : (parallel [(const_int 0) (const_int 4)
5074 : (const_int 1) (const_int 5)])))]
5075 22 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5076 22 : "@
5077 22 : punpcklwd\t{%2, %0|%0, %k2}
5078 : #
5079 : #"
5080 : "&& reload_completed
5081 : && SSE_REGNO_P (REGNO (operands[0]))"
5082 : [(const_int 0)]
5083 1927 : "ix86_split_mmx_punpck (operands, false); DONE;"
5084 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
5085 : (set_attr "type" "mmxcvt,sselog,sselog")
5086 : (set_attr "mode" "DI,TI,TI")])
5087 :
5088 : (define_insn_and_split "mmx_punpckhdq"
5089 : [(set (match_operand:V2SI 0 "register_operand" "=y,x,Yv")
5090 : (vec_select:V2SI
5091 : (vec_concat:V4SI
5092 : (match_operand:V2SI 1 "register_operand" "0,0,Yv")
5093 : (match_operand:V2SI 2 "register_mmxmem_operand" "ym,x,Yv"))
5094 100 : (parallel [(const_int 1)
5095 : (const_int 3)])))]
5096 100 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5097 100 : "@
5098 100 : punpckhdq\t{%2, %0|%0, %2}
5099 : #
5100 : #"
5101 : "&& reload_completed
5102 : && SSE_REGNO_P (REGNO (operands[0]))"
5103 : [(const_int 0)]
5104 289 : "ix86_split_mmx_punpck (operands, true); DONE;"
5105 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
5106 : (set_attr "type" "mmxcvt,sselog,sselog")
5107 : (set_attr "mode" "DI,TI,TI")])
5108 :
5109 : (define_insn_and_split "mmx_punpckldq"
5110 : [(set (match_operand:V2SI 0 "register_operand" "=y,x,Yv")
5111 : (vec_select:V2SI
5112 : (vec_concat:V4SI
5113 : (match_operand:V2SI 1 "register_operand" "0,0,Yv")
5114 : (match_operand:V2SI 2 "register_mmxmem_operand" "ym,x,Yv"))
5115 33 : (parallel [(const_int 0)
5116 : (const_int 2)])))]
5117 33 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5118 33 : "@
5119 33 : punpckldq\t{%2, %0|%0, %k2}
5120 : #
5121 : #"
5122 : "&& reload_completed
5123 : && SSE_REGNO_P (REGNO (operands[0]))"
5124 : [(const_int 0)]
5125 380 : "ix86_split_mmx_punpck (operands, false); DONE;"
5126 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
5127 : (set_attr "type" "mmxcvt,sselog,sselog")
5128 : (set_attr "mode" "DI,TI,TI")])
5129 :
5130 : (define_insn "sse4_1_<code>v4qiv4hi2"
5131 : [(set (match_operand:V4HI 0 "register_operand" "=Yr,*x,Yw")
5132 : (any_extend:V4HI
5133 : (vec_select:V4QI
5134 : (match_operand:V8QI 1 "register_operand" "Yr,*x,Yw")
5135 : (parallel [(const_int 0) (const_int 1)
5136 5 : (const_int 2) (const_int 3)]))))]
5137 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5138 5 : "%vpmov<extsuffix>bw\t{%1, %0|%0, %1}"
5139 5 : [(set_attr "isa" "noavx,noavx,avx")
5140 5 : (set_attr "type" "ssemov")
5141 : (set_attr "c86_attr" "vpmovx")
5142 : (set_attr "prefix_extra" "1")
5143 : (set_attr "prefix" "orig,orig,maybe_evex")
5144 : (set_attr "mode" "TI")])
5145 :
5146 : (define_expand "<insn>v4qiv4hi2"
5147 : [(set (match_operand:V4HI 0 "register_operand")
5148 : (any_extend:V4HI
5149 : (match_operand:V4QI 1 "register_operand")))]
5150 : "TARGET_MMX_WITH_SSE"
5151 38 : {
5152 38 : if (!TARGET_SSE4_1)
5153 : {
5154 34 : ix86_expand_sse_extend (operands[0], operands[1], <u_bool>);
5155 34 : DONE;
5156 : }
5157 :
5158 4 : rtx op1 = force_reg (V4QImode, operands[1]);
5159 4 : op1 = lowpart_subreg (V8QImode, op1, V4QImode);
5160 4 : emit_insn (gen_sse4_1_<code>v4qiv4hi2 (operands[0], op1));
5161 4 : DONE;
5162 : })
5163 :
5164 : (define_insn "sse4_1_<code>v2hiv2si2"
5165 : [(set (match_operand:V2SI 0 "register_operand" "=Yr,*x,v")
5166 : (any_extend:V2SI
5167 : (vec_select:V2HI
5168 : (match_operand:V4HI 1 "register_operand" "Yr,*x,v")
5169 : (parallel [(const_int 0) (const_int 1)]))))]
5170 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5171 : "%vpmov<extsuffix>wd\t{%1, %0|%0, %1}"
5172 : [(set_attr "isa" "noavx,noavx,avx")
5173 : (set_attr "type" "ssemov")
5174 112 : (set_attr "c86_attr" "vpmovx")
5175 : (set_attr "prefix_extra" "1")
5176 112 : (set_attr "prefix" "orig,orig,maybe_evex")
5177 112 : (set_attr "mode" "TI")])
5178 112 :
5179 : (define_expand "<insn>v2hiv2si2"
5180 : [(set (match_operand:V2SI 0 "register_operand")
5181 : (any_extend:V2SI
5182 : (match_operand:V2HI 1 "register_operand")))]
5183 : "TARGET_MMX_WITH_SSE"
5184 184 : {
5185 184 : if (!TARGET_SSE4_1)
5186 : {
5187 168 : ix86_expand_sse_extend (operands[0], operands[1], <u_bool>);
5188 168 : DONE;
5189 : }
5190 :
5191 16 : rtx op1 = force_reg (V2HImode, operands[1]);
5192 16 : op1 = lowpart_subreg (V4HImode, op1, V2HImode);
5193 16 : emit_insn (gen_sse4_1_<code>v2hiv2si2 (operands[0], op1));
5194 16 : DONE;
5195 : })
5196 :
5197 : (define_insn "sse4_1_<code>v2qiv2si2"
5198 : [(set (match_operand:V2SI 0 "register_operand" "=Yr,*x,v")
5199 : (any_extend:V2SI
5200 : (vec_select:V2QI
5201 : (match_operand:V4QI 1 "register_operand" "Yr,*x,v")
5202 : (parallel [(const_int 0) (const_int 1)]))))]
5203 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5204 : "%vpmov<extsuffix>bd\t{%1, %0|%0, %1}"
5205 : [(set_attr "isa" "noavx,noavx,avx")
5206 : (set_attr "type" "ssemov")
5207 29 : (set_attr "c86_attr" "vpmovx")
5208 : (set_attr "prefix_extra" "1")
5209 29 : (set_attr "prefix" "orig,orig,maybe_evex")
5210 29 : (set_attr "mode" "TI")])
5211 29 :
5212 : (define_expand "<insn>v2qiv2si2"
5213 : [(set (match_operand:V2SI 0 "register_operand")
5214 : (any_extend:V2SI
5215 : (match_operand:V2QI 1 "register_operand")))]
5216 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5217 38 : {
5218 38 : rtx op1 = force_reg (V2QImode, operands[1]);
5219 38 : op1 = lowpart_subreg (V4QImode, op1, V2QImode);
5220 38 : emit_insn (gen_sse4_1_<code>v2qiv2si2 (operands[0], op1));
5221 38 : DONE;
5222 : })
5223 :
5224 : (define_insn "sse4_1_<code>v2qiv2hi2"
5225 : [(set (match_operand:V2HI 0 "register_operand" "=Yr,*x,Yw")
5226 : (any_extend:V2HI
5227 : (vec_select:V2QI
5228 : (match_operand:V4QI 1 "register_operand" "Yr,*x,Yw")
5229 : (parallel [(const_int 0) (const_int 1)]))))]
5230 : "TARGET_SSE4_1"
5231 : "%vpmov<extsuffix>bw\t{%1, %0|%0, %1}"
5232 : [(set_attr "isa" "noavx,noavx,avx")
5233 : (set_attr "type" "ssemov")
5234 129 : (set_attr "c86_attr" "vpmovx")
5235 : (set_attr "prefix_extra" "1")
5236 129 : (set_attr "prefix" "orig,orig,maybe_evex")
5237 129 : (set_attr "mode" "TI")])
5238 129 :
5239 : (define_expand "<insn>v2qiv2hi2"
5240 : [(set (match_operand:V2HI 0 "register_operand")
5241 : (any_extend:V2HI
5242 : (match_operand:V2QI 1 "register_operand")))]
5243 : "TARGET_SSE2"
5244 194 : {
5245 194 : if (!TARGET_SSE4_1)
5246 : {
5247 182 : ix86_expand_sse_extend (operands[0], operands[1], <u_bool>);
5248 182 : DONE;
5249 : }
5250 :
5251 12 : rtx op1 = force_reg (V2QImode, operands[1]);
5252 12 : op1 = lowpart_subreg (V4QImode, op1, V2QImode);
5253 12 : emit_insn (gen_sse4_1_<code>v2qiv2hi2 (operands[0], op1));
5254 12 : DONE;
5255 : })
5256 :
5257 : (define_expand "trunc<mode><mmxhalfmodelower>2"
5258 : [(set (match_operand:<mmxhalfmode> 0 "register_operand")
5259 : (truncate:<mmxhalfmode>
5260 : (match_operand:VI2_32_64 1 "register_operand")))]
5261 : "TARGET_AVX2"
5262 29 : {
5263 29 : if (TARGET_AVX512VL && TARGET_AVX512BW)
5264 27 : emit_insn (gen_avx512vl_trunc<mode><mmxhalfmodelower>2 (operands[0], operands[1]));
5265 : else
5266 2 : ix86_expand_trunc_with_avx2_noavx512f (operands[0], operands[1], <mmxbytemode>mode);
5267 481 : DONE;
5268 : })
5269 452 :
5270 452 : (define_insn "avx512vl_trunc<mode><mmxhalfmodelower>2"
5271 452 : [(set (match_operand:<mmxhalfmode> 0 "register_operand" "=v")
5272 : (truncate:<mmxhalfmode>
5273 : (match_operand:VI2_32_64 1 "register_operand" "v")))]
5274 229 : "TARGET_AVX512VL && TARGET_AVX512BW"
5275 : "vpmovwb\t{%1, %0|%0, %1}"
5276 : [(set_attr "type" "ssemov")
5277 : (set_attr "prefix" "evex")
5278 115 : (set_attr "mode" "TI")])
5279 :
5280 207 : (define_mode_iterator V2QI_V2HI [V2QI V2HI])
5281 115 : (define_mode_attr v2qi_quad_v2hi_double
5282 207 : [(V2QI "V8QI") (V2HI "V4HI")])
5283 207 : (define_expand "truncv2si<mode>2"
5284 207 : [(set (match_operand:V2QI_V2HI 0 "register_operand")
5285 : (truncate:V2QI_V2HI
5286 : (match_operand:V2SI 1 "register_operand")))]
5287 : "TARGET_AVX2 && TARGET_MMX_WITH_SSE"
5288 47 : {
5289 47 : if (TARGET_AVX512VL)
5290 15 : emit_insn (gen_avx512vl_truncv2si<mode>2 (operands[0], operands[1]));
5291 : else
5292 32 : ix86_expand_trunc_with_avx2_noavx512f (operands[0], operands[1], <v2qi_quad_v2hi_double>mode);
5293 47 : DONE;
5294 : })
5295 :
5296 : (define_insn "avx512vl_truncv2si<mode>2"
5297 : [(set (match_operand:V2QI_V2HI 0 "register_operand" "=v")
5298 : (truncate:V2QI_V2HI
5299 : (match_operand:V2SI 1 "register_operand" "v")))]
5300 115 : "TARGET_AVX512VL && TARGET_MMX_WITH_SSE"
5301 : "vpmovd<mmxvecsize>\t{%1, %0|%0, %1}"
5302 : [(set_attr "type" "ssemov")
5303 : (set_attr "prefix" "evex")
5304 231345 : (set_attr "mode" "TI")])
5305 :
5306 974 : ;; Pack/unpack vector modes
5307 231345 : (define_mode_attr mmxpackmode
5308 974 : [(V4HI "V8QI") (V2SI "V4HI")])
5309 974 :
5310 974 : (define_expand "vec_pack_trunc_<mode>"
5311 : [(match_operand:<mmxpackmode> 0 "register_operand")
5312 : (match_operand:MMXMODE24 1 "register_operand")
5313 : (match_operand:MMXMODE24 2 "register_operand")]
5314 : "TARGET_MMX_WITH_SSE"
5315 807 : {
5316 807 : rtx op1 = gen_lowpart (<mmxpackmode>mode, operands[1]);
5317 807 : rtx op2 = gen_lowpart (<mmxpackmode>mode, operands[2]);
5318 807 : ix86_expand_vec_extract_even_odd (operands[0], op1, op2, 0);
5319 807 : DONE;
5320 : })
5321 :
5322 : (define_expand "vec_pack_trunc_v2hi"
5323 : [(match_operand:V4QI 0 "register_operand")
5324 : (match_operand:V2HI 1 "register_operand")
5325 : (match_operand:V2HI 2 "register_operand")]
5326 : "TARGET_SSE2"
5327 26 : {
5328 26 : rtx op1 = gen_lowpart (V4QImode, operands[1]);
5329 26 : rtx op2 = gen_lowpart (V4QImode, operands[2]);
5330 26 : ix86_expand_vec_extract_even_odd (operands[0], op1, op2, 0);
5331 26 : DONE;
5332 485 : })
5333 :
5334 485 : (define_mode_attr mmxunpackmode
5335 485 : [(V8QI "V4HI") (V4HI "V2SI")])
5336 485 :
5337 : (define_expand "vec_unpacks_lo_<mode>"
5338 : [(match_operand:<mmxunpackmode> 0 "register_operand")
5339 : (match_operand:MMXMODE12 1 "register_operand")]
5340 : "TARGET_MMX_WITH_SSE"
5341 617 : "ix86_expand_sse_unpack (operands[0], operands[1], false, false); DONE;")
5342 :
5343 : (define_expand "vec_unpacks_hi_<mode>"
5344 0 : [(match_operand:<mmxunpackmode> 0 "register_operand")
5345 : (match_operand:MMXMODE12 1 "register_operand")]
5346 0 : "TARGET_MMX_WITH_SSE"
5347 621 : "ix86_expand_sse_unpack (operands[0], operands[1], false, true); DONE;")
5348 0 :
5349 : (define_expand "vec_unpacku_lo_<mode>"
5350 : [(match_operand:<mmxunpackmode> 0 "register_operand")
5351 : (match_operand:MMXMODE12 1 "register_operand")]
5352 : "TARGET_MMX_WITH_SSE"
5353 929 : "ix86_expand_sse_unpack (operands[0], operands[1], true, false); DONE;")
5354 :
5355 628 : (define_expand "vec_unpacku_hi_<mode>"
5356 628 : [(match_operand:<mmxunpackmode> 0 "register_operand")
5357 628 : (match_operand:MMXMODE12 1 "register_operand")]
5358 : "TARGET_MMX_WITH_SSE"
5359 786 : "ix86_expand_sse_unpack (operands[0], operands[1], true, true); DONE;")
5360 :
5361 301 : (define_expand "vec_unpacks_lo_v4qi"
5362 301 : [(match_operand:V2HI 0 "register_operand")
5363 301 : (match_operand:V4QI 1 "register_operand")]
5364 : "TARGET_SSE2"
5365 24 : "ix86_expand_sse_unpack (operands[0], operands[1], false, false); DONE;")
5366 :
5367 24 : (define_expand "vec_unpacks_hi_v4qi"
5368 24 : [(match_operand:V2HI 0 "register_operand")
5369 24 : (match_operand:V4QI 1 "register_operand")]
5370 : "TARGET_SSE2"
5371 0 : "ix86_expand_sse_unpack (operands[0], operands[1], false, true); DONE;")
5372 3 :
5373 : (define_expand "vec_unpacku_lo_v4qi"
5374 3 : [(match_operand:V2HI 0 "register_operand")
5375 3 : (match_operand:V4QI 1 "register_operand")]
5376 : "TARGET_SSE2"
5377 12 : "ix86_expand_sse_unpack (operands[0], operands[1], true, false); DONE;")
5378 0 :
5379 : (define_expand "vec_unpacku_hi_v4qi"
5380 0 : [(match_operand:V2HI 0 "register_operand")
5381 0 : (match_operand:V4QI 1 "register_operand")]
5382 : "TARGET_SSE2"
5383 87 : "ix86_expand_sse_unpack (operands[0], operands[1], true, true); DONE;")
5384 :
5385 75 : (define_insn "*mmx_pinsrd"
5386 75 : [(set (match_operand:V2SI 0 "register_operand" "=x,Yv")
5387 75 : (vec_merge:V2SI
5388 : (vec_duplicate:V2SI
5389 : (match_operand:SI 2 "nonimmediate_operand" "jrjm,rm"))
5390 78 : (match_operand:V2SI 1 "register_operand" "0,Yv")
5391 : (match_operand:SI 3 "const_int_operand")))]
5392 286 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE
5393 494 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
5394 208 : < GET_MODE_NUNITS (V2SImode))"
5395 217 : {
5396 52 : operands[3] = GEN_INT (exact_log2 (INTVAL (operands[3])));
5397 217 : switch (which_alternative)
5398 597 : {
5399 191 : case 1:
5400 : return "vpinsrd\t{%3, %2, %1, %0|%0, %1, %2, %3}";
5401 406 : case 0:
5402 0 : return "pinsrd\t{%3, %2, %0|%0, %2, %3}";
5403 0 : default:
5404 0 : gcc_unreachable ();
5405 : }
5406 : }
5407 : [(set_attr "isa" "noavx,avx")
5408 : (set_attr "addr" "gpr16,*")
5409 : (set_attr "prefix_extra" "1")
5410 41 : (set_attr "type" "sselog")
5411 : (set_attr "c86_attr" "insr")
5412 : (set_attr "length_immediate" "1")
5413 : (set_attr "prefix" "orig,vex")
5414 : (set_attr "mode" "TI")])
5415 :
5416 : (define_insn "*mmx_pinsrw"
5417 : [(set (match_operand:V4FI_64 0 "register_operand" "=y,x,YW,&x")
5418 : (vec_merge:V4FI_64
5419 : (vec_duplicate:V4FI_64
5420 : (match_operand:<mmxscalarmode> 2 "nonimmediate_operand" "rm,rm,rm,x"))
5421 : (match_operand:V4FI_64 1 "register_operand" "0,0,YW,x")
5422 : (match_operand:SI 3 "const_int_operand")))]
5423 48 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5424 406 : && (TARGET_SSE || TARGET_3DNOW_A)
5425 812 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
5426 406 : < GET_MODE_NUNITS (V4HImode))"
5427 41 : {
5428 82 : operands[3] = GEN_INT (exact_log2 (INTVAL (operands[3])));
5429 41 : switch (which_alternative)
5430 10 : {
5431 : case 3:
5432 : return "#";
5433 26 : case 2:
5434 16 : if (MEM_P (operands[2]))
5435 : return "vpinsrw\t{%3, %2, %1, %0|%0, %1, %2, %3}";
5436 : else
5437 16 : return "vpinsrw\t{%3, %k2, %1, %0|%0, %1, %k2, %3}";
5438 25 : case 1:
5439 25 : case 0:
5440 25 : if (MEM_P (operands[2]))
5441 : return "pinsrw\t{%3, %2, %0|%0, %2, %3}";
5442 : else
5443 15 : return "pinsrw\t{%3, %k2, %0|%0, %k2, %3}";
5444 0 : default:
5445 0 : gcc_unreachable ();
5446 : }
5447 : }
5448 : [(set_attr "isa" "*,sse2_noavx,avx,sse4")
5449 : (set_attr "mmx_isa" "native,*,*,*")
5450 : (set_attr "type" "mmxcvt,sselog,sselog,sselog")
5451 1 : (set_attr "c86_attr" "insr")
5452 : (set_attr "length_immediate" "1")
5453 : (set_attr "mode" "DI,TI,TI,TI")])
5454 :
5455 : ;; For TARGET_SSE2, implement insert from XMM reg with PSHULFW + PBLENDW.
5456 : (define_split
5457 : [(set (match_operand:V4FI_64 0 "sse_reg_operand")
5458 : (vec_merge:V4FI_64
5459 : (vec_duplicate:V4FI_64
5460 : (match_operand:<mmxscalarmode> 2 "sse_reg_operand"))
5461 : (match_operand:V4FI_64 1 "sse_reg_operand")
5462 : (match_operand:SI 3 "const_int_operand")))]
5463 3 : "TARGET_MMX_WITH_SSE && TARGET_SSE4_1 && reload_completed
5464 6 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
5465 3 : < GET_MODE_NUNITS (<MODE>mode))"
5466 : [(set (match_dup 0)
5467 : (vec_duplicate:V4FI_64 (match_dup 2)))
5468 : (set (match_dup 0)
5469 1 : (vec_merge:V4FI_64 (match_dup 1) (match_dup 0) (match_dup 3)))]
5470 3 : "operands[3] = GEN_INT (~INTVAL (operands[3]) & 0xf);")
5471 :
5472 0 : (define_insn "*mmx_pinsrb"
5473 3 : [(set (match_operand:V8QI 0 "register_operand" "=x,YW")
5474 : (vec_merge:V8QI
5475 : (vec_duplicate:V8QI
5476 : (match_operand:QI 2 "nonimmediate_operand" "jrjm,rm"))
5477 : (match_operand:V8QI 1 "register_operand" "0,YW")
5478 3 : (match_operand:SI 3 "const_int_operand")))]
5479 10 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE
5480 20 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
5481 10 : < GET_MODE_NUNITS (V8QImode))"
5482 1 : {
5483 2 : operands[3] = GEN_INT (exact_log2 (INTVAL (operands[3])));
5484 2448 : switch (which_alternative)
5485 610 : {
5486 2448 : case 1:
5487 2448 : if (MEM_P (operands[2]))
5488 610 : return "vpinsrb\t{%3, %2, %1, %0|%0, %1, %2, %3}";
5489 : else
5490 1 : return "vpinsrb\t{%3, %k2, %1, %0|%0, %1, %k2, %3}";
5491 0 : case 0:
5492 0 : if (MEM_P (operands[2]))
5493 : return "pinsrb\t{%3, %2, %0|%0, %2, %3}";
5494 : else
5495 0 : return "pinsrb\t{%3, %k2, %0|%0, %k2, %3}";
5496 0 : default:
5497 0 : gcc_unreachable ();
5498 : }
5499 : }
5500 : [(set_attr "isa" "noavx,avx")
5501 : (set_attr "type" "sselog")
5502 : (set_attr "c86_attr" "insr")
5503 : (set_attr "addr" "gpr16,*")
5504 : (set_attr "prefix_extra" "1")
5505 : (set_attr "length_immediate" "1")
5506 : (set_attr "prefix" "orig,vex")
5507 : (set_attr "mode" "TI")])
5508 :
5509 : (define_insn "*mmx_pextrw"
5510 20 : [(set (match_operand:HI 0 "register_sse4nonimm_operand" "=r,r,jm,m")
5511 : (vec_select:HI
5512 : (match_operand:V4HI 1 "register_operand" "y,YW,YW,YW")
5513 : (parallel [(match_operand:SI 2 "const_0_to_3_operand")])))]
5514 862 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5515 19723 : && (TARGET_SSE || TARGET_3DNOW_A)"
5516 : "@
5517 : pextrw\t{%2, %1, %k0|%k0, %1, %2}
5518 : %vpextrw\t{%2, %1, %k0|%k0, %1, %2}
5519 17015 : pextrw\t{%2, %1, %0|%0, %1, %2}
5520 : vpextrw\t{%2, %1, %0|%0, %1, %2}"
5521 : [(set_attr "isa" "*,sse2,sse4_noavx,avx")
5522 17015 : (set_attr "addr" "*,*,gpr16,*")
5523 : (set_attr "mmx_isa" "native,*,*,*")
5524 : (set_attr "type" "mmxcvt,sselog1,sselog1,sselog1")
5525 : (set_attr "c86_attr" "extr")
5526 : (set_attr "length_immediate" "1")
5527 : (set_attr "prefix" "orig,maybe_vex,maybe_vex,maybe_evex")
5528 : (set_attr "mode" "DI,TI,TI,TI")])
5529 :
5530 : (define_insn "*mmx_pextrw<mode>"
5531 : [(set (match_operand:<mmxscalarmode> 0 "register_sse4nonimm_operand" "=?r,?r,jm,m,x,Yw")
5532 : (vec_select:<mmxscalarmode>
5533 : (match_operand:V4F_64 1 "register_operand" "y,YW,YW,YW,0,YW")
5534 : (parallel [(match_operand:SI 2 "const_0_to_3_operand")])))]
5535 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5536 : && (TARGET_SSE || TARGET_3DNOW_A)"
5537 20 : {
5538 20 : switch (which_alternative)
5539 : {
5540 : case 0:
5541 : case 1:
5542 : return "%vpextrw\t{%2, %1, %k0|%k0, %1, %2}";
5543 4 : case 2:
5544 4 : case 3:
5545 4 : return "%vpextrw\t{%2, %1, %0|%0, %1, %2}";
5546 10 : case 4:
5547 10 : operands[2] = GEN_INT (INTVAL (operands[2]) * 2);
5548 10 : return "psrldq\t{%2, %0|%0, %2}";
5549 6 : case 5:
5550 6 : operands[2] = GEN_INT (INTVAL (operands[2]) * 2);
5551 6 : return "vpsrldq\t{%2, %1, %0|%0, %1, %2}";
5552 :
5553 0 : default:
5554 0 : gcc_unreachable ();
5555 : }
5556 : }
5557 : [(set_attr "isa" "*,sse2,sse4_noavx,avx,noavx,avx")
5558 : (set_attr "addr" "*,*,gpr16,*,*,*")
5559 : (set_attr "mmx_isa" "native,*,*,*,*,*")
5560 : (set_attr "type" "mmxcvt,sselog1,sselog1,sselog1,sseishft1,sseishft1")
5561 : (set_attr "c86_attr" "extr,extr,extr,extr,*,*")
5562 : (set_attr "length_immediate" "1")
5563 : (set_attr "prefix" "orig,maybe_vex,maybe_vex,maybe_evex,orig,maybe_evex")
5564 : (set_attr "mode" "DI,TI,TI,TI,TI,TI")])
5565 :
5566 : (define_insn "*mmx_pextrw_zext"
5567 : [(set (match_operand:SWI48 0 "register_operand" "=r,r")
5568 : (zero_extend:SWI48
5569 : (vec_select:HI
5570 : (match_operand:V4HI 1 "register_operand" "y,YW")
5571 : (parallel [(match_operand:SI 2 "const_0_to_3_operand")]))))]
5572 0 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5573 182 : && (TARGET_SSE || TARGET_3DNOW_A)"
5574 : "@
5575 : pextrw\t{%2, %1, %k0|%k0, %1, %2}
5576 : %vpextrw\t{%2, %1, %k0|%k0, %1, %2}"
5577 : [(set_attr "isa" "*,sse2")
5578 : (set_attr "mmx_isa" "native,*")
5579 : (set_attr "type" "mmxcvt,sselog1")
5580 : (set_attr "c86_attr" "extr")
5581 : (set_attr "length_immediate" "1")
5582 1165 : (set_attr "prefix" "orig,maybe_vex")
5583 : (set_attr "mode" "DI,TI")])
5584 :
5585 : (define_insn "*mmx_pextrb"
5586 : [(set (match_operand:QI 0 "nonimmediate_operand" "=jr,jm,r,m")
5587 : (vec_select:QI
5588 : (match_operand:V8QI 1 "register_operand" "YW,YW,YW,YW")
5589 : (parallel [(match_operand:SI 2 "const_0_to_7_operand")])))]
5590 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5591 : "@
5592 : pextrb\t{%2, %1, %k0|%k0, %1, %2}
5593 : pextrb\t{%2, %1, %0|%0, %1, %2}
5594 : vpextrb\t{%2, %1, %k0|%k0, %1, %2}
5595 : vpextrb\t{%2, %1, %0|%0, %1, %2}"
5596 : [(set_attr "isa" "noavx,noavx,avx,avx")
5597 : (set_attr "addr" "*,gpr16,*,*")
5598 : (set_attr "type" "sselog1")
5599 : (set_attr "c86_attr" "extr")
5600 : (set_attr "prefix_extra" "1")
5601 : (set_attr "length_immediate" "1")
5602 : (set_attr "prefix" "maybe_vex")
5603 : (set_attr "mode" "TI")])
5604 :
5605 : (define_insn "*mmx_pextrb_zext"
5606 : [(set (match_operand:SWI248 0 "register_operand" "=jr,r")
5607 : (zero_extend:SWI248
5608 : (vec_select:QI
5609 : (match_operand:V8QI 1 "register_operand" "YW,YW")
5610 : (parallel [(match_operand:SI 2 "const_0_to_7_operand")]))))]
5611 1 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5612 : "%vpextrb\t{%2, %1, %k0|%k0, %1, %2}"
5613 : [(set_attr "isa" "noavx,avx")
5614 : (set_attr "type" "sselog1")
5615 : (set_attr "c86_attr" "extr")
5616 : (set_attr "prefix_extra" "1")
5617 : (set_attr "length_immediate" "1")
5618 : (set_attr "prefix" "maybe_vex")
5619 : (set_attr "mode" "TI")])
5620 :
5621 : (define_insn "mmx_pshufbv8qi3"
5622 : [(set (match_operand:V8QI 0 "register_operand" "=x,Yw")
5623 : (unspec:V8QI
5624 : [(match_operand:V8QI 1 "register_operand" "0,Yw")
5625 : (match_operand:V16QI 2 "vector_operand" "xja,Ywm")]
5626 : UNSPEC_PSHUFB))]
5627 1327 : "TARGET_SSSE3 && TARGET_MMX_WITH_SSE"
5628 : "@
5629 : pshufb\t{%2, %0|%0, %2}
5630 : vpshufb\t{%2, %1, %0|%0, %1, %2}"
5631 26368 : [(set_attr "isa" "noavx,avx")
5632 : (set_attr "addr" "gpr16,*")
5633 : (set_attr "type" "sselog1")
5634 26368 : (set_attr "prefix_extra" "1")
5635 : (set_attr "prefix" "orig,maybe_evex")
5636 : (set_attr "btver2_decode" "vector")
5637 : (set_attr "mode" "TI")])
5638 :
5639 : (define_insn "mmx_pshufbv4qi3"
5640 : [(set (match_operand:V4QI 0 "register_operand" "=x,Yw")
5641 : (unspec:V4QI
5642 : [(match_operand:V4QI 1 "register_operand" "0,Yw")
5643 : (match_operand:V16QI 2 "vector_operand" "xja,Ywm")]
5644 : UNSPEC_PSHUFB))]
5645 26368 : "TARGET_SSSE3"
5646 : "@
5647 : pshufb\t{%2, %0|%0, %2}
5648 : vpshufb\t{%2, %1, %0|%0, %1, %2}"
5649 5495 : [(set_attr "isa" "noavx,avx")
5650 : (set_attr "addr" "gpr16,*")
5651 : (set_attr "type" "sselog1")
5652 5495 : (set_attr "prefix_extra" "1")
5653 : (set_attr "prefix" "orig,maybe_evex")
5654 : (set_attr "btver2_decode" "vector")
5655 : (set_attr "mode" "TI")])
5656 :
5657 : (define_expand "mmx_pshufw"
5658 : [(match_operand:V4HI 0 "register_operand")
5659 : (match_operand:V4HI 1 "register_mmxmem_operand")
5660 : (match_operand:SI 2 "const_int_operand")]
5661 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5662 : && (TARGET_SSE || TARGET_3DNOW_A)"
5663 75 : {
5664 75 : int mask = INTVAL (operands[2]);
5665 75 : emit_insn (gen_mmx_pshufwv4hi_1 (operands[0], operands[1],
5666 : GEN_INT ((mask >> 0) & 3),
5667 75 : GEN_INT ((mask >> 2) & 3),
5668 75 : GEN_INT ((mask >> 4) & 3),
5669 75 : GEN_INT ((mask >> 6) & 3)));
5670 75 : DONE;
5671 : })
5672 :
5673 : (define_insn "mmx_pshufw<mode>_1"
5674 : [(set (match_operand:V4FI_64 0 "register_operand" "=y,Yw")
5675 : (vec_select:V4FI_64
5676 : (match_operand:V4FI_64 1 "register_mmxmem_operand" "ym,Yw")
5677 : (parallel [(match_operand 2 "const_0_to_3_operand")
5678 : (match_operand 3 "const_0_to_3_operand")
5679 : (match_operand 4 "const_0_to_3_operand")
5680 : (match_operand 5 "const_0_to_3_operand")])))]
5681 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5682 : && (TARGET_SSE || TARGET_3DNOW_A)"
5683 6889 : {
5684 1165 : int mask = 0;
5685 6889 : mask |= INTVAL (operands[2]) << 0;
5686 6889 : mask |= INTVAL (operands[3]) << 2;
5687 6889 : mask |= INTVAL (operands[4]) << 4;
5688 1165 : mask |= INTVAL (operands[5]) << 6;
5689 1165 : operands[2] = GEN_INT (mask);
5690 :
5691 1165 : switch (which_alternative)
5692 : {
5693 : case 0:
5694 : return "pshufw\t{%2, %1, %0|%0, %1, %2}";
5695 1165 : case 1:
5696 1165 : return "%vpshuflw\t{%2, %1, %0|%0, %1, %2}";
5697 0 : default:
5698 0 : gcc_unreachable ();
5699 : }
5700 : }
5701 : [(set_attr "isa" "*,sse2")
5702 : (set_attr "mmx_isa" "native,*")
5703 : (set_attr "type" "mmxcvt,sselog1")
5704 801 : (set_attr "length_immediate" "1")
5705 : (set_attr "mode" "DI,TI")])
5706 :
5707 : (define_insn "*mmx_pshufd_1"
5708 : [(set (match_operand:V2SI 0 "register_operand" "=Yv")
5709 : (vec_select:V2SI
5710 : (match_operand:V2SI 1 "register_operand" "Yv")
5711 : (parallel [(match_operand 2 "const_0_to_1_operand")
5712 : (match_operand 3 "const_0_to_1_operand")])))]
5713 : "TARGET_MMX_WITH_SSE"
5714 801 : {
5715 801 : int mask = 0;
5716 801 : mask |= INTVAL (operands[2]) << 0;
5717 801 : mask |= INTVAL (operands[3]) << 2;
5718 801 : mask |= 2 << 4;
5719 801 : mask |= 3 << 6;
5720 801 : operands[2] = GEN_INT (mask);
5721 :
5722 801 : return "%vpshufd\t{%2, %1, %0|%0, %1, %2}";
5723 : }
5724 : [(set_attr "type" "sselog1")
5725 : (set_attr "prefix_data16" "1")
5726 : (set_attr "length_immediate" "1")
5727 : (set_attr "mode" "TI")])
5728 :
5729 : (define_insn "*mmx_pblendw64"
5730 : [(set (match_operand:V4FI_64 0 "register_operand" "=Yr,*x,x")
5731 : (vec_merge:V4FI_64
5732 : (match_operand:V4FI_64 2 "register_operand" "Yr,*x,x")
5733 : (match_operand:V4FI_64 1 "register_operand" "0,0,x")
5734 : (match_operand:SI 3 "const_0_to_15_operand")))]
5735 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
5736 : "@
5737 : pblendw\t{%3, %2, %0|%0, %2, %3}
5738 : pblendw\t{%3, %2, %0|%0, %2, %3}
5739 : vpblendw\t{%3, %2, %1, %0|%0, %1, %2, %3}"
5740 : [(set_attr "isa" "noavx,noavx,avx")
5741 : (set_attr "type" "ssemov")
5742 : (set_attr "c86_attr" "blend")
5743 : (set_attr "prefix_extra" "1")
5744 : (set_attr "length_immediate" "1")
5745 : (set_attr "prefix" "orig,orig,vex")
5746 : (set_attr "mode" "TI")])
5747 :
5748 : (define_insn "*mmx_pblendw32"
5749 : [(set (match_operand:V2FI_32 0 "register_operand" "=Yr,*x,x")
5750 : (vec_merge:V2FI_32
5751 : (match_operand:V2FI_32 2 "register_operand" "Yr,*x,x")
5752 : (match_operand:V2FI_32 1 "register_operand" "0,0,x")
5753 : (match_operand:SI 3 "const_0_to_7_operand")))]
5754 : "TARGET_SSE4_1"
5755 : "@
5756 : pblendw\t{%3, %2, %0|%0, %2, %3}
5757 : pblendw\t{%3, %2, %0|%0, %2, %3}
5758 : vpblendw\t{%3, %2, %1, %0|%0, %1, %2, %3}"
5759 : [(set_attr "isa" "noavx,noavx,avx")
5760 : (set_attr "type" "ssemov")
5761 : (set_attr "c86_attr" "blend")
5762 : (set_attr "prefix_extra" "1")
5763 : (set_attr "length_immediate" "1")
5764 : (set_attr "prefix" "orig,orig,vex")
5765 : (set_attr "mode" "TI")])
5766 :
5767 : ;; Optimize V2SImode load from memory, swapping the elements and
5768 : ;; storing back into the memory into DImode rotate of the memory by 32.
5769 : (define_split
5770 55 : [(set (match_operand:V2SI 0 "memory_operand")
5771 : (vec_select:V2SI (match_dup 0)
5772 : (parallel [(const_int 1) (const_int 0)])))]
5773 78 : "TARGET_64BIT && (TARGET_READ_MODIFY_WRITE || optimize_insn_for_size_p ())"
5774 : [(set (match_dup 0)
5775 : (rotate:DI (match_dup 0) (const_int 32)))]
5776 78 : "operands[0] = adjust_address (operands[0], DImode, 0);")
5777 3 :
5778 : (define_insn "mmx_pswapdv2si2"
5779 78 : [(set (match_operand:V2SI 0 "register_operand" "=y,Yv")
5780 3 : (vec_select:V2SI
5781 : (match_operand:V2SI 1 "register_mmxmem_operand" "ym,Yv")
5782 : (parallel [(const_int 1) (const_int 0)])))]
5783 78 : "TARGET_3DNOW_A"
5784 : "@
5785 : pswapd\t{%1, %0|%0, %1}
5786 : %vpshufd\t{$0xe1, %1, %0|%0, %1, 0xe1}";
5787 : [(set_attr "isa" "*,sse2")
5788 : (set_attr "mmx_isa" "native,*")
5789 0 : (set_attr "type" "mmxcvt,sselog1")
5790 : (set_attr "prefix_extra" "1,*")
5791 0 : (set_attr "length_immediate" "*,1")
5792 0 : (set_attr "mode" "DI,TI")])
5793 :
5794 : (define_insn "*vec_dupv4hi"
5795 : [(set (match_operand:V4HI 0 "register_operand" "=y,Yw")
5796 : (vec_duplicate:V4HI
5797 : (truncate:HI
5798 : (match_operand:SI 1 "register_operand" "0,Yw"))))]
5799 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5800 : && (TARGET_SSE || TARGET_3DNOW_A)"
5801 : "@
5802 : pshufw\t{$0, %0, %0|%0, %0, 0}
5803 : %vpshuflw\t{$0, %1, %0|%0, %1, 0}"
5804 : [(set_attr "isa" "*,sse2")
5805 : (set_attr "mmx_isa" "native,*")
5806 : (set_attr "type" "mmxcvt,sselog1")
5807 : (set_attr "length_immediate" "1")
5808 : (set_attr "mode" "DI,TI")])
5809 :
5810 : (define_insn "*vec_dup<mode>"
5811 : [(set (match_operand:V4FI_64 0 "register_operand" "=Yw")
5812 : (vec_duplicate:V4FI_64
5813 : (match_operand:<mmxscalarmode> 1 "register_operand" "Yw")))]
5814 : "TARGET_MMX_WITH_SSE"
5815 : "%vpshuflw\t{$0, %1, %0|%0, %1, 0}"
5816 : [(set_attr "isa" "sse2")
5817 : (set_attr "type" "sselog1")
5818 : (set_attr "length_immediate" "1")
5819 : (set_attr "mode" "TI")])
5820 :
5821 : (define_insn "*vec_dupv2si"
5822 : [(set (match_operand:V2SI 0 "register_operand" "=y,Yv")
5823 : (vec_duplicate:V2SI
5824 : (match_operand:SI 1 "register_operand" "0,Yv")))]
5825 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5826 : "@
5827 : punpckldq\t%0, %0
5828 : %vpshufd\t{$0xe0, %1, %0|%0, %1, 0xe0}"
5829 : [(set_attr "isa" "*,sse2")
5830 : (set_attr "mmx_isa" "native,*")
5831 : (set_attr "type" "mmxcvt,sselog1")
5832 : (set_attr "prefix_data16" "*,1")
5833 : (set_attr "length_immediate" "*,1")
5834 : (set_attr "mode" "DI,TI")])
5835 :
5836 : (define_insn "*mmx_concatv2si"
5837 : [(set (match_operand:V2SI 0 "register_operand" "=y,y")
5838 : (vec_concat:V2SI
5839 : (match_operand:SI 1 "nonimmediate_operand" " 0,rm")
5840 : (match_operand:SI 2 "nonimm_or_0_operand" "ym,C")))]
5841 : "TARGET_MMX && !TARGET_SSE"
5842 : "@
5843 : punpckldq\t{%2, %0|%0, %2}
5844 : movd\t{%1, %0|%0, %1}"
5845 : [(set_attr "type" "mmxcvt,mmxmov")
5846 : (set_attr "mode" "DI")])
5847 :
5848 : (define_expand "vec_setv2si"
5849 : [(match_operand:V2SI 0 "register_operand")
5850 : (match_operand:SI 1 "register_operand")
5851 : (match_operand 2 "vec_setm_mmx_operand")]
5852 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5853 191 : {
5854 191 : if (CONST_INT_P (operands[2]))
5855 189 : ix86_expand_vector_set (TARGET_MMX_WITH_SSE, operands[0], operands[1],
5856 189 : INTVAL (operands[2]));
5857 : else
5858 2 : ix86_expand_vector_set_var (operands[0], operands[1], operands[2]);
5859 191 : DONE;
5860 : })
5861 :
5862 : ;; Avoid combining registers from different units in a single alternative,
5863 : ;; see comment above inline_secondary_memory_needed function in i386.cc
5864 : (define_insn_and_split "*vec_extractv2si_0"
5865 : [(set (match_operand:SI 0 "nonimmediate_operand" "=x,m,y, m,r,r")
5866 : (vec_select:SI
5867 : (match_operand:V2SI 1 "nonimmediate_operand" "xm,x,ym,y,m,x")
5868 : (parallel [(const_int 0)])))]
5869 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5870 : && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
5871 : "#"
5872 2 : "&& reload_completed"
5873 : [(set (match_dup 0) (match_dup 1))]
5874 2215 : "operands[1] = gen_lowpart (SImode, operands[1]);"
5875 2 : [(set_attr "isa" "*,*,*,*,*,sse2")
5876 2 : (set_attr "mmx_isa" "*,*,native,native,*,*")
5877 2213 : (set (attr "preferred_for_speed")
5878 : (cond [(eq_attr "alternative" "5")
5879 : (symbol_ref "TARGET_INTER_UNIT_MOVES_FROM_VEC")
5880 2213 : ]
5881 : (symbol_ref "true")))])
5882 :
5883 : (define_insn "*vec_extractv2si_0_zext_sse4"
5884 : [(set (match_operand:DI 0 "register_operand" "=r,x")
5885 18859 : (zero_extend:DI
5886 : (vec_select:SI
5887 18859 : (match_operand:V2SI 1 "register_operand" "x,x")
5888 18859 : (parallel [(const_int 0)]))))]
5889 19704 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSE4_1"
5890 : "#"
5891 : [(set_attr "isa" "x64,*")
5892 : (set (attr "preferred_for_speed")
5893 845 : (cond [(eq_attr "alternative" "0")
5894 : (symbol_ref "TARGET_INTER_UNIT_MOVES_FROM_VEC")
5895 : ]
5896 845 : (symbol_ref "true")))])
5897 :
5898 : (define_insn "*vec_extractv2si_0_zext"
5899 : [(set (match_operand:DI 0 "register_operand" "=r")
5900 : (zero_extend:DI
5901 : (vec_select:SI
5902 : (match_operand:V2SI 1 "register_operand" "x")
5903 : (parallel [(const_int 0)]))))]
5904 0 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5905 845 : && TARGET_64BIT && TARGET_SSE2 && TARGET_INTER_UNIT_MOVES_FROM_VEC"
5906 : "#")
5907 :
5908 : (define_split
5909 4780 : [(set (match_operand:DI 0 "register_operand")
5910 : (zero_extend:DI
5911 : (vec_select:SI
5912 4780 : (match_operand:V2SI 1 "register_operand")
5913 : (parallel [(const_int 0)]))))]
5914 0 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5915 392 : && TARGET_SSE2 && reload_completed"
5916 : [(set (match_dup 0) (zero_extend:DI (match_dup 1)))]
5917 196 : "operands[1] = gen_lowpart (SImode, operands[1]);")
5918 :
5919 0 : ;; Avoid combining registers from different units in a single alternative,
5920 196 : ;; see comment above inline_secondary_memory_needed function in i386.cc
5921 : (define_insn "*vec_extractv2si_1"
5922 0 : [(set (match_operand:SI 0 "nonimmediate_operand" "=y,jrjm,rm,x,x,y,x,r")
5923 196 : (vec_select:SI
5924 : (match_operand:V2SI 1 "nonimmediate_operand" " 0,x, x ,x,0,o,o,o")
5925 : (parallel [(const_int 1)])))]
5926 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5927 : && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
5928 0 : "@
5929 : punpckhdq\t%0, %0
5930 0 : pextrd\t{$1, %1, %0|%0, %1, 1}
5931 0 : vpextrd\t{$1, %1, %0|%0, %1, 1}
5932 0 : %vpshufd\t{$0xe5, %1, %0|%0, %1, 0xe5}
5933 : shufps\t{$0xe5, %0, %0|%0, %0, 0xe5}
5934 : #
5935 : #
5936 : #"
5937 : [(set_attr "isa" "*,sse4_noavx,avx,sse2,noavx,*,*,*")
5938 : (set (attr "addr")
5939 : (if_then_else (eq_attr "alternative" "1")
5940 : (const_string "gpr16")
5941 : (const_string "*")))
5942 : (set_attr "mmx_isa" "native,*,*,*,*,native,*,*")
5943 : (set_attr "type" "mmxcvt,ssemov,ssemov,sseshuf1,sseshuf1,mmxmov,ssemov,imov")
5944 : (set_attr "c86_attr" "*,extr,extr,*,*,*,*,*")
5945 : (set (attr "length_immediate")
5946 : (if_then_else (eq_attr "alternative" "1,2,3,4")
5947 : (const_string "1")
5948 : (const_string "*")))
5949 : (set_attr "prefix" "orig,orig,maybe_evex,maybe_vex,orig,orig,orig,orig")
5950 : (set_attr "mode" "DI,TI,TI,TI,V4SF,SI,SI,SI")])
5951 :
5952 : (define_split
5953 : [(set (match_operand:SI 0 "register_operand")
5954 : (vec_select:SI
5955 : (match_operand:V2SI 1 "memory_operand")
5956 : (parallel [(const_int 1)])))]
5957 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && reload_completed"
5958 : [(set (match_dup 0) (match_dup 1))]
5959 38 : "operands[1] = adjust_address (operands[1], SImode, 4);")
5960 :
5961 : (define_insn "*vec_extractv2si_1_zext"
5962 38 : [(set (match_operand:DI 0 "register_operand" "=jr,r")
5963 : (zero_extend:DI
5964 : (vec_select:SI
5965 38 : (match_operand:V2SI 1 "register_operand" "x,x")
5966 : (parallel [(const_int 1)]))))]
5967 0 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
5968 968 : && TARGET_64BIT && TARGET_SSE4_1"
5969 : "%vpextrd\t{$1, %1, %k0|%k0, %1, 1}"
5970 9 : [(set_attr "isa" "noavx,avx")
5971 : (set_attr "type" "sselog1")
5972 9 : (set_attr "c86_attr" "extr")
5973 9 : (set_attr "prefix_extra" "1")
5974 9 : (set_attr "length_immediate" "1")
5975 0 : (set_attr "prefix" "maybe_vex")
5976 : (set_attr "mode" "TI")])
5977 :
5978 : (define_insn_and_split "*vec_extractv2si_zext_mem"
5979 : [(set (match_operand:DI 0 "register_operand" "=y,x,r")
5980 : (zero_extend:DI
5981 : (vec_select:SI
5982 : (match_operand:V2SI 1 "memory_operand" "o,o,o")
5983 : (parallel [(match_operand:SI 2 "const_0_to_1_operand")]))))]
5984 0 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_64BIT"
5985 : "#"
5986 0 : "&& reload_completed"
5987 : [(set (match_dup 0) (zero_extend:DI (match_dup 1)))]
5988 1270 : {
5989 0 : operands[1] = adjust_address (operands[1], SImode, INTVAL (operands[2]) * 4);
5990 0 : }
5991 1270 : [(set_attr "isa" "*,sse2,*")
5992 : (set_attr "mmx_isa" "native,*,*")])
5993 0 :
5994 : (define_expand "vec_extractv2sisi"
5995 : [(match_operand:SI 0 "register_operand")
5996 0 : (match_operand:V2SI 1 "register_operand")
5997 : (match_operand 2 "const_int_operand")]
5998 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
5999 5724 : {
6000 5726 : ix86_expand_vector_extract (TARGET_MMX_WITH_SSE, operands[0],
6001 5737 : operands[1], INTVAL (operands[2]));
6002 5724 : DONE;
6003 13 : })
6004 13 :
6005 13 : (define_expand "vec_initv2sisi"
6006 : [(match_operand:V2SI 0 "register_operand")
6007 : (match_operand 1)]
6008 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSE"
6009 18859 : {
6010 34152 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
6011 : operands[1]);
6012 18859 : DONE;
6013 : })
6014 :
6015 1101 : (define_expand "vec_set<mode>"
6016 : [(match_operand:V4FI_64 0 "register_operand")
6017 1101 : (match_operand:<mmxscalarmode> 1 "register_operand")
6018 1101 : (match_operand 2 "vec_setm_mmx_operand")]
6019 1101 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
6020 11 : {
6021 11 : if (CONST_INT_P (operands[2]))
6022 12 : ix86_expand_vector_set (TARGET_MMX_WITH_SSE, operands[0], operands[1],
6023 8 : INTVAL (operands[2]));
6024 : else
6025 14 : ix86_expand_vector_set_var (operands[0], operands[1], operands[2]);
6026 11 : DONE;
6027 11 : })
6028 11 :
6029 11 : (define_expand "vec_extract<mode><mmxscalarmodelower>"
6030 : [(match_operand:<mmxscalarmode> 0 "register_operand")
6031 : (match_operand:V4FI_64 1 "register_operand")
6032 : (match_operand 2 "const_int_operand")]
6033 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
6034 1125 : {
6035 1153 : ix86_expand_vector_extract (TARGET_MMX_WITH_SSE, operands[0],
6036 1125 : operands[1], INTVAL (operands[2]));
6037 1125 : DONE;
6038 : })
6039 3534 :
6040 : (define_expand "vec_initv4hihi"
6041 3534 : [(match_operand:V4HI 0 "register_operand")
6042 3534 : (match_operand 1)]
6043 3534 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSE"
6044 3515 : {
6045 3518 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
6046 : operands[1]);
6047 3515 : DONE;
6048 : })
6049 :
6050 1720 : (define_expand "vec_init<mode><mmxscalarmodelower>"
6051 : [(match_operand:V4F_64 0 "register_operand")
6052 1720 : (match_operand 1)]
6053 1720 : "TARGET_MMX_WITH_SSE"
6054 1739 : {
6055 19 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
6056 : operands[1]);
6057 19 : DONE;
6058 : })
6059 :
6060 : (define_expand "vec_setv8qi"
6061 1 : [(match_operand:V8QI 0 "register_operand")
6062 : (match_operand:QI 1 "register_operand")
6063 1 : (match_operand 2 "vec_setm_mmx_operand")]
6064 1 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
6065 2 : {
6066 2 : if (CONST_INT_P (operands[2]))
6067 0 : ix86_expand_vector_set (TARGET_MMX_WITH_SSE, operands[0], operands[1],
6068 0 : INTVAL (operands[2]));
6069 : else
6070 2 : ix86_expand_vector_set_var (operands[0], operands[1], operands[2]);
6071 2 : DONE;
6072 : })
6073 0 :
6074 0 : (define_expand "vec_extractv8qiqi"
6075 : [(match_operand:QI 0 "register_operand")
6076 : (match_operand:V8QI 1 "register_operand")
6077 : (match_operand 2 "const_int_operand")]
6078 : "TARGET_SSE4_1 && TARGET_MMX_WITH_SSE"
6079 1347 : {
6080 1347 : ix86_expand_vector_extract (TARGET_MMX_WITH_SSE, operands[0],
6081 1347 : operands[1], INTVAL (operands[2]));
6082 1347 : DONE;
6083 : })
6084 27 :
6085 : (define_expand "vec_initv8qiqi"
6086 27 : [(match_operand:V8QI 0 "register_operand")
6087 27 : (match_operand 1)]
6088 27 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSE"
6089 371 : {
6090 375 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
6091 : operands[1]);
6092 371 : DONE;
6093 : })
6094 :
6095 0 : (define_insn "*pinsrw"
6096 : [(set (match_operand:V2FI_32 0 "register_operand" "=x,YW,&x")
6097 0 : (vec_merge:V2FI_32
6098 0 : (vec_duplicate:V2FI_32
6099 0 : (match_operand:<mmxscalarmode> 2 "nonimmediate_operand" "rm,rm,x"))
6100 : (match_operand:V2FI_32 1 "register_operand" "0,YW,x")
6101 : (match_operand:SI 3 "const_int_operand")))]
6102 610 : "TARGET_SSE2
6103 610 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
6104 610 : < GET_MODE_NUNITS (V2HImode))"
6105 57 : {
6106 110 : operands[3] = GEN_INT (exact_log2 (INTVAL (operands[3])));
6107 57 : switch (which_alternative)
6108 2 : {
6109 2 : case 2:
6110 : return "#";
6111 1 : case 1:
6112 1 : if (MEM_P (operands[2]))
6113 : return "vpinsrw\t{%3, %2, %1, %0|%0, %1, %2, %3}";
6114 : else
6115 0 : return "vpinsrw\t{%3, %k2, %1, %0|%0, %1, %k2, %3}";
6116 54 : case 0:
6117 54 : if (MEM_P (operands[2]))
6118 : return "pinsrw\t{%3, %2, %0|%0, %2, %3}";
6119 : else
6120 35 : return "pinsrw\t{%3, %k2, %0|%0, %k2, %3}";
6121 0 : default:
6122 0 : gcc_unreachable ();
6123 : }
6124 : }
6125 : [(set_attr "isa" "noavx,avx,sse4")
6126 : (set_attr "type" "sselog")
6127 : (set_attr "c86_attr" "insr")
6128 0 : (set_attr "length_immediate" "1")
6129 : (set_attr "mode" "TI")])
6130 :
6131 : ;; For TARGET_SSE2, implement insert from XMM reg with PSHULFW + PBLENDW.
6132 : (define_split
6133 : [(set (match_operand:V2FI_32 0 "sse_reg_operand")
6134 : (vec_merge:V2FI_32
6135 : (vec_duplicate:V2FI_32
6136 : (match_operand:<mmxscalarmode> 2 "sse_reg_operand"))
6137 : (match_operand:V2FI_32 1 "sse_reg_operand")
6138 : (match_operand:SI 3 "const_int_operand")))]
6139 1 : "TARGET_SSE4_1 && reload_completed
6140 2 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
6141 1 : < GET_MODE_NUNITS (<MODE>mode))"
6142 : [(set (match_dup 0)
6143 : (vec_duplicate:V2FI_32 (match_dup 2)))
6144 : (set (match_dup 0)
6145 392 : (vec_merge:V2FI_32 (match_dup 1) (match_dup 0) (match_dup 3)))]
6146 1 : "operands[3] = GEN_INT (~INTVAL (operands[3]) & 0x3);")
6147 :
6148 392 :
6149 1 : (define_insn "*pinsrb"
6150 : [(set (match_operand:V4QI 0 "register_operand" "=x,YW")
6151 : (vec_merge:V4QI
6152 : (vec_duplicate:V4QI
6153 : (match_operand:QI 2 "nonimmediate_operand" "jrjm,rm"))
6154 1 : (match_operand:V4QI 1 "register_operand" "0,YW")
6155 : (match_operand:SI 3 "const_int_operand")))]
6156 0 : "TARGET_SSE4_1
6157 0 : && ((unsigned) exact_log2 (INTVAL (operands[3]))
6158 0 : < GET_MODE_NUNITS (V4QImode))"
6159 499 : {
6160 0 : operands[3] = GEN_INT (exact_log2 (INTVAL (operands[3])));
6161 499 : switch (which_alternative)
6162 382057 : {
6163 499 : case 1:
6164 0 : if (MEM_P (operands[2]))
6165 381558 : return "vpinsrb\t{%3, %2, %1, %0|%0, %1, %2, %3}";
6166 : else
6167 0 : return "vpinsrb\t{%3, %k2, %1, %0|%0, %1, %k2, %3}";
6168 0 : case 0:
6169 0 : if (MEM_P (operands[2]))
6170 : return "pinsrb\t{%3, %2, %0|%0, %2, %3}";
6171 : else
6172 0 : return "pinsrb\t{%3, %k2, %0|%0, %k2, %3}";
6173 0 : default:
6174 0 : gcc_unreachable ();
6175 : }
6176 : }
6177 : [(set_attr "isa" "noavx,avx")
6178 : (set_attr "addr" "gpr16,*")
6179 : (set_attr "type" "sselog")
6180 : (set_attr "c86_attr" "insr")
6181 : (set_attr "prefix_extra" "1")
6182 : (set_attr "length_immediate" "1")
6183 : (set_attr "prefix" "orig,vex")
6184 : (set_attr "mode" "TI")])
6185 :
6186 86 : (define_insn "*pextrw"
6187 : [(set (match_operand:HI 0 "register_sse4nonimm_operand" "=r,jm,m")
6188 : (vec_select:HI
6189 : (match_operand:V2HI 1 "register_operand" "YW,YW,YW")
6190 : (parallel [(match_operand:SI 2 "const_0_to_1_operand")])))]
6191 : "TARGET_SSE2"
6192 : "@
6193 : %vpextrw\t{%2, %1, %k0|%k0, %1, %2}
6194 : pextrw\t{%2, %1, %0|%0, %1, %2}
6195 : vpextrw\t{%2, %1, %0|%0, %1, %2}"
6196 : [(set_attr "isa" "*,sse4_noavx,avx")
6197 : (set_attr "addr" "*,gpr16,*")
6198 : (set_attr "type" "sselog1")
6199 : (set_attr "c86_attr" "extr")
6200 : (set_attr "length_immediate" "1")
6201 : (set_attr "prefix" "maybe_vex")
6202 : (set_attr "mode" "TI")])
6203 :
6204 : (define_insn "*pextrw<mode>"
6205 : [(set (match_operand:<mmxscalarmode> 0 "register_sse4nonimm_operand" "=?r,jm,m,x,Yw")
6206 : (vec_select:<mmxscalarmode>
6207 : (match_operand:V2F_32 1 "register_operand" "YW,YW,YW,0,YW")
6208 : (parallel [(match_operand:SI 2 "const_0_to_1_operand")])))]
6209 : "TARGET_SSE2"
6210 86 : {
6211 86 : switch (which_alternative)
6212 : {
6213 : case 0:
6214 : return "%vpextrw\t{%2, %1, %k0|%k0, %1, %2}";
6215 0 : case 1:
6216 0 : return "pextrw\t{%2, %1, %0|%0, %1, %2}";
6217 0 : case 2:
6218 0 : return "vpextrw\t{%2, %1, %0|%0, %1, %2}";
6219 12 : case 3:
6220 12 : operands[2] = GEN_INT (INTVAL (operands[2]) * 2);
6221 12 : return "psrldq\t{%2, %0|%0, %2}";
6222 14 : case 4:
6223 14 : operands[2] = GEN_INT (INTVAL (operands[2]) * 2);
6224 14 : return "vpsrldq\t{%2, %1, %0|%0, %1, %2}";
6225 :
6226 0 : default:
6227 0 : gcc_unreachable ();
6228 : }
6229 : }
6230 : [(set_attr "isa" "*,sse4_noavx,avx,noavx,avx")
6231 : (set_attr "addr" "*,gpr16,*,*,*")
6232 : (set_attr "type" "sselog1,sselog1,sselog1,sseishft1,sseishft1")
6233 : (set_attr "c86_attr" "extr,extr,extr,*,*")
6234 : (set_attr "length_immediate" "1")
6235 : (set_attr "prefix" "maybe_vex,orig,maybe_evex,orig,maybe_evex")
6236 : (set_attr "mode" "TI")])
6237 :
6238 : (define_insn "*pextrw_zext"
6239 : [(set (match_operand:SWI48 0 "register_operand" "=r")
6240 85 : (zero_extend:SWI48
6241 : (vec_select:HI
6242 : (match_operand:V2HI 1 "register_operand" "YW")
6243 : (parallel [(match_operand:SI 2 "const_0_to_1_operand")]))))]
6244 1850 : "TARGET_SSE2"
6245 : "%vpextrw\t{%2, %1, %k0|%k0, %1, %2}"
6246 : [(set_attr "type" "sselog1")
6247 : (set_attr "c86_attr" "extr")
6248 : (set_attr "length_immediate" "1")
6249 : (set_attr "prefix" "maybe_vex")
6250 : (set_attr "mode" "TI")])
6251 :
6252 : (define_insn "*pextrb"
6253 : [(set (match_operand:QI 0 "nonimmediate_operand" "=jr,jm,r,m")
6254 : (vec_select:QI
6255 : (match_operand:V4QI 1 "register_operand" "YW,YW,YW,YW")
6256 : (parallel [(match_operand:SI 2 "const_0_to_3_operand")])))]
6257 : "TARGET_SSE4_1"
6258 : "@
6259 : pextrb\t{%2, %1, %k0|%k0, %1, %2}
6260 : pextrb\t{%2, %1, %0|%0, %1, %2}
6261 : vpextrb\t{%2, %1, %k0|%k0, %1, %2}
6262 : vpextrb\t{%2, %1, %0|%0, %1, %2}"
6263 : [(set_attr "isa" "noavx,noavx,avx,avx")
6264 : (set_attr "addr" "*,gpr16,*,*")
6265 : (set_attr "type" "sselog1")
6266 : (set_attr "c86_attr" "extr")
6267 : (set_attr "prefix_extra" "1")
6268 : (set_attr "length_immediate" "1")
6269 : (set_attr "prefix" "maybe_vex")
6270 : (set_attr "mode" "TI")])
6271 :
6272 : (define_insn "*pextrb_zext"
6273 : [(set (match_operand:SWI248 0 "register_operand" "=jr,r")
6274 : (zero_extend:SWI248
6275 : (vec_select:QI
6276 : (match_operand:V4QI 1 "register_operand" "YW,YW")
6277 : (parallel [(match_operand:SI 2 "const_0_to_3_operand")]))))]
6278 0 : "TARGET_SSE4_1"
6279 : "%vpextrb\t{%2, %1, %k0|%k0, %1, %2}"
6280 : [(set_attr "isa" "noavx,avx")
6281 : (set_attr "type" "sselog1")
6282 : (set_attr "c86_attr" "extr")
6283 : (set_attr "prefix_extra" "1")
6284 : (set_attr "length_immediate" "1")
6285 : (set_attr "prefix" "maybe_vex")
6286 : (set_attr "mode" "TI")])
6287 :
6288 : (define_expand "vec_set<mode>"
6289 : [(match_operand:V2FI_32 0 "register_operand")
6290 : (match_operand:<mmxscalarmode> 1 "register_operand")
6291 : (match_operand 2 "vec_setm_sse41_operand")]
6292 : "TARGET_SSE2"
6293 29 : {
6294 29 : if (CONST_INT_P (operands[2]))
6295 26 : ix86_expand_vector_set (false, operands[0], operands[1],
6296 26 : INTVAL (operands[2]));
6297 : else
6298 3 : ix86_expand_vector_set_var (operands[0], operands[1], operands[2]);
6299 29 : DONE;
6300 : })
6301 :
6302 : (define_expand "vec_extract<mode><mmxscalarmodelower>"
6303 : [(match_operand:<mmxscalarmode> 0 "register_operand")
6304 : (match_operand:V2FI_32 1 "register_operand")
6305 : (match_operand 2 "const_int_operand")]
6306 : "TARGET_SSE2"
6307 499 : {
6308 499 : ix86_expand_vector_extract (false, operands[0],
6309 499 : operands[1], INTVAL (operands[2]));
6310 499 : DONE;
6311 : })
6312 87 :
6313 0 : (define_expand "vec_setv4qi"
6314 87 : [(match_operand:V4QI 0 "register_operand")
6315 87 : (match_operand:QI 1 "register_operand")
6316 87 : (match_operand 2 "vec_setm_mmx_operand")]
6317 : "TARGET_SSE4_1"
6318 2 : {
6319 2 : if (CONST_INT_P (operands[2]))
6320 0 : ix86_expand_vector_set (false, operands[0], operands[1],
6321 0 : INTVAL (operands[2]));
6322 : else
6323 108 : ix86_expand_vector_set_var (operands[0], operands[1], operands[2]);
6324 190 : DONE;
6325 106 : })
6326 294 :
6327 294 : (define_expand "vec_extractv4qiqi"
6328 : [(match_operand:QI 0 "register_operand")
6329 : (match_operand:V4QI 1 "register_operand")
6330 : (match_operand 2 "const_int_operand")]
6331 : "TARGET_SSE4_1"
6332 85 : {
6333 85 : ix86_expand_vector_extract (false, operands[0],
6334 85 : operands[1], INTVAL (operands[2]));
6335 85 : DONE;
6336 : })
6337 4300 :
6338 : (define_insn_and_split "*punpckwd"
6339 4300 : [(set (match_operand:V2FI_32 0 "register_operand" "=x,Yw")
6340 4300 : (vec_select:V2FI_32
6341 4300 : (vec_concat:<mmxdoublevecmode>
6342 : (match_operand:V2FI_32 1 "register_operand" "0,Yw")
6343 : (match_operand:V2FI_32 2 "register_operand" "x,Yw"))
6344 : (parallel [(match_operand 3 "const_0_to_3_operand")
6345 : (match_operand 4 "const_0_to_3_operand")])))]
6346 1576 : "TARGET_SSE2"
6347 : "#"
6348 1942 : "&& reload_completed"
6349 : [(set (match_dup 5)
6350 366 : (vec_select:<mmxxmmmode>
6351 366 : (match_dup 5)
6352 444 : (parallel [(match_dup 3) (match_dup 4)
6353 : (const_int 2) (const_int 3)
6354 : (const_int 4) (const_int 5)
6355 78 : (const_int 6) (const_int 7)])))]
6356 188 : {
6357 188 : rtx dest = lowpart_subreg (<mmxxmmmode>mode, operands[0], <MODE>mode);
6358 188 : rtx op1 = lowpart_subreg (<mmxxmmmode>mode, operands[1], <MODE>mode);
6359 188 : rtx op2 = lowpart_subreg (<mmxxmmmode>mode, operands[2], <MODE>mode);
6360 :
6361 188 : emit_insn (gen_vec_interleave_low<mmxxmmmodelower> (dest, op1, op2));
6362 :
6363 188 : static const int map[4] = { 0, 2, 1, 3 };
6364 :
6365 188 : int sel0 = map[INTVAL (operands[3])];
6366 188 : int sel1 = map[INTVAL (operands[4])];
6367 :
6368 188 : if (sel0 == 0 && sel1 == 1)
6369 69 : DONE;
6370 :
6371 119 : operands[3] = GEN_INT (sel0);
6372 119 : operands[4] = GEN_INT (sel1);
6373 119 : operands[5] = dest;
6374 : }
6375 : [(set_attr "isa" "noavx,avx")
6376 : (set_attr "type" "sselog")
6377 119 : (set_attr "mode" "TI")])
6378 :
6379 : (define_insn "*pshufw<mode>_1"
6380 : [(set (match_operand:V2FI_32 0 "register_operand" "=Yw")
6381 : (vec_select:V2FI_32
6382 : (match_operand:V2FI_32 1 "register_operand" "Yw")
6383 119 : (parallel [(match_operand 2 "const_0_to_1_operand")
6384 : (match_operand 3 "const_0_to_1_operand")])))]
6385 : "TARGET_SSE2"
6386 85 : {
6387 85 : int mask = 0;
6388 127 : mask |= INTVAL (operands[2]) << 0;
6389 85 : mask |= INTVAL (operands[3]) << 2;
6390 127 : mask |= 2 << 4;
6391 127 : mask |= 3 << 6;
6392 127 : operands[2] = GEN_INT (mask);
6393 :
6394 85 : return "%vpshuflw\t{%2, %1, %0|%0, %1, %2}";
6395 : }
6396 : [(set_attr "type" "sselog1")
6397 : (set_attr "length_immediate" "1")
6398 : (set_attr "mode" "TI")])
6399 42 :
6400 : (define_insn "*vec_dupv2hi"
6401 : [(set (match_operand:V2HI 0 "register_operand" "=Yw")
6402 : (vec_duplicate:V2HI
6403 : (truncate:HI
6404 : (match_operand:SI 1 "register_operand" "Yw"))))]
6405 : "TARGET_SSE2"
6406 : "%vpshuflw\t{$0, %1, %0|%0, %1, 0}"
6407 : [(set_attr "type" "sselog1")
6408 : (set_attr "length_immediate" "1")
6409 : (set_attr "mode" "TI")])
6410 :
6411 : (define_insn "*vec_dup<mode>"
6412 : [(set (match_operand:V2FI_32 0 "register_operand" "=Yw")
6413 : (vec_duplicate:V2FI_32
6414 : (match_operand:<mmxscalarmode> 1 "register_operand" "Yw")))]
6415 : "TARGET_SSE2"
6416 : "%vpshuflw\t{$0, %1, %0|%0, %1, 0}"
6417 : [(set_attr "type" "sselog1")
6418 : (set_attr "length_immediate" "1")
6419 : (set_attr "mode" "TI")])
6420 :
6421 : (define_expand "vec_init<mode><mmxscalarmodelower>"
6422 : [(match_operand:V2FI_32 0 "register_operand")
6423 : (match_operand 1)]
6424 : "TARGET_SSE2"
6425 484 : {
6426 541 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
6427 : operands[1]);
6428 484 : DONE;
6429 : })
6430 :
6431 : (define_expand "vec_initv4qiqi"
6432 : [(match_operand:V2HI 0 "register_operand")
6433 : (match_operand 1)]
6434 : "TARGET_SSE2"
6435 4300 : {
6436 4306 : ix86_expand_vector_init (TARGET_MMX_WITH_SSE, operands[0],
6437 : operands[1]);
6438 4300 : DONE;
6439 : })
6440 :
6441 401 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6442 : ;;
6443 401 : ;; Miscellaneous
6444 401 : ;;
6445 378 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6446 :
6447 : (define_expand "mmx_uavg<mode>3"
6448 : [(set (match_operand:MMXMODE12 0 "register_operand")
6449 : (truncate:MMXMODE12
6450 : (lshiftrt:<mmxdoublemode>
6451 6 : (plus:<mmxdoublemode>
6452 : (plus:<mmxdoublemode>
6453 6 : (zero_extend:<mmxdoublemode>
6454 6 : (match_operand:MMXMODE12 1 "register_mmxmem_operand"))
6455 6 : (zero_extend:<mmxdoublemode>
6456 : (match_operand:MMXMODE12 2 "register_mmxmem_operand")))
6457 : (match_dup 3))
6458 : (const_int 1))))]
6459 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
6460 : && (TARGET_SSE || TARGET_3DNOW)"
6461 0 : {
6462 0 : operands[3] = CONST1_RTX(<mmxdoublemode>mode);
6463 0 : ix86_fixup_binary_operands_no_copy (PLUS, <MODE>mode, operands);
6464 : })
6465 :
6466 : (define_insn "*mmx_uavgv8qi3"
6467 : [(set (match_operand:V8QI 0 "register_operand" "=y,x,Yw")
6468 0 : (truncate:V8QI
6469 : (lshiftrt:V8HI
6470 : (plus:V8HI
6471 : (plus:V8HI
6472 : (zero_extend:V8HI
6473 0 : (match_operand:V8QI 1 "register_mmxmem_operand" "%0,0,Yw"))
6474 : (zero_extend:V8HI
6475 : (match_operand:V8QI 2 "register_mmxmem_operand" "ym,x,Yw")))
6476 : (const_vector:V8HI [(const_int 1) (const_int 1)
6477 : (const_int 1) (const_int 1)
6478 16 : (const_int 1) (const_int 1)
6479 : (const_int 1) (const_int 1)]))
6480 16 : (const_int 1))))]
6481 32 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
6482 246 : && (TARGET_SSE || TARGET_3DNOW)
6483 460 : && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
6484 42 : {
6485 42 : switch (which_alternative)
6486 : {
6487 120 : case 2:
6488 : return "vpavgb\t{%2, %1, %0|%0, %1, %2}";
6489 18 : case 1:
6490 138 : case 0:
6491 : /* These two instructions have the same operation, but their encoding
6492 : is different. Prefer the one that is de facto standard. */
6493 18 : if (TARGET_SSE || TARGET_3DNOW_A)
6494 : return "pavgb\t{%2, %0|%0, %2}";
6495 : else
6496 0 : return "pavgusb\t{%2, %0|%0, %2}";
6497 0 : default:
6498 0 : gcc_unreachable ();
6499 : }
6500 : }
6501 : [(set_attr "isa" "*,sse2_noavx,avx")
6502 : (set_attr "mmx_isa" "native,*,*")
6503 : (set_attr "type" "mmxshft,sseiadd,sseiadd")
6504 : (set (attr "prefix_extra")
6505 : (if_then_else
6506 77 : (not (ior (match_test "TARGET_SSE")
6507 : (match_test "TARGET_3DNOW_A")))
6508 : (const_string "1")
6509 0 : (const_string "*")))
6510 : (set_attr "mode" "DI,TI,TI")])
6511 :
6512 : (define_insn "*mmx_uavgv4hi3"
6513 : [(set (match_operand:V4HI 0 "register_operand" "=y,x,Yw")
6514 : (truncate:V4HI
6515 : (lshiftrt:V4SI
6516 43296 : (plus:V4SI
6517 43296 : (plus:V4SI
6518 43296 : (zero_extend:V4SI
6519 43296 : (match_operand:V4HI 1 "register_mmxmem_operand" "%0,0,Yw"))
6520 43296 : (zero_extend:V4SI
6521 : (match_operand:V4HI 2 "register_mmxmem_operand" "ym,x,Yw")))
6522 : (const_vector:V4SI [(const_int 1) (const_int 1)
6523 : (const_int 1) (const_int 1)]))
6524 : (const_int 1))))]
6525 16 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
6526 120 : && (TARGET_SSE || TARGET_3DNOW_A)
6527 240 : && !(MEM_P (operands[1]) && MEM_P (operands[2]))"
6528 : "@
6529 152 : pavgw\t{%2, %0|%0, %2}
6530 152 : pavgw\t{%2, %0|%0, %2}
6531 272 : vpavgw\t{%2, %1, %0|%0, %1, %2}"
6532 152 : [(set_attr "isa" "*,sse2_noavx,avx")
6533 152 : (set_attr "mmx_isa" "native,*,*")
6534 272 : (set_attr "type" "mmxshft,sseiadd,sseiadd")
6535 : (set_attr "mode" "DI,TI,TI")])
6536 :
6537 3778217 : (define_expand "uavg<mode>3_ceil"
6538 : [(set (match_operand:MMXMODE12 0 "register_operand")
6539 : (truncate:MMXMODE12
6540 : (lshiftrt:<mmxdoublemode>
6541 : (plus:<mmxdoublemode>
6542 : (plus:<mmxdoublemode>
6543 0 : (zero_extend:<mmxdoublemode>
6544 0 : (match_operand:MMXMODE12 1 "register_operand"))
6545 0 : (zero_extend:<mmxdoublemode>
6546 : (match_operand:MMXMODE12 2 "register_operand")))
6547 : (match_dup 3))
6548 : (const_int 1))))]
6549 : "TARGET_MMX_WITH_SSE"
6550 65 : "operands[3] = CONST1_RTX(<mmxdoublemode>mode);")
6551 :
6552 : (define_insn "uavgv4qi3_ceil"
6553 : [(set (match_operand:V4QI 0 "register_operand" "=x,Yw")
6554 119 : (truncate:V4QI
6555 54 : (lshiftrt:V4HI
6556 54 : (plus:V4HI
6557 54 : (plus:V4HI
6558 : (zero_extend:V4HI
6559 65 : (match_operand:V4QI 1 "register_operand" "%0,Yw"))
6560 : (zero_extend:V4HI
6561 : (match_operand:V4QI 2 "register_operand" "x,Yw")))
6562 : (const_vector:V4HI [(const_int 1) (const_int 1)
6563 : (const_int 1) (const_int 1)]))
6564 19 : (const_int 1))))]
6565 : "TARGET_SSE2"
6566 688938 : "@
6567 688938 : pavgb\t{%2, %0|%0, %2}
6568 688938 : vpavgb\t{%2, %1, %0|%0, %1, %2}"
6569 : [(set_attr "isa" "noavx,avx")
6570 : (set_attr "type" "sseiadd")
6571 : (set_attr "mode" "TI")])
6572 :
6573 : (define_insn "uavgv2qi3_ceil"
6574 : [(set (match_operand:V2QI 0 "register_operand" "=x,Yw")
6575 : (truncate:V2QI
6576 : (lshiftrt:V2HI
6577 : (plus:V2HI
6578 : (plus:V2HI
6579 : (zero_extend:V2HI
6580 : (match_operand:V2QI 1 "register_operand" "%0,Yw"))
6581 : (zero_extend:V2HI
6582 : (match_operand:V2QI 2 "register_operand" "x,Yw")))
6583 : (const_vector:V2HI [(const_int 1) (const_int 1)]))
6584 : (const_int 1))))]
6585 : "TARGET_SSE2"
6586 : "@
6587 : pavgb\t{%2, %0|%0, %2}
6588 : vpavgb\t{%2, %1, %0|%0, %1, %2}"
6589 : [(set_attr "isa" "noavx,avx")
6590 : (set_attr "type" "sseiadd")
6591 : (set_attr "mode" "TI")])
6592 :
6593 : (define_insn "uavgv2hi3_ceil"
6594 : [(set (match_operand:V2HI 0 "register_operand" "=x,Yw")
6595 : (truncate:V2HI
6596 : (lshiftrt:V2SI
6597 : (plus:V2SI
6598 : (plus:V2SI
6599 : (zero_extend:V2SI
6600 : (match_operand:V2HI 1 "register_operand" "%0,Yw"))
6601 : (zero_extend:V2SI
6602 : (match_operand:V2HI 2 "register_operand" "x,Yw")))
6603 : (const_vector:V2SI [(const_int 1) (const_int 1)]))
6604 : (const_int 1))))]
6605 : "TARGET_SSE2"
6606 : "@
6607 : pavgw\t{%2, %0|%0, %2}
6608 : vpavgw\t{%2, %1, %0|%0, %1, %2}"
6609 : [(set_attr "isa" "noavx,avx")
6610 : (set_attr "type" "sseiadd")
6611 : (set_attr "mode" "TI")])
6612 :
6613 : (define_expand "mmx_psadbw"
6614 : [(set (match_operand:V1DI 0 "register_operand")
6615 : (unspec:V1DI [(match_operand:V8QI 1 "register_mmxmem_operand")
6616 : (match_operand:V8QI 2 "register_mmxmem_operand")]
6617 : UNSPEC_PSADBW))]
6618 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && (TARGET_SSE || TARGET_3DNOW_A)"
6619 366 : "ix86_fixup_binary_operands_no_copy (PLUS, V8QImode, operands);")
6620 :
6621 : (define_insn "*mmx_psadbw"
6622 : [(set (match_operand:V1DI 0 "register_operand" "=y,x,Yw")
6623 366 : (unspec:V1DI [(match_operand:V8QI 1 "register_mmxmem_operand" "%0,0,Yw")
6624 : (match_operand:V8QI 2 "register_mmxmem_operand" "ym,x,Yw")]
6625 : UNSPEC_PSADBW))]
6626 5495 : "(TARGET_MMX || TARGET_MMX_WITH_SSE) && (TARGET_SSE || TARGET_3DNOW_A)
6627 11356 : && ix86_binary_operator_ok (PLUS, V8QImode, operands)"
6628 : "@
6629 : psadbw\t{%2, %0|%0, %2}
6630 : psadbw\t{%2, %0|%0, %2}
6631 4934 : vpsadbw\t{%2, %1, %0|%0, %1, %2}"
6632 6 : [(set_attr "isa" "*,sse2_noavx,avx")
6633 : (set_attr "mmx_isa" "native,*,*")
6634 4940 : (set_attr "type" "mmxshft,sseiadd,sseiadd")
6635 6 : (set_attr "c86_attr" "sadbw")
6636 6 : (set_attr "mode" "DI,TI,TI")])
6637 :
6638 : (define_expand "reduc_<code>_scal_<mode>"
6639 : [(any_logic:MMXMODE12
6640 : (match_operand:<mmxscalarmode> 0 "register_operand")
6641 : (match_operand:MMXMODE12 1 "register_operand"))]
6642 : "TARGET_MMX_WITH_SSE"
6643 47 : {
6644 47 : rtx tmp = gen_reg_rtx (<MODE>mode);
6645 47 : ix86_expand_reduc (gen_insn_<code><mode>3, tmp, operands[1]);
6646 47 : emit_insn (gen_vec_extract<mode><mmxscalarmodelower> (operands[0],
6647 : tmp, const0_rtx));
6648 47 : DONE;
6649 : })
6650 :
6651 : (define_expand "reduc_<code>_scal_v4qi"
6652 : [(any_logic:V4QI
6653 : (match_operand:QI 0 "register_operand")
6654 : (match_operand:V4QI 1 "register_operand"))]
6655 : "TARGET_SSE2"
6656 31 : {
6657 62 : rtx tmp = gen_reg_rtx (V4QImode);
6658 31 : ix86_expand_reduc (gen_<code>v4qi3, tmp, operands[1]);
6659 31 : emit_insn (gen_vec_extractv4qiqi (operands[0], tmp, const0_rtx));
6660 31 : DONE;
6661 597 : })
6662 :
6663 597 : (define_expand "reduc_plus_scal_v8qi"
6664 597 : [(plus:V8QI
6665 597 : (match_operand:QI 0 "register_operand")
6666 : (match_operand:V8QI 1 "register_operand"))]
6667 : "TARGET_MMX_WITH_SSE"
6668 335 : {
6669 335 : rtx tmp = gen_reg_rtx (V8QImode);
6670 335 : emit_move_insn (tmp, CONST0_RTX (V8QImode));
6671 335 : rtx tmp2 = gen_reg_rtx (V1DImode);
6672 335 : emit_insn (gen_mmx_psadbw (tmp2, operands[1], tmp));
6673 343 : tmp2 = gen_lowpart (V8QImode, tmp2);
6674 335 : emit_insn (gen_vec_extractv8qiqi (operands[0], tmp2, const0_rtx));
6675 343 : DONE;
6676 8 : })
6677 8 :
6678 : (define_expand "reduc_plus_scal_v4hi"
6679 : [(plus:V4HI
6680 : (match_operand:HI 0 "register_operand")
6681 : (match_operand:V4HI 1 "register_operand"))]
6682 : "TARGET_MMX_WITH_SSE"
6683 229 : {
6684 229 : rtx tmp = gen_reg_rtx (V4HImode);
6685 229 : ix86_expand_reduc (gen_insn_addv4hi3, tmp, operands[1]);
6686 229 : emit_insn (gen_vec_extractv4hihi (operands[0], tmp, const0_rtx));
6687 229 : DONE;
6688 2 : })
6689 :
6690 2 : (define_expand "reduc_<code>_scal_v4hi"
6691 2 : [(smaxmin:V4HI
6692 2 : (match_operand:HI 0 "register_operand")
6693 : (match_operand:V4HI 1 "register_operand"))]
6694 : "TARGET_MMX_WITH_SSE"
6695 4 : {
6696 4 : rtx tmp = gen_reg_rtx (V4HImode);
6697 4 : ix86_expand_reduc (gen_insn_<code>v4hi3, tmp, operands[1]);
6698 4 : emit_insn (gen_vec_extractv4hihi (operands[0], tmp, const0_rtx));
6699 4 : DONE;
6700 2 : })
6701 :
6702 2 : (define_expand "reduc_<code>_scal_v4qi"
6703 2 : [(smaxmin:V4QI
6704 2 : (match_operand:QI 0 "register_operand")
6705 : (match_operand:V4QI 1 "register_operand"))]
6706 : "TARGET_SSE4_1"
6707 4 : {
6708 6 : rtx tmp = gen_reg_rtx (V4QImode);
6709 4 : ix86_expand_reduc (gen_insn_<code>v4qi3, tmp, operands[1]);
6710 4 : emit_insn (gen_vec_extractv4qiqi (operands[0], tmp, const0_rtx));
6711 4 : DONE;
6712 4 : })
6713 :
6714 4 : (define_expand "reduc_<code>_scal_v4hi"
6715 4 : [(umaxmin:V4HI
6716 4 : (match_operand:HI 0 "register_operand")
6717 : (match_operand:V4HI 1 "register_operand"))]
6718 : "TARGET_MMX_WITH_SSE && TARGET_SSE4_1"
6719 6 : {
6720 6 : rtx tmp = gen_reg_rtx (V4HImode);
6721 6 : ix86_expand_reduc (gen_insn_<code>v4hi3, tmp, operands[1]);
6722 6 : emit_insn (gen_vec_extractv4hihi (operands[0], tmp, const0_rtx));
6723 6 : DONE;
6724 322 : })
6725 :
6726 322 : (define_expand "reduc_<code>_scal_v4qi"
6727 322 : [(umaxmin:V4QI
6728 322 : (match_operand:QI 0 "register_operand")
6729 : (match_operand:V4QI 1 "register_operand"))]
6730 : "TARGET_SSE4_1"
6731 4 : {
6732 4 : rtx tmp = gen_reg_rtx (V4QImode);
6733 4 : ix86_expand_reduc (gen_insn_<code>v4qi3, tmp, operands[1]);
6734 4 : emit_insn (gen_vec_extractv4qiqi (operands[0], tmp, const0_rtx));
6735 4 : DONE;
6736 19 : })
6737 :
6738 19 : (define_expand "reduc_plus_scal_v4qi"
6739 19 : [(plus:V4QI
6740 19 : (match_operand:QI 0 "register_operand")
6741 : (match_operand:V4QI 1 "register_operand"))]
6742 : "TARGET_SSE2"
6743 314 : {
6744 314 : rtx op1 = gen_reg_rtx (V16QImode);
6745 314 : emit_insn (gen_vec_setv4si_0 (lowpart_subreg (V4SImode, op1, V16QImode),
6746 : CONST0_RTX (V4SImode),
6747 : lowpart_subreg (SImode,
6748 12 : operands[1],
6749 : V4QImode)));
6750 326 : rtx tmp = gen_reg_rtx (V16QImode);
6751 326 : emit_move_insn (tmp, CONST0_RTX (V16QImode));
6752 326 : rtx tmp2 = gen_reg_rtx (V2DImode);
6753 314 : emit_insn (gen_sse2_psadbw (tmp2, op1, tmp));
6754 314 : tmp2 = gen_lowpart (V16QImode, tmp2);
6755 314 : emit_insn (gen_vec_extractv16qiqi (operands[0], tmp2, const0_rtx));
6756 314 : DONE;
6757 : })
6758 :
6759 : (define_expand "usadv2siv8qi"
6760 : [(match_operand:V2SI 0 "register_operand")
6761 : (match_operand:V8QI 1 "register_operand")
6762 : (match_operand:V8QI 2 "register_operand")
6763 : (match_operand:V2SI 3 "register_operand")]
6764 : "TARGET_MMX_WITH_SSE"
6765 8 : {
6766 8 : rtx t1 = gen_reg_rtx (V1DImode);
6767 8 : rtx t2 = gen_reg_rtx (V2SImode);
6768 8 : emit_insn (gen_mmx_psadbw (t1, operands[1], operands[2]));
6769 50 : convert_move (t2, t1, 0);
6770 8 : emit_insn (gen_addv2si3 (operands[0], t2, operands[3]));
6771 50 : DONE;
6772 42 : })
6773 42 :
6774 : (define_expand "usdot_prodv2siv8qi"
6775 : [(match_operand:V2SI 0 "register_operand")
6776 : (match_operand:V8QI 1 "register_operand")
6777 : (match_operand:V8QI 2 "register_operand")
6778 : (match_operand:V2SI 3 "register_operand")]
6779 : "TARGET_MMX_WITH_SSE && TARGET_SSE4_1"
6780 7 : {
6781 7 : operands[1] = force_reg (V8QImode, operands[1]);
6782 7 : operands[2] = force_reg (V8QImode, operands[2]);
6783 7 : operands[3] = force_reg (V2SImode, operands[3]);
6784 :
6785 10 : if ((TARGET_AVX512VNNI && TARGET_AVX512VL)
6786 5 : || TARGET_AVXVNNI)
6787 3 : {
6788 8 : rtx op1 = lowpart_subreg (V16QImode, operands[1], V8QImode);
6789 8 : rtx op2 = lowpart_subreg (V16QImode, operands[2], V8QImode);
6790 5 : rtx op3 = lowpart_subreg (V4SImode, operands[3], V2SImode);
6791 5 : rtx op0 = gen_reg_rtx (V4SImode);
6792 :
6793 5 : emit_insn (gen_usdot_prodv4siv16qi (op0, op1, op2, op3));
6794 5 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
6795 5 : }
6796 : else
6797 : {
6798 2 : rtx op1 = gen_reg_rtx (V8HImode);
6799 2 : rtx op2 = gen_reg_rtx (V8HImode);
6800 2 : rtx op3 = gen_reg_rtx (V4SImode);
6801 2 : rtx op0 = gen_reg_rtx (V4SImode);
6802 2 : rtx op0_1 = gen_reg_rtx (V4SImode);
6803 :
6804 2 : emit_move_insn (op3, CONST0_RTX (V4SImode));
6805 2 : emit_insn (gen_zero_extendv8qiv8hi2 (op1, operands[1]));
6806 2 : emit_insn (gen_extendv8qiv8hi2 (op2, operands[2]));
6807 2 : emit_insn (gen_sdot_prodv4siv8hi (op0, op1, op2, op3));
6808 :
6809 : /* vec_perm (op0, 2, 3, 0, 1); */
6810 2 : emit_insn (gen_sse2_pshufd (op0_1, op0, GEN_INT (78)));
6811 2 : emit_insn (gen_addv4si3 (op0, op0, op0_1));
6812 2 : emit_insn (gen_addv2si3 (operands[0], operands[3],
6813 : lowpart_subreg (V2SImode, op0, V4SImode)));
6814 : }
6815 7 : DONE;
6816 : })
6817 :
6818 : (define_expand "sdot_prodv2siv8qi"
6819 : [(match_operand:V2SI 0 "register_operand")
6820 : (match_operand:V8QI 1 "register_operand")
6821 : (match_operand:V8QI 2 "register_operand")
6822 : (match_operand:V2SI 3 "register_operand")]
6823 : "TARGET_MMX_WITH_SSE && TARGET_SSE4_1"
6824 12 : {
6825 12 : operands[1] = force_reg (V8QImode, operands[1]);
6826 12 : operands[2] = force_reg (V8QImode, operands[2]);
6827 12 : operands[3] = force_reg (V2SImode, operands[3]);
6828 :
6829 117 : if (TARGET_AVXVNNIINT8)
6830 : {
6831 110 : rtx op1 = lowpart_subreg (V16QImode, operands[1], V8QImode);
6832 110 : rtx op2 = lowpart_subreg (V16QImode, operands[2], V8QImode);
6833 5 : rtx op3 = lowpart_subreg (V4SImode, operands[3], V2SImode);
6834 5 : rtx op0 = gen_reg_rtx (V4SImode);
6835 :
6836 5 : emit_insn (gen_sdot_prodv4siv16qi (op0, op1, op2, op3));
6837 5 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
6838 : }
6839 : else
6840 : {
6841 7 : rtx op1 = gen_reg_rtx (V8HImode);
6842 7 : rtx op2 = gen_reg_rtx (V8HImode);
6843 7 : rtx op3 = gen_reg_rtx (V4SImode);
6844 7 : rtx op0 = gen_reg_rtx (V4SImode);
6845 7 : rtx op0_1 = gen_reg_rtx (V4SImode);
6846 :
6847 7 : emit_move_insn (op3, CONST0_RTX (V4SImode));
6848 7 : emit_insn (gen_extendv8qiv8hi2 (op1, operands[1]));
6849 7 : emit_insn (gen_extendv8qiv8hi2 (op2, operands[2]));
6850 7 : emit_insn (gen_sdot_prodv4siv8hi (op0, op1, op2, op3));
6851 :
6852 : /* vec_perm (op0, 2, 3, 0, 1); */
6853 7 : emit_insn (gen_sse2_pshufd (op0_1, op0, GEN_INT (78)));
6854 7 : emit_insn (gen_addv4si3 (op0, op0, op0_1));
6855 7 : emit_insn (gen_addv2si3 (operands[0], operands[3],
6856 : lowpart_subreg (V2SImode, op0, V4SImode)));
6857 : }
6858 12 : DONE;
6859 :
6860 : })
6861 :
6862 : (define_expand "udot_prodv2siv8qi"
6863 : [(match_operand:V2SI 0 "register_operand")
6864 : (match_operand:V8QI 1 "register_operand")
6865 : (match_operand:V8QI 2 "register_operand")
6866 : (match_operand:V2SI 3 "register_operand")]
6867 : "TARGET_MMX_WITH_SSE && TARGET_SSE4_1"
6868 9 : {
6869 9 : operands[1] = force_reg (V8QImode, operands[1]);
6870 9 : operands[2] = force_reg (V8QImode, operands[2]);
6871 9 : operands[3] = force_reg (V2SImode, operands[3]);
6872 :
6873 10 : if (TARGET_AVXVNNIINT8)
6874 : {
6875 6 : rtx op1 = lowpart_subreg (V16QImode, operands[1], V8QImode);
6876 6 : rtx op2 = lowpart_subreg (V16QImode, operands[2], V8QImode);
6877 5 : rtx op3 = lowpart_subreg (V4SImode, operands[3], V2SImode);
6878 5 : rtx op0 = gen_reg_rtx (V4SImode);
6879 :
6880 6 : emit_insn (gen_udot_prodv4siv16qi (op0, op1, op2, op3));
6881 5 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
6882 : }
6883 : else
6884 0 : {
6885 4 : rtx op1 = gen_reg_rtx (V8HImode);
6886 4 : rtx op2 = gen_reg_rtx (V8HImode);
6887 4 : rtx op3 = gen_reg_rtx (V4SImode);
6888 9326 : rtx op0 = gen_reg_rtx (V4SImode);
6889 4 : rtx op0_1 = gen_reg_rtx (V4SImode);
6890 9322 :
6891 9326 : emit_move_insn (op3, CONST0_RTX (V4SImode));
6892 9326 : emit_insn (gen_zero_extendv8qiv8hi2 (op1, operands[1]));
6893 4 : emit_insn (gen_zero_extendv8qiv8hi2 (op2, operands[2]));
6894 4 : emit_insn (gen_sdot_prodv4siv8hi (op0, op1, op2, op3));
6895 :
6896 : /* vec_perm (op0, 2, 3, 0, 1); */
6897 4 : emit_insn (gen_sse2_pshufd (op0_1, op0, GEN_INT (78)));
6898 4 : emit_insn (gen_addv4si3 (op0, op0, op0_1));
6899 4 : emit_insn (gen_addv2si3 (operands[0], operands[3],
6900 : lowpart_subreg (V2SImode, op0, V4SImode)));
6901 : }
6902 9 : DONE;
6903 :
6904 : })
6905 :
6906 : (define_expand "usdot_prodv2siv4hi"
6907 : [(match_operand:V2SI 0 "register_operand")
6908 : (match_operand:V4HI 1 "register_operand")
6909 : (match_operand:V4HI 2 "register_operand")
6910 : (match_operand:V2SI 3 "register_operand")]
6911 : "TARGET_AVXVNNIINT16 && TARGET_MMX_WITH_SSE"
6912 3 : {
6913 3 : operands[1] = force_reg (V4HImode, operands[1]);
6914 3 : operands[2] = force_reg (V4HImode, operands[2]);
6915 3 : operands[3] = force_reg (V2SImode, operands[3]);
6916 :
6917 20271 : rtx op1 = lowpart_subreg (V8HImode, operands[1], V4HImode);
6918 3 : rtx op2 = lowpart_subreg (V8HImode, operands[2], V4HImode);
6919 20271 : rtx op3 = lowpart_subreg (V4SImode, operands[3], V2SImode);
6920 20271 : rtx op0 = gen_reg_rtx (V4SImode);
6921 20268 :
6922 3 : emit_insn (gen_usdot_prodv4siv8hi (op0, op1, op2, op3));
6923 3 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
6924 3 : DONE;
6925 : })
6926 :
6927 : (define_expand "udot_prodv2siv4hi"
6928 : [(match_operand:V2SI 0 "register_operand")
6929 : (match_operand:V4HI 1 "register_operand")
6930 : (match_operand:V4HI 2 "register_operand")
6931 : (match_operand:V2SI 3 "register_operand")]
6932 : "TARGET_AVXVNNIINT16 && TARGET_MMX_WITH_SSE"
6933 3 : {
6934 3 : operands[1] = force_reg (V4HImode, operands[1]);
6935 3 : operands[2] = force_reg (V4HImode, operands[2]);
6936 3 : operands[3] = force_reg (V2SImode, operands[3]);
6937 :
6938 3 : rtx op1 = lowpart_subreg (V8HImode, operands[1], V4HImode);
6939 25 : rtx op2 = lowpart_subreg (V8HImode, operands[2], V4HImode);
6940 3 : rtx op3 = lowpart_subreg (V4SImode, operands[3], V2SImode);
6941 25 : rtx op0 = gen_reg_rtx (V4SImode);
6942 22 :
6943 3 : emit_insn (gen_udot_prodv4siv8hi (op0, op1, op2, op3));
6944 3 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
6945 3 : DONE;
6946 : })
6947 :
6948 : (define_expand "sdot_prodv2siv4hi"
6949 : [(match_operand:V2SI 0 "register_operand")
6950 : (match_operand:V4HI 1 "register_operand")
6951 : (match_operand:V4HI 2 "register_operand")
6952 : (match_operand:V2SI 3 "register_operand")]
6953 : "TARGET_MMX_WITH_SSE"
6954 42 : {
6955 42 : operands[1] = force_reg (V4HImode, operands[1]);
6956 42 : operands[2] = force_reg (V4HImode, operands[2]);
6957 42 : operands[3] = force_reg (V2SImode, operands[3]);
6958 :
6959 57 : rtx op1 = lowpart_subreg (V8HImode, operands[1], V4HImode);
6960 42 : rtx op2 = lowpart_subreg (V8HImode, operands[2], V4HImode);
6961 57 : rtx op3 = lowpart_subreg (V4SImode, operands[3], V2SImode);
6962 57 : rtx op0 = gen_reg_rtx (V4SImode);
6963 :
6964 42 : emit_insn (gen_sdot_prodv4siv8hi (op0, op1, op2, op3));
6965 42 : emit_move_insn (operands[0], lowpart_subreg (V2SImode, op0, V4SImode));
6966 42 : DONE;
6967 : })
6968 :
6969 : (define_insn_and_split "mmx_pmovmskb"
6970 : [(set (match_operand:SI 0 "register_operand" "=r,r,jr")
6971 : (unspec:SI [(match_operand:V8QI 1 "register_operand" "y,x,x")]
6972 : UNSPEC_MOVMSK))]
6973 : "(TARGET_MMX || TARGET_MMX_WITH_SSE)
6974 : && (TARGET_SSE || TARGET_3DNOW_A)"
6975 : "@
6976 : pmovmskb\t{%1, %0|%0, %1}
6977 : #
6978 : #"
6979 44 : "TARGET_SSE2 && reload_completed
6980 416134 : && SSE_REGNO_P (REGNO (operands[1]))"
6981 : [(set (match_dup 0)
6982 416068 : (unspec:SI [(match_dup 1)] UNSPEC_MOVMSK))
6983 416068 : (set (match_dup 0)
6984 416070 : (zero_extend:SI (match_dup 2)))]
6985 22 : {
6986 : /* Generate SSE pmovmskb and zero-extend from QImode to SImode. */
6987 46 : operands[1] = lowpart_subreg (V16QImode, operands[1],
6988 22 : GET_MODE (operands[1]));
6989 44 : operands[2] = lowpart_subreg (QImode, operands[0],
6990 22 : GET_MODE (operands[0]));
6991 : }
6992 : [(set_attr "mmx_isa" "native,sse_noavx,avx")
6993 : (set_attr "type" "mmxcvt,ssemov,ssemov")
6994 22 : (set_attr "mode" "DI,TI,TI")])
6995 :
6996 : (define_expand "mmx_maskmovq"
6997 : [(set (match_operand:V8QI 0 "memory_operand")
6998 : (unspec:V8QI [(match_operand:V8QI 1 "register_operand")
6999 22 : (match_operand:V8QI 2 "register_operand")
7000 : (match_dup 0)]
7001 : UNSPEC_MASKMOV))]
7002 : "TARGET_SSE || TARGET_3DNOW_A")
7003 :
7004 17361 : (define_insn "*mmx_maskmovq"
7005 : [(set (mem:V8QI (match_operand:P 0 "register_operand" "D"))
7006 17361 : (unspec:V8QI [(match_operand:V8QI 1 "register_operand" "y")
7007 17361 : (match_operand:V8QI 2 "register_operand" "y")
7008 17361 : (mem:V8QI (match_dup 0))]
7009 : UNSPEC_MASKMOV))]
7010 18 : "TARGET_SSE || TARGET_3DNOW_A"
7011 : ;; @@@ check ordering of operands in intel/nonintel syntax
7012 : "maskmovq\t{%2, %1|%1, %2}"
7013 : [(set_attr "type" "mmxcvt")
7014 : (set_attr "znver1_decode" "vector")
7015 : (set_attr "c86_decode" "vector")
7016 : (set_attr "mode" "DI")])
7017 :
7018 : (define_int_iterator EMMS
7019 104 : [(UNSPECV_EMMS "TARGET_MMX")
7020 : (UNSPECV_FEMMS "TARGET_3DNOW")])
7021 :
7022 : (define_int_attr emms
7023 0 : [(UNSPECV_EMMS "emms")
7024 : (UNSPECV_FEMMS "femms")])
7025 :
7026 0 : (define_expand "mmx_<emms>"
7027 : [(parallel
7028 : [(unspec_volatile [(const_int 0)] EMMS)
7029 : (clobber (reg:XF ST0_REG))
7030 : (clobber (reg:XF ST1_REG))
7031 : (clobber (reg:XF ST2_REG))
7032 : (clobber (reg:XF ST3_REG))
7033 : (clobber (reg:XF ST4_REG))
7034 : (clobber (reg:XF ST5_REG))
7035 : (clobber (reg:XF ST6_REG))
7036 : (clobber (reg:XF ST7_REG))
7037 : (clobber (reg:DI MM0_REG))
7038 : (clobber (reg:DI MM1_REG))
7039 : (clobber (reg:DI MM2_REG))
7040 : (clobber (reg:DI MM3_REG))
7041 : (clobber (reg:DI MM4_REG))
7042 : (clobber (reg:DI MM5_REG))
7043 : (clobber (reg:DI MM6_REG))
7044 : (clobber (reg:DI MM7_REG))])]
7045 : "TARGET_MMX || TARGET_MMX_WITH_SSE"
7046 120 : {
7047 120 : if (!TARGET_MMX)
7048 : {
7049 1 : emit_insn (gen_nop ());
7050 1 : DONE;
7051 : }
7052 : })
7053 :
7054 : (define_insn "*mmx_<emms>"
7055 : [(unspec_volatile [(const_int 0)] EMMS)
7056 119 : (clobber (reg:XF ST0_REG))
7057 : (clobber (reg:XF ST1_REG))
7058 : (clobber (reg:XF ST2_REG))
7059 : (clobber (reg:XF ST3_REG))
7060 : (clobber (reg:XF ST4_REG))
7061 : (clobber (reg:XF ST5_REG))
7062 : (clobber (reg:XF ST6_REG))
7063 : (clobber (reg:XF ST7_REG))
7064 : (clobber (reg:DI MM0_REG))
7065 : (clobber (reg:DI MM1_REG))
7066 119 : (clobber (reg:DI MM2_REG))
7067 : (clobber (reg:DI MM3_REG))
7068 : (clobber (reg:DI MM4_REG))
7069 : (clobber (reg:DI MM5_REG))
7070 : (clobber (reg:DI MM6_REG))
7071 611887 : (clobber (reg:DI MM7_REG))]
7072 : ""
7073 611887 : "<emms>"
7074 611887 : [(set_attr "type" "mmx")
7075 611887 : (set_attr "modrm" "0")
7076 : (set_attr "memory" "none")])
7077 :
7078 : (define_insn "popcount<mode>2"
7079 : [(set (match_operand:VI1_16_32_64 0 "register_operand" "=v")
7080 : (popcount:VI1_16_32_64
7081 : (match_operand:VI1_16_32_64 1 "register_operand" "v")))]
7082 25 : "TARGET_AVX512VL && TARGET_AVX512BITALG"
7083 : "vpopcntb\t{%1, %0|%0, %1}")
7084 :
7085 : (define_insn "popcount<mode>2"
7086 5 : [(set (match_operand:VI2_32_64 0 "register_operand" "=v")
7087 : (popcount:VI2_32_64
7088 : (match_operand:VI2_32_64 1 "register_operand" "v")))]
7089 5 : "TARGET_AVX512VL && TARGET_AVX512BITALG"
7090 : "vpopcntw\t{%1, %0|%0, %1}")
7091 :
7092 : (define_insn "popcountv2si2"
7093 : [(set (match_operand:V2SI 0 "register_operand" "=v")
7094 : (popcount:V2SI
7095 : (match_operand:V2SI 1 "register_operand" "v")))]
7096 5 : "TARGET_AVX512VPOPCNTDQ && TARGET_AVX512VL && TARGET_MMX_WITH_SSE"
7097 : "vpopcntd\t{%1, %0|%0, %1}")
7098 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7099 : /* (content generated from coverage data) */
7100 6649 : /* END: function "_ZL18insn_condition_439PP7rtx_defP8rtx_insn" */
7101 : /* ... */
7102 : /* ... */
7103 6649 : /* ... */
7104 : /* ... */
7105 : /* ... */
7106 : /* ... */
7107 : /* ... */
7108 : /* ... */
7109 : /* ... */
7110 : /* ... */
7111 : /* ... */
7112 : /* ... */
7113 : /* ... */
7114 : /* ... */
7115 : /* ... */
7116 : /* ... */
7117 : /* ... */
7118 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7119 : /* (content generated from coverage data) */
7120 : /* ... */
7121 : /* ... */
7122 : /* ... */
7123 : /* ... */
7124 : /* ... */
7125 : /* ... */
7126 : /* ... */
7127 : /* ... */
7128 : /* ... */
7129 : /* ... */
7130 : /* ... */
7131 : /* ... */
7132 : /* ... */
7133 : /* ... */
7134 : /* ... */
7135 : /* ... */
7136 : /* ... */
7137 : /* ... */
7138 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7139 : /* (content generated from coverage data) */
7140 : /* ... */
7141 : /* ... */
7142 : /* ... */
7143 : /* ... */
7144 : /* ... */
7145 : /* ... */
7146 : /* ... */
7147 : /* ... */
7148 : /* ... */
7149 : /* ... */
7150 : /* ... */
7151 : /* ... */
7152 : /* ... */
7153 : /* ... */
7154 : /* ... */
7155 : /* ... */
7156 : /* ... */
7157 : /* ... */
7158 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7159 : /* (content generated from coverage data) */
7160 : /* ... */
7161 : /* ... */
7162 : /* ... */
7163 : /* ... */
7164 : /* ... */
7165 : /* ... */
7166 : /* ... */
7167 : /* ... */
7168 : /* ... */
7169 : /* ... */
7170 : /* ... */
7171 : /* ... */
7172 : /* ... */
7173 : /* ... */
7174 : /* ... */
7175 : /* ... */
7176 : /* ... */
7177 : /* ... */
7178 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7179 : /* (content generated from coverage data) */
7180 : /* ... */
7181 : /* ... */
7182 : /* ... */
7183 : /* ... */
7184 : /* ... */
7185 : /* ... */
7186 : /* ... */
7187 : /* ... */
7188 : /* ... */
7189 : /* ... */
7190 : /* ... */
7191 : /* ... */
7192 : /* ... */
7193 : /* ... */
7194 : /* ... */
7195 : /* ... */
7196 : /* ... */
7197 : /* ... */
7198 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7199 : /* (content generated from coverage data) */
7200 : /* ... */
7201 : /* ... */
7202 : /* ... */
7203 : /* ... */
7204 : /* ... */
7205 : /* ... */
7206 : /* ... */
7207 : /* ... */
7208 : /* ... */
7209 : /* ... */
7210 : /* ... */
7211 : /* ... */
7212 : /* ... */
7213 : /* ... */
7214 : /* ... */
7215 : /* ... */
7216 : /* ... */
7217 : /* ... */
7218 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7219 : /* (content generated from coverage data) */
7220 : /* ... */
7221 : /* ... */
7222 : /* ... */
7223 : /* ... */
7224 : /* ... */
7225 : /* ... */
7226 : /* ... */
7227 : /* ... */
7228 : /* ... */
7229 : /* ... */
7230 : /* ... */
7231 : /* ... */
7232 : /* ... */
7233 : /* ... */
7234 : /* ... */
7235 : /* ... */
7236 : /* ... */
7237 : /* ... */
7238 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7239 : /* (content generated from coverage data) */
7240 : /* ... */
7241 : /* ... */
7242 : /* ... */
7243 : /* ... */
7244 : /* ... */
7245 : /* ... */
7246 : /* ... */
7247 : /* ... */
7248 : /* ... */
7249 : /* ... */
7250 : /* ... */
7251 : /* ... */
7252 : /* ... */
7253 : /* ... */
7254 : /* ... */
7255 : /* ... */
7256 : /* ... */
7257 : /* ... */
7258 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7259 : /* (content generated from coverage data) */
7260 : /* ... */
7261 : /* ... */
7262 : /* ... */
7263 : /* ... */
7264 : /* ... */
7265 : /* ... */
7266 : /* ... */
7267 : /* ... */
7268 : /* ... */
7269 : /* ... */
7270 : /* ... */
7271 : /* ... */
7272 : /* ... */
7273 : /* ... */
7274 : /* ... */
7275 : /* ... */
7276 : /* ... */
7277 : /* ... */
7278 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7279 : /* (content generated from coverage data) */
7280 : /* ... */
7281 : /* ... */
7282 : /* ... */
7283 : /* ... */
7284 : /* ... */
7285 : /* ... */
7286 : /* ... */
7287 : /* ... */
7288 : /* ... */
7289 : /* ... */
7290 : /* ... */
7291 : /* ... */
7292 : /* ... */
7293 : /* ... */
7294 : /* ... */
7295 : /* ... */
7296 : /* ... */
7297 : /* ... */
7298 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7299 : /* (content generated from coverage data) */
7300 : /* ... */
7301 : /* ... */
7302 : /* ... */
7303 : /* ... */
7304 : /* ... */
7305 : /* ... */
7306 : /* ... */
7307 : /* ... */
7308 : /* ... */
7309 : /* ... */
7310 : /* ... */
7311 : /* ... */
7312 : /* ... */
7313 : /* ... */
7314 : /* ... */
7315 : /* ... */
7316 : /* ... */
7317 : /* ... */
7318 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7319 : /* (content generated from coverage data) */
7320 : /* ... */
7321 : /* ... */
7322 : /* ... */
7323 : /* ... */
7324 : /* ... */
7325 : /* ... */
7326 : /* ... */
7327 : /* ... */
7328 : /* ... */
7329 : /* ... */
7330 : /* ... */
7331 : /* ... */
7332 : /* ... */
7333 : /* ... */
7334 : /* ... */
7335 : /* ... */
7336 : /* ... */
7337 : /* ... */
7338 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7339 : /* (content generated from coverage data) */
7340 : /* ... */
7341 : /* ... */
7342 : /* ... */
7343 : /* ... */
7344 : /* ... */
7345 : /* ... */
7346 : /* ... */
7347 : /* ... */
7348 : /* ... */
7349 : /* ... */
7350 : /* ... */
7351 : /* ... */
7352 : /* ... */
7353 : /* ... */
7354 : /* ... */
7355 : /* ... */
7356 : /* ... */
7357 : /* ... */
7358 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7359 : /* (content generated from coverage data) */
7360 : /* ... */
7361 : /* ... */
7362 : /* ... */
7363 : /* ... */
7364 : /* ... */
7365 : /* ... */
7366 : /* ... */
7367 : /* ... */
7368 : /* ... */
7369 : /* ... */
7370 : /* ... */
7371 : /* ... */
7372 : /* ... */
7373 : /* ... */
7374 : /* ... */
7375 : /* ... */
7376 : /* ... */
7377 : /* ... */
7378 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7379 : /* (content generated from coverage data) */
7380 : /* ... */
7381 : /* ... */
7382 : /* ... */
7383 : /* ... */
7384 : /* ... */
7385 : /* ... */
7386 : /* ... */
7387 : /* ... */
7388 : /* ... */
7389 : /* ... */
7390 : /* ... */
7391 : /* ... */
7392 : /* ... */
7393 : /* ... */
7394 : /* ... */
7395 : /* ... */
7396 : /* ... */
7397 : /* ... */
7398 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7399 : /* (content generated from coverage data) */
7400 : /* ... */
7401 : /* ... */
7402 : /* ... */
7403 : /* ... */
7404 : /* ... */
7405 : /* ... */
7406 : /* ... */
7407 : /* ... */
7408 : /* ... */
7409 : /* ... */
7410 : /* ... */
7411 : /* ... */
7412 : /* ... */
7413 : /* ... */
7414 : /* ... */
7415 : /* ... */
7416 : /* ... */
7417 : /* ... */
7418 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7419 : /* (content generated from coverage data) */
7420 : /* ... */
7421 : /* ... */
7422 : /* ... */
7423 : /* ... */
7424 : /* ... */
7425 : /* ... */
7426 : /* ... */
7427 : /* ... */
7428 : /* ... */
7429 : /* ... */
7430 : /* ... */
7431 : /* ... */
7432 : /* ... */
7433 : /* ... */
7434 : /* ... */
7435 : /* ... */
7436 : /* ... */
7437 : /* ... */
7438 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7439 : /* (content generated from coverage data) */
7440 : /* ... */
7441 : /* ... */
7442 : /* ... */
7443 : /* ... */
7444 : /* ... */
7445 : /* ... */
7446 : /* ... */
7447 : /* ... */
7448 : /* ... */
7449 : /* ... */
7450 : /* ... */
7451 : /* ... */
7452 : /* ... */
7453 : /* ... */
7454 : /* ... */
7455 : /* ... */
7456 : /* ... */
7457 : /* ... */
7458 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7459 : /* (content generated from coverage data) */
7460 : /* ... */
7461 : /* ... */
7462 : /* ... */
7463 : /* ... */
7464 : /* ... */
7465 : /* ... */
7466 : /* ... */
7467 : /* ... */
7468 : /* ... */
7469 : /* ... */
7470 : /* ... */
7471 : /* ... */
7472 : /* ... */
7473 : /* ... */
7474 : /* ... */
7475 : /* ... */
7476 : /* ... */
7477 : /* ... */
7478 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7479 : /* (content generated from coverage data) */
7480 : /* ... */
7481 : /* ... */
7482 : /* ... */
7483 : /* ... */
7484 : /* ... */
7485 : /* ... */
7486 : /* ... */
7487 : /* ... */
7488 : /* ... */
7489 : /* ... */
7490 : /* ... */
7491 : /* ... */
7492 : /* ... */
7493 : /* ... */
7494 : /* ... */
7495 : /* ... */
7496 : /* ... */
7497 : /* ... */
7498 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7499 : /* (content generated from coverage data) */
7500 : /* ... */
7501 : /* ... */
7502 : /* ... */
7503 : /* ... */
7504 : /* ... */
7505 : /* ... */
7506 : /* ... */
7507 : /* ... */
7508 : /* ... */
7509 : /* ... */
7510 : /* ... */
7511 : /* ... */
7512 : /* ... */
7513 : /* ... */
7514 : /* ... */
7515 : /* ... */
7516 : /* ... */
7517 : /* ... */
7518 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7519 : /* (content generated from coverage data) */
7520 : /* ... */
7521 : /* ... */
7522 : /* ... */
7523 : /* ... */
7524 : /* ... */
7525 : /* ... */
7526 : /* ... */
7527 : /* ... */
7528 : /* ... */
7529 : /* ... */
7530 : /* ... */
7531 : /* ... */
7532 : /* ... */
7533 : /* ... */
7534 : /* ... */
7535 : /* ... */
7536 : /* ... */
7537 : /* ... */
7538 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7539 : /* (content generated from coverage data) */
7540 : /* ... */
7541 : /* ... */
7542 : /* ... */
7543 : /* ... */
7544 : /* ... */
7545 : /* ... */
7546 : /* ... */
7547 : /* ... */
7548 : /* ... */
7549 : /* ... */
7550 : /* ... */
7551 : /* ... */
7552 : /* ... */
7553 : /* ... */
7554 : /* ... */
7555 : /* ... */
7556 : /* ... */
7557 : /* ... */
7558 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7559 : /* (content generated from coverage data) */
7560 : /* ... */
7561 : /* ... */
7562 : /* ... */
7563 : /* ... */
7564 : /* ... */
7565 : /* ... */
7566 : /* ... */
7567 : /* ... */
7568 : /* ... */
7569 : /* ... */
7570 : /* ... */
7571 : /* ... */
7572 : /* ... */
7573 : /* ... */
7574 : /* ... */
7575 : /* ... */
7576 : /* ... */
7577 : /* ... */
7578 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7579 : /* (content generated from coverage data) */
7580 : /* ... */
7581 : /* ... */
7582 : /* ... */
7583 : /* ... */
7584 : /* ... */
7585 : /* ... */
7586 : /* ... */
7587 : /* ... */
7588 : /* ... */
7589 : /* ... */
7590 : /* ... */
7591 : /* ... */
7592 : /* ... */
7593 : /* ... */
7594 : /* ... */
7595 : /* ... */
7596 : /* ... */
7597 : /* ... */
7598 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7599 : /* (content generated from coverage data) */
7600 : /* ... */
7601 : /* ... */
7602 : /* ... */
7603 : /* ... */
7604 : /* ... */
7605 : /* ... */
7606 : /* ... */
7607 : /* ... */
7608 : /* ... */
7609 : /* ... */
7610 : /* ... */
7611 : /* ... */
7612 : /* ... */
7613 : /* ... */
7614 : /* ... */
7615 : /* ... */
7616 : /* ... */
7617 : /* ... */
7618 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7619 : /* (content generated from coverage data) */
7620 : /* ... */
7621 : /* ... */
7622 : /* ... */
7623 : /* ... */
7624 : /* ... */
7625 : /* ... */
7626 : /* ... */
7627 : /* ... */
7628 : /* ... */
7629 : /* ... */
7630 : /* ... */
7631 : /* ... */
7632 : /* ... */
7633 : /* ... */
7634 : /* ... */
7635 : /* ... */
7636 : /* ... */
7637 : /* ... */
7638 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7639 : /* (content generated from coverage data) */
7640 : /* ... */
7641 : /* ... */
7642 : /* ... */
7643 : /* ... */
7644 : /* ... */
7645 : /* ... */
7646 : /* ... */
7647 : /* ... */
7648 : /* ... */
7649 : /* ... */
7650 : /* ... */
7651 : /* ... */
7652 : /* ... */
7653 : /* ... */
7654 : /* ... */
7655 : /* ... */
7656 : /* ... */
7657 : /* ... */
7658 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7659 : /* (content generated from coverage data) */
7660 : /* ... */
7661 : /* ... */
7662 : /* ... */
7663 : /* ... */
7664 : /* ... */
7665 : /* ... */
7666 : /* ... */
7667 : /* ... */
7668 : /* ... */
7669 : /* ... */
7670 : /* ... */
7671 : /* ... */
7672 : /* ... */
7673 : /* ... */
7674 : /* ... */
7675 : /* ... */
7676 : /* ... */
7677 : /* ... */
7678 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7679 : /* (content generated from coverage data) */
7680 : /* ... */
7681 : /* ... */
7682 : /* ... */
7683 : /* ... */
7684 : /* ... */
7685 : /* ... */
7686 : /* ... */
7687 : /* ... */
7688 : /* ... */
7689 : /* ... */
7690 : /* ... */
7691 : /* ... */
7692 : /* ... */
7693 : /* ... */
7694 : /* ... */
7695 : /* ... */
7696 : /* ... */
7697 : /* ... */
7698 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7699 : /* (content generated from coverage data) */
7700 : /* ... */
7701 : /* ... */
7702 : /* ... */
7703 : /* ... */
7704 : /* ... */
7705 : /* ... */
7706 : /* ... */
7707 : /* ... */
7708 : /* ... */
7709 : /* ... */
7710 : /* ... */
7711 : /* ... */
7712 : /* ... */
7713 : /* ... */
7714 : /* ... */
7715 : /* ... */
7716 : /* ... */
7717 : /* ... */
7718 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7719 : /* (content generated from coverage data) */
7720 : /* ... */
7721 : /* ... */
7722 : /* ... */
7723 : /* ... */
7724 : /* ... */
7725 : /* ... */
7726 : /* ... */
7727 : /* ... */
7728 : /* ... */
7729 : /* ... */
7730 : /* ... */
7731 : /* ... */
7732 : /* ... */
7733 : /* ... */
7734 : /* ... */
7735 : /* ... */
7736 : /* ... */
7737 : /* ... */
7738 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7739 : /* (content generated from coverage data) */
7740 : /* ... */
7741 : /* ... */
7742 : /* ... */
7743 : /* ... */
7744 : /* ... */
7745 : /* ... */
7746 : /* ... */
7747 : /* ... */
7748 : /* ... */
7749 : /* ... */
7750 : /* ... */
7751 : /* ... */
7752 : /* ... */
7753 : /* ... */
7754 : /* ... */
7755 : /* ... */
7756 : /* ... */
7757 : /* ... */
7758 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7759 : /* (content generated from coverage data) */
7760 : /* ... */
7761 : /* ... */
7762 : /* ... */
7763 : /* ... */
7764 : /* ... */
7765 : /* ... */
7766 : /* ... */
7767 : /* ... */
7768 : /* ... */
7769 : /* ... */
7770 : /* ... */
7771 : /* ... */
7772 : /* ... */
7773 : /* ... */
7774 : /* ... */
7775 : /* ... */
7776 : /* ... */
7777 : /* ... */
7778 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7779 : /* (content generated from coverage data) */
7780 : /* ... */
7781 : /* ... */
7782 : /* ... */
7783 : /* ... */
7784 : /* ... */
7785 : /* ... */
7786 : /* ... */
7787 : /* ... */
7788 : /* ... */
7789 : /* ... */
7790 : /* ... */
7791 : /* ... */
7792 : /* ... */
7793 : /* ... */
7794 : /* ... */
7795 : /* ... */
7796 : /* ... */
7797 : /* ... */
7798 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7799 : /* (content generated from coverage data) */
7800 : /* ... */
7801 : /* ... */
7802 : /* ... */
7803 : /* ... */
7804 : /* ... */
7805 : /* ... */
7806 : /* ... */
7807 : /* ... */
7808 : /* ... */
7809 : /* ... */
7810 : /* ... */
7811 : /* ... */
7812 : /* ... */
7813 : /* ... */
7814 : /* ... */
7815 : /* ... */
7816 : /* ... */
7817 : /* ... */
7818 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7819 : /* (content generated from coverage data) */
7820 : /* ... */
7821 : /* ... */
7822 : /* ... */
7823 : /* ... */
7824 : /* ... */
7825 : /* ... */
7826 : /* ... */
7827 : /* ... */
7828 : /* ... */
7829 : /* ... */
7830 : /* ... */
7831 : /* ... */
7832 : /* ... */
7833 : /* ... */
7834 : /* ... */
7835 : /* ... */
7836 : /* ... */
7837 : /* ... */
7838 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7839 : /* (content generated from coverage data) */
7840 : /* ... */
7841 : /* ... */
7842 : /* ... */
7843 : /* ... */
7844 : /* ... */
7845 : /* ... */
7846 : /* ... */
7847 : /* ... */
7848 : /* ... */
7849 : /* ... */
7850 : /* ... */
7851 : /* ... */
7852 : /* ... */
7853 : /* ... */
7854 : /* ... */
7855 : /* ... */
7856 0 : /* ... */
7857 0 : /* ... */
7858 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7859 0 : /* (content generated from coverage data) */
7860 : /* ... */
7861 0 : /* ... */
7862 : /* ... */
7863 : /* ... */
7864 : /* ... */
7865 : /* ... */
7866 : /* ... */
7867 : /* ... */
7868 : /* ... */
7869 : /* ... */
7870 : /* ... */
7871 : /* ... */
7872 : /* ... */
7873 : /* ... */
7874 : /* ... */
7875 : /* ... */
7876 : /* ... */
7877 55195954 : /* END: function "_Z8bypass_pP8rtx_insn" */
7878 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/mmx.md not long enough */
7879 55195954 : /* (content generated from coverage data) */
7880 55195954 : /* ... */
7881 55195954 : /* ... */
7882 55195954 : /* ... */
7883 55195954 : /* ... */
7884 : /* ... */
7885 55195954 : /* ... */
7886 : /* ... */
7887 164 : /* ... */
7888 164 : /* ... */
7889 164 : /* ... */
|