Line data Source code
1 : ;; Predicate definitions for IA-32 and x86-64.
2 : ;; Copyright (C) 2004-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 : ;; Return true if OP is either a i387 or SSE fp register.
21 : (define_predicate "any_fp_register_operand"
22 : (and (match_code "reg")
23 135040156 : (match_test "ANY_FP_REGNO_P (REGNO (op))")))
24 40587 :
25 : ;; Return true if OP is an i387 fp register.
26 : (define_predicate "fp_register_operand"
27 : (and (match_code "reg")
28 1546330 : (match_test "STACK_REGNO_P (REGNO (op))")))
29 1457676 :
30 444427957 : ;; True if the operand is a GENERAL class register.
31 : (define_predicate "general_reg_operand"
32 : (and (match_code "reg")
33 277423635 : (match_test "GENERAL_REGNO_P (REGNO (op))")))
34 208475956 :
35 462178384 : ;; True if the operand is an INDEX class register.
36 : (define_predicate "index_reg_operand"
37 : (and (match_code "reg")
38 681996 : (match_test "INDEX_REGNO_P (REGNO (op))")))
39 681921 :
40 682702 : ;; True if the operand is a nonimmediate operand with GENERAL class register.
41 : (define_predicate "nonimmediate_gr_operand"
42 : (if_then_else (match_code "reg")
43 57691901 : (match_test "GENERAL_REGNO_P (REGNO (op))")
44 64094951 : (match_operand 0 "nonimmediate_operand")))
45 80200762 :
46 : ;; True if the operand is a general operand with GENERAL class register.
47 : (define_predicate "general_gr_operand"
48 93588540 : (if_then_else (match_code "reg")
49 40639221 : (match_test "GENERAL_REGNO_P (REGNO (op))")
50 118727439 : (match_operand 0 "general_operand")))
51 :
52 : ;; True if the operand is an MMX register.
53 : (define_predicate "mmx_reg_operand"
54 40198457 : (and (match_code "reg")
55 192 : (match_test "MMX_REGNO_P (REGNO (op))")))
56 40198457 :
57 : ;; Match register operands, but include memory operands for
58 : ;; !TARGET_MMX_WITH_SSE.
59 : (define_predicate "register_mmxmem_operand"
60 674378 : (ior (match_operand 0 "register_operand")
61 12 : (and (not (match_test "TARGET_MMX_WITH_SSE"))
62 674378 : (match_operand 0 "memory_operand"))))
63 :
64 : ;; True if the operand is an SSE register.
65 162034443 : (define_predicate "sse_reg_operand"
66 : (and (match_code "reg")
67 162034443 : (match_test "SSE_REGNO_P (REGNO (op))")))
68 1706418 :
69 : ;; Return true if op is a QImode register.
70 : (define_predicate "any_QIreg_operand"
71 : (and (match_code "reg")
72 8265723 : (match_test "ANY_QI_REGNO_P (REGNO (op))")))
73 3874223 :
74 9888494 : ;; Return true if op is one of QImode registers: %[abcd][hl].
75 : (define_predicate "QIreg_operand"
76 : (and (match_code "reg")
77 2331057 : (match_test "QI_REGNO_P (REGNO (op))")))
78 2201590 :
79 6239243 : ;; Return true if op is a QImode register operand other than %[abcd][hl].
80 : (define_predicate "ext_QIreg_operand"
81 3366963 : (and (match_test "TARGET_64BIT")
82 3367266 : (match_code "reg")
83 970367 : (not (match_test "QI_REGNO_P (REGNO (op))"))))
84 3628073 :
85 : ;; Return true if op is the AX register.
86 : (define_predicate "ax_reg_operand"
87 : (and (match_code "reg")
88 23446051 : (match_test "REGNO (op) == AX_REG")))
89 0 :
90 118660321 : ;; Return true if op is the flags register.
91 : (define_special_predicate "flags_reg_operand"
92 : (and (match_code "reg")
93 390986258 : (match_test "REGNO (op) == FLAGS_REG")))
94 :
95 133431694 : ;; True if the operand is a MASK register.
96 : (define_predicate "mask_reg_operand"
97 9850270 : (and (match_code "reg")
98 4669 : (match_test "MASK_REGNO_P (REGNO (op))")))
99 9854939 :
100 : ;; Return true if op is the block scale register.
101 : (define_special_predicate "bsr0_operand"
102 : (and (match_code "reg")
103 869 : (match_test "REGNO (op) == BSR0_REG")))
104 :
105 291 : ;; Match a DI, SI or HImode register operand.
106 : (define_special_predicate "int248_register_operand"
107 582974 : (and (match_operand 0 "register_operand")
108 874641 : (ior (and (match_test "TARGET_64BIT")
109 582974 : (match_test "GET_MODE (op) == DImode"))
110 342971 : (match_test "GET_MODE (op) == SImode")
111 582974 : (match_test "GET_MODE (op) == HImode"))))
112 :
113 : ;; Match a DI, SI, HI or QImode nonimmediate_operand.
114 : (define_special_predicate "int_nonimmediate_operand"
115 390683 : (and (match_operand 0 "nonimmediate_operand")
116 456740 : (ior (and (match_test "TARGET_64BIT")
117 390683 : (match_test "GET_MODE (op) == DImode"))
118 174622 : (match_test "GET_MODE (op) == SImode")
119 : (match_test "GET_MODE (op) == HImode")
120 390683 : (match_test "GET_MODE (op) == QImode"))))
121 :
122 : ;; Match register operands, but include memory operands for TARGET_SSE_MATH.
123 : (define_predicate "register_ssemem_operand"
124 2908046 : (if_then_else
125 2908046 : (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
126 2908046 : (match_operand 0 "nonimmediate_operand")
127 : (match_operand 0 "register_operand")))
128 :
129 1083263 : ;; Match nonimmediate operands, but exclude memory operands
130 : ;; for TARGET_SSE_MATH if TARGET_MIX_SSE_I387 is not enabled.
131 1083263 : (define_predicate "nonimm_ssenomem_operand"
132 : (if_then_else
133 1083263 : (and (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
134 2166526 : (not (match_test "TARGET_MIX_SSE_I387")))
135 : (match_operand 0 "register_operand")
136 : (match_operand 0 "nonimmediate_operand")))
137 :
138 773979 : ;; The above predicate, suitable for x87 arithmetic operators.
139 : (define_predicate "x87nonimm_ssenomem_operand"
140 773979 : (if_then_else
141 773979 : (and (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
142 1547958 : (not (match_test "TARGET_MIX_SSE_I387 && X87_ENABLE_ARITH (mode)")))
143 : (match_operand 0 "register_operand")
144 : (match_operand 0 "nonimmediate_operand")))
145 :
146 35420 : ;; Match register operands, include memory operand for TARGET_SSE4_1.
147 : (define_predicate "register_sse4nonimm_operand"
148 35420 : (if_then_else (match_test "TARGET_SSE4_1")
149 : (match_operand 0 "nonimmediate_operand")
150 : (match_operand 0 "register_operand")))
151 :
152 14090 : ;; Return true if VALUE is symbol reference
153 : (define_predicate "symbol_operand"
154 14090 : (match_code "symbol_ref"))
155 14090 :
156 : ;; Return true if VALUE is an ENDBR opcode in immediate field.
157 : (define_predicate "ix86_endbr_immediate_operand"
158 : (match_code "const_int")
159 6557600088 : {
160 6557600088 : if (flag_cf_protection & CF_BRANCH)
161 : {
162 1185758123 : unsigned HOST_WIDE_INT imm = UINTVAL (op);
163 1185758123 : unsigned HOST_WIDE_INT val = TARGET_64BIT ? 0xfa1e0ff3 : 0xfb1e0ff3;
164 :
165 1185758123 : if (imm == val)
166 : return true;
167 :
168 : /* NB: Encoding is byte based. */
169 1185757915 : if (TARGET_64BIT)
170 2291584374 : for (; imm >= val; imm >>= 8)
171 1294461355 : if (imm == val)
172 : return true;
173 : }
174 :
175 : return false;
176 : })
177 :
178 : ;; Return true if VALUE can be stored in a sign extended immediate field.
179 8466034911 : (define_predicate "x86_64_immediate_operand"
180 : (match_code "const_int,symbol_ref,label_ref,const")
181 8466034911 : {
182 11624919883 : if (ix86_endbr_immediate_operand (op, VOIDmode))
183 : return false;
184 :
185 5067319544 : if (!TARGET_64BIT)
186 5253197319 : return immediate_operand (op, mode);
187 :
188 4881442020 : switch (GET_CODE (op))
189 : {
190 4014534343 : case CONST_INT:
191 4014534343 : {
192 4014534343 : HOST_WIDE_INT val = INTVAL (op);
193 4014534343 : return trunc_int_for_mode (val, SImode) == val;
194 : }
195 700275982 : case SYMBOL_REF:
196 : /* TLS symbols are not constant. */
197 700275982 : if (SYMBOL_REF_TLS_MODEL (op))
198 : return false;
199 :
200 : /* Load the external function address via the GOT slot. */
201 700239883 : if (ix86_force_load_from_GOT_p (op))
202 : return false;
203 :
204 : /* For certain code models, the symbolic references are known to fit.
205 : in CM_SMALL_PIC model we know it fits if it is local to the shared
206 : library. Don't count TLS SYMBOL_REFs here, since they should fit
207 : only if inside of UNSPEC handled below. */
208 700239781 : return (ix86_cmodel == CM_SMALL || ix86_cmodel == CM_KERNEL
209 700239781 : || (ix86_cmodel == CM_MEDIUM && !SYMBOL_REF_FAR_ADDR_P (op)));
210 :
211 23904425 : case LABEL_REF:
212 : /* For certain code models, the code is near as well. */
213 23904425 : return (ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM
214 : || ix86_cmodel == CM_KERNEL);
215 :
216 142727270 : case CONST:
217 : /* We also may accept the offsetted memory references in certain
218 : special cases. */
219 142727270 : if (GET_CODE (XEXP (op, 0)) == UNSPEC)
220 736112 : switch (XINT (XEXP (op, 0), 1))
221 : {
222 : case UNSPEC_GOTPCREL:
223 : case UNSPEC_DTPOFF:
224 : case UNSPEC_GOTNTPOFF:
225 : case UNSPEC_NTPOFF:
226 : case UNSPEC_SECREL32:
227 : return true;
228 : default:
229 : break;
230 : }
231 :
232 141992667 : if (GET_CODE (XEXP (op, 0)) == PLUS)
233 : {
234 141991158 : rtx op1 = XEXP (XEXP (op, 0), 0);
235 141991158 : rtx op2 = XEXP (XEXP (op, 0), 1);
236 :
237 141991158 : if (ix86_cmodel == CM_LARGE && GET_CODE (op1) != UNSPEC)
238 : return false;
239 141991153 : if (!CONST_INT_P (op2))
240 : return false;
241 :
242 141991153 : HOST_WIDE_INT offset = INTVAL (op2);
243 141991153 : if (trunc_int_for_mode (offset, SImode) != offset)
244 : return false;
245 :
246 141985770 : switch (GET_CODE (op1))
247 : {
248 141646073 : case SYMBOL_REF:
249 : /* TLS symbols are not constant. */
250 141646073 : if (SYMBOL_REF_TLS_MODEL (op1))
251 : return false;
252 :
253 : /* Load the external function address via the GOT slot. */
254 141635527 : if (ix86_force_load_from_GOT_p (op1))
255 : return false;
256 :
257 : /* For CM_SMALL assume that latest object is 16MB before
258 : end of 31bits boundary. We may also accept pretty
259 : large negative constants knowing that all objects are
260 : in the positive half of address space. */
261 141635521 : if ((ix86_cmodel == CM_SMALL
262 266067 : || (ix86_cmodel == CM_MEDIUM
263 0 : && !SYMBOL_REF_FAR_ADDR_P (op1)))
264 141635521 : && offset < 16*1024*1024)
265 : return true;
266 : /* For CM_KERNEL we know that all object resist in the
267 : negative half of 32bits address space. We may not
268 : accept negative offsets, since they may be just off
269 : and we may accept pretty large positive ones. */
270 268979 : if (ix86_cmodel == CM_KERNEL
271 0 : && offset > 0)
272 : return true;
273 : break;
274 :
275 3915 : case LABEL_REF:
276 : /* These conditions are similar to SYMBOL_REF ones, just the
277 : constraints for code models differ. */
278 3915 : if ((ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM)
279 3915 : && offset < 16*1024*1024)
280 : return true;
281 0 : if (ix86_cmodel == CM_KERNEL
282 0 : && offset > 0)
283 : return true;
284 : break;
285 :
286 335782 : case UNSPEC:
287 335782 : switch (XINT (op1, 1))
288 : {
289 : case UNSPEC_DTPOFF:
290 : case UNSPEC_NTPOFF:
291 : return true;
292 : }
293 : break;
294 :
295 : default:
296 : break;
297 : }
298 : }
299 : break;
300 :
301 0 : default:
302 0 : gcc_unreachable ();
303 : }
304 :
305 : return false;
306 : })
307 :
308 : ;; Return true if VALUE can be stored in the zero extended immediate field.
309 5561893843 : (define_predicate "x86_64_zext_immediate_operand"
310 : (match_code "const_int,symbol_ref,label_ref,const")
311 5561893843 : {
312 768370589 : if (ix86_endbr_immediate_operand (op, VOIDmode))
313 5067319795 : return false;
314 5067319795 :
315 768370441 : switch (GET_CODE (op))
316 5067319795 : {
317 5766270722 : case CONST_INT:
318 698950927 : return !(INTVAL (op) & ~HOST_WIDE_INT_C (0xffffffff));
319 :
320 63034350 : case SYMBOL_REF:
321 5067319795 : /* TLS symbols are not constant. */
322 5130354145 : if (SYMBOL_REF_TLS_MODEL (op))
323 272911568 : return false;
324 :
325 : /* Load the external function address via the GOT slot. */
326 62999122 : if (ix86_force_load_from_GOT_p (op))
327 768370589 : return false;
328 :
329 : /* For certain code models, the symbolic references are known to fit. */
330 62999021 : return (ix86_cmodel == CM_SMALL
331 62999021 : || (ix86_cmodel == CM_MEDIUM
332 218 : && !SYMBOL_REF_FAR_ADDR_P (op)));
333 :
334 2378506 : case LABEL_REF:
335 : /* For certain code models, the code is near as well. */
336 2378506 : return ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM;
337 :
338 4006658 : case CONST:
339 : /* We also may accept the offsetted memory references in certain
340 : special cases. */
341 4006658 : if (GET_CODE (XEXP (op, 0)) == PLUS)
342 : {
343 4002016 : rtx op1 = XEXP (XEXP (op, 0), 0);
344 4002016 : rtx op2 = XEXP (XEXP (op, 0), 1);
345 :
346 4002016 : if (ix86_cmodel == CM_LARGE)
347 : return false;
348 4002014 : if (!CONST_INT_P (op2))
349 : return false;
350 :
351 4002014 : HOST_WIDE_INT offset = INTVAL (op2);
352 4002014 : if (trunc_int_for_mode (offset, SImode) != offset)
353 : return false;
354 :
355 3999183 : switch (GET_CODE (op1))
356 : {
357 3998688 : case SYMBOL_REF:
358 : /* TLS symbols are not constant. */
359 3998688 : if (SYMBOL_REF_TLS_MODEL (op1))
360 : return false;
361 :
362 : /* Load the external function address via the GOT slot. */
363 3989370 : if (ix86_force_load_from_GOT_p (op1))
364 : return false;
365 :
366 : /* For small code model we may accept pretty large positive
367 : offsets, since one bit is available for free. Negative
368 : offsets are limited by the size of NULL pointer area
369 : specified by the ABI. */
370 3989364 : if ((ix86_cmodel == CM_SMALL
371 234194 : || (ix86_cmodel == CM_MEDIUM
372 0 : && !SYMBOL_REF_FAR_ADDR_P (op1)))
373 3989364 : && offset > -0x10000)
374 : return true;
375 : /* ??? For the kernel, we may accept adjustment of
376 : -0x10000000, since we know that it will just convert
377 : negative address space to positive, but perhaps this
378 : is not worthwhile. */
379 : break;
380 :
381 0 : case LABEL_REF:
382 : /* These conditions are similar to SYMBOL_REF ones, just the
383 : constraints for code models differ. */
384 0 : if ((ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM)
385 0 : && offset > -0x10000)
386 : return true;
387 : break;
388 :
389 : default:
390 : return false;
391 : }
392 : }
393 : break;
394 :
395 0 : default:
396 0 : gcc_unreachable ();
397 : }
398 : return false;
399 : })
400 :
401 : ;; Return true if VALUE is a constant integer whose negation satisfies
402 1023089186 : ;; x86_64_immediate_operand.
403 : (define_predicate "x86_64_neg_const_int_operand"
404 1023089186 : (match_code "const_int")
405 : {
406 768405466 : HOST_WIDE_INT val = -UINTVAL (op);
407 16835 : if (mode == DImode && trunc_int_for_mode (val, SImode) != val)
408 768370589 : return false;
409 34280 : if (flag_cf_protection & CF_BRANCH)
410 768370589 : {
411 13922 : unsigned HOST_WIDE_INT endbr = TARGET_64BIT ? 0xfa1e0ff3 : 0xfb1e0ff3;
412 13922 : if ((val & HOST_WIDE_INT_C (0xffffffff)) == endbr)
413 0 : return false;
414 768370589 : }
415 768370589 : return true;
416 55096165 : })
417 :
418 : ;; Return true if VALUE is a constant integer whose low and high words satisfy
419 49079 : ;; x86_64_immediate_operand.
420 34877 : (define_predicate "x86_64_hilo_int_operand"
421 83956 : (match_code "const_int,const_wide_int")
422 34877 : {
423 44477246 : switch (GET_CODE (op))
424 : {
425 44414989 : case CONST_INT:
426 44477246 : return x86_64_immediate_operand (op, mode);
427 :
428 62257 : case CONST_WIDE_INT:
429 62257 : gcc_assert (CONST_WIDE_INT_NUNITS (op) == 2);
430 62257 : return (x86_64_immediate_operand (GEN_INT (CONST_WIDE_INT_ELT (op, 0)),
431 : DImode)
432 62257 : && x86_64_immediate_operand (GEN_INT (CONST_WIDE_INT_ELT (op,
433 : 1)),
434 : DImode));
435 :
436 0 : default:
437 0 : gcc_unreachable ();
438 : }
439 : })
440 :
441 : ;; Return true if VALUE is a constant integer whose value is
442 45079983 : ;; x86_64_immediate_operand value zero extended from word mode to mode.
443 : (define_predicate "x86_64_dwzext_immediate_operand"
444 45079983 : (match_code "const_int,const_wide_int")
445 : {
446 3839 : if (ix86_endbr_immediate_operand (op, VOIDmode))
447 44477246 : return false;
448 44477246 :
449 3839 : switch (GET_CODE (op))
450 : {
451 1711 : case CONST_INT:
452 1711 : if (!TARGET_64BIT)
453 44477246 : return UINTVAL (op) <= HOST_WIDE_INT_UC (0xffffffff);
454 1711 : return UINTVAL (op) <= HOST_WIDE_INT_UC (0x7fffffff);
455 :
456 2128 : case CONST_WIDE_INT:
457 5967 : if (!TARGET_64BIT)
458 : return false;
459 2128 : return (CONST_WIDE_INT_NUNITS (op) == 2
460 2128 : && CONST_WIDE_INT_ELT (op, 1) == 0
461 4256 : && (trunc_int_for_mode (CONST_WIDE_INT_ELT (op, 0), SImode)
462 2128 : == (HOST_WIDE_INT) CONST_WIDE_INT_ELT (op, 0)));
463 :
464 0 : default:
465 0 : gcc_unreachable ();
466 : }
467 : })
468 :
469 : ;; Return true if OP is general operand representable on x86_64.
470 3839 : (define_predicate "x86_64_general_operand"
471 151361097 : (if_then_else (match_test "TARGET_64BIT")
472 3839 : (ior (match_operand 0 "nonimmediate_operand")
473 : (match_operand 0 "x86_64_immediate_operand"))
474 3839 : (match_operand 0 "general_operand")))
475 63635166 :
476 3839 : ;; Return true if OP's both words are general operands representable
477 63631327 : ;; on x86_64.
478 : (define_predicate "x86_64_hilo_general_operand"
479 63631327 : (if_then_else (match_test "TARGET_64BIT")
480 3839 : (ior (match_operand 0 "nonimmediate_operand")
481 3839 : (match_operand 0 "x86_64_hilo_int_operand"))
482 : (match_operand 0 "general_operand")))
483 281075 :
484 : ;; Return true if OP is non-VOIDmode general operand representable
485 151642172 : ;; on x86_64. This predicate is used in sign-extending conversion
486 : ;; operations that require non-VOIDmode immediate operands.
487 151361097 : (define_predicate "x86_64_sext_operand"
488 281075 : (and (match_test "GET_MODE (op) != VOIDmode")
489 : (match_operand 0 "x86_64_general_operand")))
490 :
491 : ;; Return true if OP is non-VOIDmode general operand. This predicate
492 11347 : ;; is used in sign-extending conversion operations that require
493 : ;; non-VOIDmode immediate operands.
494 11347 : (define_predicate "sext_operand"
495 11347 : (and (match_test "GET_MODE (op) != VOIDmode")
496 : (match_operand 0 "general_operand")))
497 :
498 : ;; Return true if OP is representable on x86_64 as zero-extended operand.
499 3694942 : ;; This predicate is used in zero-extending conversion operations that
500 : ;; require non-VOIDmode immediate operands.
501 3694942 : (define_predicate "x86_64_zext_operand"
502 3694942 : (if_then_else (match_test "TARGET_64BIT")
503 : (ior (match_operand 0 "nonimmediate_operand")
504 : (and (match_operand 0 "x86_64_zext_immediate_operand")
505 133516 : (match_test "GET_MODE (op) != VOIDmode")))
506 : (match_operand 0 "nonimmediate_operand")))
507 :
508 : ;; Return true if OP is general operand representable on x86_64
509 2587706 : ;; as either sign extended or zero extended constant.
510 : (define_predicate "x86_64_szext_general_operand"
511 2587706 : (if_then_else (match_test "TARGET_64BIT")
512 : (ior (match_operand 0 "nonimmediate_operand")
513 : (match_operand 0 "x86_64_immediate_operand")
514 : (match_operand 0 "x86_64_zext_immediate_operand"))
515 30754126 : (match_operand 0 "general_operand")))
516 :
517 30754126 : ;; Return true if OP is nonmemory operand representable on x86_64.
518 : (define_predicate "x86_64_nonmemory_operand"
519 30754126 : (if_then_else (match_test "TARGET_64BIT")
520 : (ior (match_operand 0 "register_operand")
521 : (match_operand 0 "x86_64_immediate_operand"))
522 : (match_operand 0 "nonmemory_operand")))
523 19823 :
524 : ;; Return true if OP is nonmemory operand representable on x86_64.
525 19823 : (define_predicate "x86_64_szext_nonmemory_operand"
526 19823 : (if_then_else (match_test "TARGET_64BIT")
527 : (ior (match_operand 0 "register_operand")
528 : (match_operand 0 "x86_64_immediate_operand")
529 : (match_operand 0 "x86_64_zext_immediate_operand"))
530 181695899 : (match_operand 0 "nonmemory_operand")))
531 :
532 : ;; Return true when operand is PIC expression that can be computed by lea
533 : ;; operation.
534 : (define_predicate "pic_32bit_operand"
535 : (match_code "const,symbol_ref,label_ref")
536 : {
537 181695899 : if (!flag_pic)
538 : return false;
539 :
540 : /* Rule out relocations that translate into 64bit constants. */
541 20930896 : if (TARGET_64BIT && GET_CODE (op) == CONST)
542 : {
543 185271 : rtx tmp = XEXP (op, 0);
544 185271 : if (GET_CODE (tmp) == PLUS && CONST_INT_P (XEXP (tmp, 1)))
545 183814 : tmp = XEXP (tmp, 0);
546 185271 : if (GET_CODE (tmp) == UNSPEC
547 1457 : && (XINT (tmp, 1) == UNSPEC_GOTOFF
548 1457 : || XINT (tmp, 1) == UNSPEC_GOT))
549 : return false;
550 : }
551 :
552 20929979 : return symbolic_operand (op, mode);
553 : })
554 :
555 : ;; Return true if OP is nonmemory operand acceptable by movabs patterns.
556 1344033054 : (define_predicate "x86_64_movabs_operand"
557 : (and (match_operand 0 "nonmemory_operand")
558 1344033054 : (not (match_operand 0 "pic_32bit_operand"))))
559 :
560 181695899 : ;; Return true if OP is either a symbol reference or a sum of a symbol
561 181695899 : ;; reference and a constant.
562 181695899 : (define_predicate "symbolic_operand"
563 181695899 : (match_code "symbol_ref,label_ref,const")
564 : {
565 21685096 : switch (GET_CODE (op))
566 : {
567 181695899 : case SYMBOL_REF:
568 181695899 : case LABEL_REF:
569 568643 : return true;
570 :
571 221988 : case CONST:
572 221988 : op = XEXP (op, 0);
573 533606136 : if (SYMBOL_REF_P (op)
574 221988 : || LABEL_REF_P (op)
575 533606136 : || (GET_CODE (op) == UNSPEC
576 8420 : && (XINT (op, 1) == UNSPEC_GOT
577 8420 : || XINT (op, 1) == UNSPEC_GOTOFF
578 697 : || XINT (op, 1) == UNSPEC_SECREL32
579 21685793 : || XINT (op, 1) == UNSPEC_PCREL
580 697 : || XINT (op, 1) == UNSPEC_GOTPCREL)))
581 : return true;
582 214237 : if (GET_CODE (op) != PLUS
583 213568 : || !CONST_INT_P (XEXP (op, 1)))
584 : return false;
585 :
586 213568 : op = XEXP (op, 0);
587 213568 : if (SYMBOL_REF_P (op)
588 213568 : || LABEL_REF_P (op))
589 : return true;
590 : /* Only @GOTOFF and @SECREL32 get offsets. */
591 2137 : if (GET_CODE (op) != UNSPEC
592 2137 : || (XINT (op, 1) != UNSPEC_GOTOFF
593 0 : && XINT (op, 1) != UNSPEC_SECREL32))
594 : return false;
595 :
596 2137 : op = XVECEXP (op, 0, 0);
597 2137 : if (SYMBOL_REF_P (op)
598 2137 : || LABEL_REF_P (op))
599 2137 : return true;
600 : return false;
601 :
602 0 : default:
603 0 : gcc_unreachable ();
604 : }
605 : })
606 :
607 : ;; Return true if OP is a symbolic operand that resolves locally.
608 31477450 : (define_predicate "local_symbolic_operand"
609 : (match_code "const,label_ref,symbol_ref")
610 31477450 : {
611 2930806 : if (GET_CODE (op) == CONST
612 16161 : && GET_CODE (XEXP (op, 0)) == PLUS
613 8495 : && CONST_INT_P (XEXP (XEXP (op, 0), 1)))
614 8495 : op = XEXP (XEXP (op, 0), 0);
615 21685096 :
616 2930806 : if (LABEL_REF_P (op))
617 : return true;
618 :
619 2884529 : if (!SYMBOL_REF_P (op))
620 21685096 : return false;
621 1323631 :
622 2874726 : if (SYMBOL_REF_TLS_MODEL (op))
623 : return false;
624 :
625 2930806 : /* Dll-imported symbols are always external. */
626 2874726 : if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
627 : return false;
628 2874726 : if (SYMBOL_REF_LOCAL_P (op))
629 : return true;
630 :
631 : /* There is, however, a not insubstantial body of code in the rest of
632 : the compiler that assumes it can just stick the results of
633 : ASM_GENERATE_INTERNAL_LABEL in a symbol_ref and have done. */
634 : /* ??? This is a hack. Should update the body of the compiler to
635 : always create a DECL an invoke targetm.encode_section_info. */
636 93669 : if (strncmp (XSTR (op, 0), internal_label_prefix,
637 : internal_label_prefix_len) == 0)
638 0 : return true;
639 :
640 : return false;
641 : })
642 :
643 : (define_predicate "local_func_symbolic_operand"
644 2939555 : (match_operand 0 "local_symbolic_operand")
645 : {
646 2939555 : if (GET_CODE (op) == CONST
647 0 : && GET_CODE (XEXP (op, 0)) == PLUS
648 0 : && CONST_INT_P (XEXP (XEXP (op, 0), 1)))
649 0 : op = XEXP (XEXP (op, 0), 0);
650 2930806 :
651 2930818 : if (SYMBOL_REF_P (op)
652 12 : && !SYMBOL_REF_FUNCTION_P (op))
653 0 : return false;
654 :
655 2930806 : return true;
656 2930806 : })
657 2827325 :
658 : ;; Test for a legitimate @GOTOFF operand.
659 30 : ;;
660 : ;; VxWorks does not impose a fixed gap between segments; the run-time
661 42 : ;; gap can be different from the object-file gap. We therefore can't
662 12 : ;; use @GOTOFF unless we are absolutely sure that the symbol is in the
663 : ;; same segment as the GOT. Unfortunately, the flexibility of linker
664 : ;; scripts means that we can't be sure of that in general, so assume
665 : ;; @GOTOFF is not valid on VxWorks, except with the large code model.
666 2939488 : ;; The comments above seem to apply only to VxWorks releases before 7.
667 : (define_predicate "gotoff_operand"
668 2939488 : (and (ior (not (match_test "TARGET_VXWORKS_VAROFF"))
669 : (match_test "ix86_cmodel == CM_LARGE")
670 2939488 : (match_test "ix86_cmodel == CM_LARGE_PIC"))
671 : (match_operand 0 "local_symbolic_operand")))
672 :
673 : ;; Test for various thread-local symbols.
674 29919 : (define_special_predicate "tls_symbolic_operand"
675 : (and (match_code "symbol_ref")
676 29919 : (match_test "SYMBOL_REF_TLS_MODEL (op)")))
677 :
678 : (define_special_predicate "tls_modbase_operand"
679 : (and (match_code "symbol_ref")
680 72 : (match_test "op == ix86_tls_module_base ()")))
681 :
682 144 : (define_predicate "tls_address_pattern"
683 : (and (match_code "set,parallel,unspec,unspec_volatile")
684 241566551 : (match_test "ix86_tls_address_pattern_p (op)")))
685 0 :
686 241566551 : ;; Test for a pc-relative call operand
687 : (define_predicate "constant_call_address_operand"
688 241566551 : (match_code "symbol_ref")
689 378306255 : {
690 136739491 : if (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC
691 136739480 : || flag_force_indirect_call
692 273477680 : || (TARGET_INDIRECT_BRANCH_REGISTER
693 1022 : && ix86_nopic_noplt_attribute_p (op)))
694 1752 : return false;
695 : if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
696 241566551 : return false;
697 : return true;
698 : })
699 :
700 : ;; True for any non-virtual and non-eliminable register. Used in places where
701 142428301 : ;; instantiation of such a register may cause the pattern to not be recognized.
702 : (define_predicate "register_no_elim_operand"
703 136739704 : (match_operand 0 "register_operand")
704 279166253 : {
705 98550216 : if (SUBREG_P (op))
706 59600 : op = SUBREG_REG (op);
707 :
708 : /* Before reload, we can allow (SUBREG (MEM...)) as a register operand
709 20786139 : because it is guaranteed to be reloaded into one. */
710 20786139 : if (MEM_P (op))
711 : return true;
712 :
713 20786139 : return !(op == arg_pointer_rtx
714 20757925 : || op == frame_pointer_rtx
715 20755657 : || VIRTUAL_REGISTER_P (op));
716 : })
717 :
718 : ;; Similarly, but include the stack pointer. This is used
719 24782011 : ;; to prevent esp from being used as an index reg.
720 : (define_predicate "register_no_SP_operand"
721 24782011 : (match_operand 0 "register_operand")
722 20786139 : {
723 329739 : if (SUBREG_P (op))
724 7939 : op = SUBREG_REG (op);
725 :
726 329739 : /* Before reload, we can allow (SUBREG (MEM...)) as a register operand
727 : because it is guaranteed to be reloaded into one. */
728 329739 : if (MEM_P (op))
729 : return true;
730 :
731 329739 : return !(op == arg_pointer_rtx
732 329739 : || op == frame_pointer_rtx
733 329739 : || op == stack_pointer_rtx
734 329739 : || VIRTUAL_REGISTER_P (op));
735 : })
736 :
737 : ;; P6 processors will jump to the address after the decrement when %esp
738 366625 : ;; is used as a call operand, so they will execute return address as a code.
739 : ;; See Pentium Pro errata 70, Pentium 2 errata A33 and Pentium 3 errata E17.
740 366625 :
741 329739 : (define_predicate "call_register_operand"
742 1847198 : (if_then_else (match_test "TARGET_64BIT")
743 : (match_operand 0 "register_operand")
744 : (match_operand 0 "register_no_SP_operand")))
745 1847198 :
746 18001582 : ;; Return false if this is any eliminable register. Otherwise general_operand.
747 1847198 : (define_predicate "general_no_elim_operand"
748 18001582 : (if_then_else (match_code "reg,subreg")
749 : (match_operand 0 "register_no_elim_operand")
750 : (match_operand 0 "general_operand")))
751 :
752 11625334 : ;; Return false if this is any eliminable register. Otherwise
753 : ;; register_operand or a constant.
754 11625334 : (define_predicate "nonmemory_no_elim_operand"
755 : (ior (match_operand 0 "register_no_elim_operand")
756 : (match_operand 0 "immediate_operand")))
757 :
758 633255 : ;; Test for a valid operand for indirect branch.
759 : (define_predicate "indirect_branch_operand"
760 633255 : (ior (match_operand 0 "register_operand")
761 576395 : (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
762 576368 : (not (match_test "TARGET_X32"))
763 : (match_operand 0 "memory_operand"))))
764 :
765 : ;; Return true if OP is a memory operands that can be used in sibcalls.
766 24051 : ;; Since sibcall never returns, we can only use call-clobbered register
767 : ;; as GOT base. Allow GOT slot here only with pseudo register as GOT
768 : ;; base. Properly handle sibcall over GOT slot with *sibcall_GOT_32
769 : ;; and *sibcall_value_GOT_32 patterns.
770 : (define_predicate "sibcall_memory_operand"
771 : (match_operand 0 "memory_operand")
772 : {
773 24051 : op = XEXP (op, 0);
774 24051 : if (CONSTANT_P (op))
775 : return true;
776 10510 : if (GET_CODE (op) == PLUS && REG_P (XEXP (op, 0)))
777 : {
778 9492 : int regno = REGNO (XEXP (op, 0));
779 9492 : if (!HARD_REGISTER_NUM_P (regno) || call_used_or_fixed_reg_p (regno))
780 : {
781 7768 : op = XEXP (op, 1);
782 7768 : if (GOT32_symbol_operand (op, VOIDmode))
783 : return true;
784 : }
785 : }
786 : return false;
787 : })
788 :
789 : ;; Return true if OP is a GOT memory operand.
790 1353109 : (define_predicate "GOT_memory_operand"
791 : (and (match_operand 0 "memory_operand")
792 1377160 : (match_code "const" "0")
793 24051 : (match_code "unspec" "00")
794 566 : (match_test "XINT (XEXP (XEXP (op, 0), 0), 1) == UNSPEC_GOTPCREL")))
795 :
796 : ;; Test for a valid operand for a call instruction.
797 464 : ;; Allow constant call address operands in Pmode only.
798 48847980 : (define_special_predicate "call_insn_operand"
799 464 : (ior (match_test "constant_call_address_operand
800 55015130 : (op, mode == VOIDmode ? mode : Pmode)")
801 : (match_operand 0 "call_register_operand")
802 844610 : (match_test "satisfies_constraint_Bw (op)")))
803 :
804 : ;; Similarly, but for tail calls, in which we cannot allow memory references.
805 : (define_special_predicate "sibcall_insn_operand"
806 1202188 : (ior (match_test "constant_call_address_operand
807 1362926 : (op, mode == VOIDmode ? mode : Pmode)")
808 1202188 : (match_operand 0 "register_no_elim_operand")
809 123065 : (match_test "satisfies_constraint_Bs (op)")))
810 :
811 : ;; Return true if OP is a 32-bit GOT symbol operand.
812 : (define_predicate "GOT32_symbol_operand"
813 9680 : (and (match_code "const")
814 : (match_code "unspec" "0")
815 9680 : (match_test "XINT (XEXP (op, 0), 1) == UNSPEC_GOT")))
816 0 :
817 : ;; Return true if OP is a PLTOFF symbol operand.
818 : (define_predicate "pltoff_symbol_operand"
819 : (and (match_code "const")
820 6 : (match_code "unspec" "0")
821 6 : (match_test "XINT (XEXP (op, 0), 1) == UNSPEC_PLTOFF")))
822 12 :
823 : ;; Match exactly zero.
824 : (define_predicate "const0_operand"
825 : (match_code "const_int,const_double,const_vector")
826 140812042 : {
827 140812042 : if (mode == VOIDmode)
828 22129878 : mode = GET_MODE (op);
829 140812042 : return op == CONST0_RTX (mode);
830 : })
831 :
832 : ;; Match one or a vector with all elements equal to one.
833 1005478490 : (define_predicate "const1_operand"
834 : (match_code "const_int,const_double,const_vector")
835 1005478490 : {
836 11951604 : if (mode == VOIDmode)
837 11884663 : mode = GET_MODE (op);
838 152763646 : return op == CONST1_RTX (mode);
839 140812042 : })
840 140812042 :
841 : ;; Match exactly -1.
842 13242935 : (define_predicate "constm1_operand"
843 : (and (match_code "const_int")
844 154054977 : (match_test "op == constm1_rtx")))
845 140812042 :
846 63975951 : ;; Match 0 or -1.
847 11951604 : (define_predicate "const0_or_m1_operand"
848 11954518 : (ior (match_operand 0 "const0_operand")
849 11951604 : (match_operand 0 "constm1_operand")))
850 2914 :
851 : ;; Match exactly eight.
852 : (define_predicate "const8_operand"
853 11951604 : (and (match_code "const_int")
854 11951604 : (match_test "INTVAL (op) == 8")))
855 10307 :
856 206679 : ;; Match exactly 128.
857 : (define_predicate "const128_operand"
858 27992499 : (and (match_code "const_int")
859 246541646 : (match_test "INTVAL (op) == 128")))
860 27992499 :
861 195242571 : ;; Match exactly 0x0FFFFFFFF in anddi as a zero-extension operation
862 : (define_predicate "const_32bit_mask"
863 2993904 : (and (match_code "const_int")
864 1983747 : (match_test "trunc_int_for_mode (INTVAL (op), DImode)
865 4977651 : == HOST_WIDE_INT_C (0xffffffff)")))
866 :
867 : ;; Match 2, 4, or 8. Used for leal multiplicands.
868 : (define_predicate "const248_operand"
869 308587 : (match_code "const_int")
870 : {
871 308587 : HOST_WIDE_INT i = INTVAL (op);
872 308587 : return i == 2 || i == 4 || i == 8;
873 : })
874 :
875 : ;; Match 1, 2, or 3. Used for lea shift amounts.
876 1065090 : (define_predicate "const123_operand"
877 : (match_code "const_int")
878 1065090 : {
879 1305959 : HOST_WIDE_INT i = INTVAL (op);
880 240869 : return i == 1 || i == 2 || i == 3;
881 : })
882 :
883 240869 : ;; Match 1, 2, 4, or 8
884 249271 : (define_predicate "const1248_operand"
885 : (match_code "const_int")
886 249271 : {
887 240869 : HOST_WIDE_INT i = INTVAL (op);
888 111959 : return i == 1 || i == 2 || i == 4 || i == 8;
889 : })
890 :
891 111959 : ;; Match 3, 5, or 9. Used for leal multiplicands.
892 564525 : (define_predicate "const359_operand"
893 : (match_code "const_int")
894 564525 : {
895 613230 : HOST_WIDE_INT i = INTVAL (op);
896 48705 : return i == 3 || i == 5 || i == 9;
897 : })
898 :
899 48705 : ;; Match 4 or 8 to 11. Used for embedded rounding.
900 236570 : (define_predicate "const_4_or_8_to_11_operand"
901 : (match_code "const_int")
902 236570 : {
903 316353 : HOST_WIDE_INT i = INTVAL (op);
904 79783 : return i == 4 || (i >= 8 && i <= 11);
905 : })
906 :
907 79783 : ;; Match 4 or 8. Used for SAE.
908 79785 : (define_predicate "const48_operand"
909 : (match_code "const_int")
910 79785 : {
911 79783 : HOST_WIDE_INT i = INTVAL (op);
912 64962 : return i == 4 || i == 8;
913 : })
914 :
915 64962 : ;; Match 0 or 1.
916 64962 : (define_predicate "const_0_to_1_operand"
917 : (and (match_code "const_int")
918 64962 : (ior (match_test "op == const0_rtx")
919 302697 : (match_test "op == const1_rtx"))))
920 :
921 : ;; Match 0 to 3.
922 : (define_predicate "const_0_to_3_operand"
923 7939435 : (and (match_code "const_int")
924 15083490 : (match_test "IN_RANGE (INTVAL (op), 0, 3)")))
925 7939435 :
926 : ;; Match 0 to 7.
927 : (define_predicate "const_0_to_7_operand"
928 794122 : (and (match_code "const_int")
929 1588229 : (match_test "IN_RANGE (INTVAL (op), 0, 7)")))
930 794122 :
931 : ;; Match 0 to 15.
932 : (define_predicate "const_0_to_15_operand"
933 81831 : (and (match_code "const_int")
934 163646 : (match_test "IN_RANGE (INTVAL (op), 0, 15)")))
935 81831 :
936 : ;; Match 0 to 31.
937 : (define_predicate "const_0_to_31_operand"
938 55975 : (and (match_code "const_int")
939 109668 : (match_test "IN_RANGE (INTVAL (op), 0, 31)")))
940 55975 :
941 : ;; Match 0 to 63.
942 : (define_predicate "const_0_to_63_operand"
943 32106 : (and (match_code "const_int")
944 61736 : (match_test "IN_RANGE (INTVAL (op), 0, 63)")))
945 32106 :
946 : ;; Match 0 to 127.
947 : (define_predicate "const_0_to_127_operand"
948 10148 : (and (match_code "const_int")
949 18980 : (match_test "IN_RANGE (INTVAL (op), 0, 127)")))
950 10148 :
951 : ;; Match 0 to 255.
952 : (define_predicate "const_0_to_255_operand"
953 9086538 : (and (match_code "const_int")
954 18145606 : (match_test "IN_RANGE (INTVAL (op), 0, 255)")))
955 9086538 :
956 : ;; Match (0 to 255) * 8
957 : (define_predicate "const_0_to_255_mul_8_operand"
958 515388 : (match_code "const_int")
959 : {
960 515388 : unsigned HOST_WIDE_INT val = INTVAL (op);
961 515388 : return val <= 255*8 && val % 8 == 0;
962 : })
963 :
964 : ;; Match 1 to 255 except multiples of 8
965 515390 : (define_predicate "const_0_to_255_not_mul_8_operand"
966 : (match_code "const_int")
967 515390 : {
968 9 : unsigned HOST_WIDE_INT val = INTVAL (op);
969 934096 : return val <= 255 && val % 8 != 0;
970 : })
971 :
972 934110 : ;; Return true if OP is CONST_INT >= 1 and <= 31 (a valid operand
973 934110 : ;; for shift & compare patterns, as shifting by 0 does not change flags).
974 : (define_predicate "const_1_to_31_operand"
975 934110 : (and (match_code "const_int")
976 703196 : (match_test "IN_RANGE (INTVAL (op), 1, 31)")))
977 :
978 : ;; Return true if OP is CONST_INT >= 1 and <= 63 (a valid operand
979 : ;; for 64bit shift & compare patterns, as shifting by 0 does not change flags).
980 313493 : (define_predicate "const_1_to_63_operand"
981 : (and (match_code "const_int")
982 313493 : (match_test "IN_RANGE (INTVAL (op), 1, 63)")))
983 :
984 : ;; Match 2 or 3.
985 : (define_predicate "const_2_to_3_operand"
986 74300 : (and (match_code "const_int")
987 148600 : (match_test "IN_RANGE (INTVAL (op), 2, 3)")))
988 74300 :
989 : ;; Match 4 to 5.
990 : (define_predicate "const_4_to_5_operand"
991 5552 : (and (match_code "const_int")
992 11104 : (match_test "IN_RANGE (INTVAL (op), 4, 5)")))
993 5552 :
994 : ;; Match 4 to 7.
995 : (define_predicate "const_4_to_7_operand"
996 1091273 : (and (match_code "const_int")
997 2182546 : (match_test "IN_RANGE (INTVAL (op), 4, 7)")))
998 1091273 :
999 : ;; Match 6 to 7.
1000 : (define_predicate "const_6_to_7_operand"
1001 713 : (and (match_code "const_int")
1002 1426 : (match_test "IN_RANGE (INTVAL (op), 6, 7)")))
1003 713 :
1004 : ;; Match 8 to 9.
1005 : (define_predicate "const_8_to_9_operand"
1006 513 : (and (match_code "const_int")
1007 1026 : (match_test "IN_RANGE (INTVAL (op), 8, 9)")))
1008 513 :
1009 : ;; Match 8 to 11.
1010 : (define_predicate "const_8_to_11_operand"
1011 35828 : (and (match_code "const_int")
1012 71656 : (match_test "IN_RANGE (INTVAL (op), 8, 11)")))
1013 35828 :
1014 : ;; Match 8 to 15.
1015 : (define_predicate "const_8_to_15_operand"
1016 40153 : (and (match_code "const_int")
1017 80306 : (match_test "IN_RANGE (INTVAL (op), 8, 15)")))
1018 40153 :
1019 : ;; Match 10 to 11.
1020 : (define_predicate "const_10_to_11_operand"
1021 267 : (and (match_code "const_int")
1022 534 : (match_test "IN_RANGE (INTVAL (op), 10, 11)")))
1023 267 :
1024 : ;; Match 12 to 13.
1025 : (define_predicate "const_12_to_13_operand"
1026 266 : (and (match_code "const_int")
1027 532 : (match_test "IN_RANGE (INTVAL (op), 12, 13)")))
1028 266 :
1029 : ;; Match 12 to 15.
1030 : (define_predicate "const_12_to_15_operand"
1031 23746 : (and (match_code "const_int")
1032 47492 : (match_test "IN_RANGE (INTVAL (op), 12, 15)")))
1033 23746 :
1034 : ;; Match 14 to 15.
1035 : (define_predicate "const_14_to_15_operand"
1036 266 : (and (match_code "const_int")
1037 532 : (match_test "IN_RANGE (INTVAL (op), 14, 15)")))
1038 266 :
1039 : ;; Match 16 to 19.
1040 : (define_predicate "const_16_to_19_operand"
1041 927 : (and (match_code "const_int")
1042 1854 : (match_test "IN_RANGE (INTVAL (op), 16, 19)")))
1043 927 :
1044 : ;; Match 16 to 31.
1045 : (define_predicate "const_16_to_31_operand"
1046 10187 : (and (match_code "const_int")
1047 20374 : (match_test "IN_RANGE (INTVAL (op), 16, 31)")))
1048 10187 :
1049 : ;; Match 20 to 23.
1050 : (define_predicate "const_20_to_23_operand"
1051 532 : (and (match_code "const_int")
1052 1064 : (match_test "IN_RANGE (INTVAL (op), 20, 23)")))
1053 532 :
1054 : ;; Match 24 to 27.
1055 : (define_predicate "const_24_to_27_operand"
1056 532 : (and (match_code "const_int")
1057 1064 : (match_test "IN_RANGE (INTVAL (op), 24, 27)")))
1058 532 :
1059 : ;; Match 28 to 31.
1060 : (define_predicate "const_28_to_31_operand"
1061 532 : (and (match_code "const_int")
1062 1064 : (match_test "IN_RANGE (INTVAL (op), 28, 31)")))
1063 532 :
1064 : (define_predicate "cmpps_imm_operand"
1065 : (ior (match_operand 0 "const_0_to_7_operand")
1066 3944 : (and (match_test "TARGET_AVX")
1067 : (match_operand 0 "const_0_to_31_operand"))))
1068 60695 :
1069 : ;; True if this is a constant appropriate for an increment or decrement.
1070 103685198 : (define_predicate "incdec_operand"
1071 : (match_code "const_int")
1072 : {
1073 : /* On Pentium4, the inc and dec operations causes extra dependency on flag
1074 : registers, since carry flag is not set. */
1075 103685198 : if (!TARGET_USE_INCDEC && !optimize_insn_for_size_p ())
1076 : return false;
1077 2709361 : return op == const1_rtx || op == constm1_rtx;
1078 : })
1079 :
1080 : ;; True for registers, or const_int_operand, used to vec_setm expander.
1081 129570924 : (define_predicate "vec_setm_sse41_operand"
1082 : (ior (and (match_operand 0 "register_operand")
1083 233256835 : (match_test "TARGET_SSE4_1"))
1084 103685198 : (match_code "const_int")))
1085 :
1086 : (define_predicate "vec_setm_avx2_operand"
1087 : (ior (and (match_operand 0 "register_operand")
1088 876 : (match_test "TARGET_AVX2"))
1089 0 : (match_code "const_int")))
1090 1180 :
1091 : (define_predicate "vec_setm_mmx_operand"
1092 : (ior (and (match_operand 0 "register_operand")
1093 22 : (match_test "TARGET_SSE4_1")
1094 260 : (match_test "TARGET_MMX_WITH_SSE"))
1095 260 : (match_code "const_int")))
1096 :
1097 : ;; True for registers, or 1 or -1. Used to optimize double-word shifts.
1098 : (define_predicate "reg_or_pm1_operand"
1099 4498810 : (ior (match_operand 0 "register_operand")
1100 : (and (match_code "const_int")
1101 4498810 : (ior (match_test "op == const1_rtx")
1102 263998 : (match_test "op == constm1_rtx")))))
1103 248291 :
1104 : ;; True for expressions valid for 3-operand ternlog instructions.
1105 : (define_predicate "ternlog_operand"
1106 : (and (match_code "not,and,ior,xor")
1107 2386100 : (match_test "ix86_ternlog_operand_p (op)")))
1108 259495 :
1109 67209835 : ;; True if OP is acceptable as operand of DImode shift expander.
1110 : (define_predicate "shiftdi_operand"
1111 1413061 : (if_then_else (match_test "TARGET_64BIT")
1112 3799161 : (match_operand 0 "nonimmediate_operand")
1113 2386100 : (match_operand 0 "register_operand")))
1114 1413061 :
1115 3042143 : (define_predicate "ashldi_input_operand"
1116 656043 : (if_then_else (match_test "TARGET_64BIT")
1117 656043 : (match_operand 0 "nonimmediate_operand")
1118 : (match_operand 0 "reg_or_pm1_operand")))
1119 2386100 :
1120 588816 : ;; Return true if OP is a vector load from the constant pool with just
1121 : ;; the first element nonzero.
1122 : (define_predicate "zero_extended_scalar_load_operand"
1123 : (match_code "mem")
1124 : {
1125 588816 : unsigned n_elts;
1126 588816 : op = avoid_constant_pool_reference (op);
1127 :
1128 588816 : if (!CONST_VECTOR_P (op))
1129 : return false;
1130 :
1131 99089 : n_elts = CONST_VECTOR_NUNITS (op);
1132 :
1133 195246 : for (n_elts--; n_elts > 0; n_elts--)
1134 : {
1135 144213 : rtx elt = CONST_VECTOR_ELT (op, n_elts);
1136 288426 : if (elt != CONST0_RTX (GET_MODE_INNER (GET_MODE (op))))
1137 : return false;
1138 : }
1139 : return true;
1140 : })
1141 :
1142 : /* Return true if operand is a float vector constant that is all ones. */
1143 1975692 : (define_predicate "float_vector_all_ones_operand"
1144 : (match_code "const_vector,mem")
1145 588816 : {
1146 2026725 : mode = GET_MODE (op);
1147 51033 : if (!FLOAT_MODE_P (mode)
1148 13577814 : || (MEM_P (op)
1149 11665236 : && (!SYMBOL_REF_P (XEXP (op, 0))
1150 1666661 : || !CONSTANT_POOL_ADDRESS_P (XEXP (op, 0)))))
1151 16412335 : return false;
1152 :
1153 3326266 : if (MEM_P (op))
1154 : {
1155 1413688 : op = get_pool_constant (XEXP (op, 0));
1156 1413688 : if (!CONST_VECTOR_P (op))
1157 : return false;
1158 :
1159 1413684 : if (GET_MODE (op) != mode
1160 5948 : && INTEGRAL_MODE_P (GET_MODE (op))
1161 5948 : && op == CONSTM1_RTX (GET_MODE (op)))
1162 : return true;
1163 : }
1164 :
1165 3326262 : rtx first = XVECEXP (op, 0, 0);
1166 10849602 : for (int i = 1; i != GET_MODE_NUNITS (GET_MODE (op)); i++)
1167 : {
1168 4593965 : rtx tmp = XVECEXP (op, 0, i);
1169 4593965 : if (!rtx_equal_p (tmp, first))
1170 : return false;
1171 : }
1172 830836 : if (GET_MODE (first) == E_SFmode)
1173 : {
1174 464858 : long l;
1175 464858 : REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (first), l);
1176 464858 : return (l & 0xffffffff) == 0xffffffff;
1177 : }
1178 365978 : else if (GET_MODE (first) == E_DFmode)
1179 : {
1180 358829 : long l[2];
1181 358829 : REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (first), l);
1182 358829 : return ((l[0] & 0xffffffff) == 0xffffffff
1183 358829 : && (l[1] & 0xffffffff) == 0xffffffff);
1184 : }
1185 : else
1186 : return false;
1187 : })
1188 :
1189 : /* Return true if operand is an integral vector constant that is all ones. */
1190 56348148 : (define_predicate "vector_all_ones_operand"
1191 : (and (match_code "const_vector")
1192 70432625 : (match_test "INTEGRAL_MODE_P (GET_MODE (op))")
1193 12237055 : (match_test "op == CONSTM1_RTX (GET_MODE (op))")))
1194 1198716 :
1195 16412335 : /* Return true if operand is a vector constant that is all ones. */
1196 16412335 : (define_predicate "int_float_vector_all_ones_operand"
1197 : (ior (match_operand 0 "vector_all_ones_operand")
1198 9188119 : (match_operand 0 "float_vector_all_ones_operand")
1199 0 : (match_test "op == constm1_rtx")))
1200 9188119 :
1201 16412335 : /* Return true if operand is an 128/256bit all ones vector
1202 3078 : that zero-extends to 256/512bit. */
1203 : (define_predicate "vector_all_ones_zero_extend_half_operand"
1204 12417983 : (match_code "const_vector")
1205 : {
1206 178143186 : mode = GET_MODE (op);
1207 12417983 : if (GET_MODE_CLASS (mode) != MODE_VECTOR_INT
1208 188914615 : || (GET_MODE_SIZE (mode) != 32
1209 10462758 : && GET_MODE_SIZE (mode) != 64))
1210 : return false;
1211 :
1212 479346 : int nelts = CONST_VECTOR_NUNITS (op);
1213 553073 : for (int i = 0; i != nelts; i++)
1214 : {
1215 552065 : rtx elt = CONST_VECTOR_ELT (op, i);
1216 552065 : if (i < nelts / 2
1217 1085301 : && elt != CONSTM1_RTX (GET_MODE_INNER (mode)))
1218 : return false;
1219 84845 : if (i >= nelts / 2
1220 103674 : && elt != CONST0_RTX (GET_MODE_INNER (mode)))
1221 : return false;
1222 : }
1223 : return true;
1224 : })
1225 :
1226 : /* Return true if operand is an 128bit all ones vector
1227 179277726 : that zero extends to 512bit. */
1228 : (define_predicate "vector_all_ones_zero_extend_quarter_operand"
1229 12417983 : (match_code "const_vector")
1230 179278734 : {
1231 1008 : mode = GET_MODE (op);
1232 12416975 : if (GET_MODE_CLASS (mode) != MODE_VECTOR_INT
1233 10770421 : || GET_MODE_SIZE (mode) != 64)
1234 : return false;
1235 12416975 :
1236 170456 : int nelts = CONST_VECTOR_NUNITS (op);
1237 184438 : for (int i = 0; i != nelts; i++)
1238 : {
1239 184346 : rtx elt = CONST_VECTOR_ELT (op, i);
1240 184346 : if (i < nelts / 4
1241 365138 : && elt != CONSTM1_RTX (GET_MODE_INNER (mode)))
1242 : return false;
1243 16666 : if (i >= nelts / 4
1244 20220 : && elt != CONST0_RTX (GET_MODE_INNER (mode)))
1245 : return false;
1246 : }
1247 : return true;
1248 : })
1249 :
1250 : ; Return true when OP is operand acceptable for vector memory operand.
1251 179276718 : ; Only AVX can have misaligned memory operand.
1252 : (define_predicate "vector_memory_operand"
1253 12416975 : (and (match_operand 0 "memory_operand")
1254 180397145 : (ior (match_test "TARGET_AVX")
1255 1120427 : (match_test "MEM_ALIGN (op) >= GET_MODE_ALIGNMENT (mode)"))))
1256 :
1257 : ; Return true when OP is register_operand or vector_memory_operand.
1258 : (define_predicate "vector_operand"
1259 20769571 : (ior (match_operand 0 "register_operand")
1260 : (match_operand 0 "vector_memory_operand")))
1261 20769571 :
1262 : ; Return true when OP is register_operand, vector_memory_operand
1263 : ; or const_vector.
1264 : (define_predicate "vector_or_const_vector_operand"
1265 108996 : (ior (match_operand 0 "register_operand")
1266 : (match_operand 0 "vector_memory_operand")
1267 108996 : (match_code "const_vector")))
1268 49319 :
1269 : (define_predicate "bcst_mem_operand"
1270 : (and (match_code "vec_duplicate")
1271 14397 : (and (match_test "TARGET_AVX512F")
1272 168402015 : (ior (match_test "TARGET_AVX512VL")
1273 9064 : (match_test "GET_MODE_SIZE (GET_MODE (op)) == 64")))
1274 156358 : (match_test "VALID_BCST_MODE_P (GET_MODE_INNER (GET_MODE (op)))")
1275 13457 : (match_test "GET_MODE (XEXP (op, 0))
1276 40360 : == GET_MODE_INNER (GET_MODE (op))")
1277 168416253 : (match_test "memory_operand (XEXP (op, 0), GET_MODE (XEXP (op, 0)))")))
1278 5324 :
1279 : ; Return true when OP is bcst_mem_operand or vector_memory_operand.
1280 : (define_predicate "bcst_vector_operand"
1281 : (ior (match_operand 0 "vector_operand")
1282 5579300 : (match_operand 0 "bcst_mem_operand")))
1283 :
1284 5579300 : ;; Return true when OP is either nonimmediate operand, or any
1285 : ;; CONST_VECTOR.
1286 : (define_predicate "nonimmediate_or_const_vector_operand"
1287 : (ior (match_operand 0 "nonimmediate_operand")
1288 96098 : (match_code "const_vector")))
1289 :
1290 96098 : (define_predicate "nonimmediate_or_const_vec_dup_operand"
1291 15729 : (ior (match_operand 0 "nonimmediate_operand")
1292 46 : (match_test "const_vec_duplicate_p (op)")))
1293 46 :
1294 : ;; Return true when OP is either register operand, or any
1295 94 : ;; CONST_VECTOR.
1296 : (define_predicate "reg_or_const_vector_operand"
1297 94 : (ior (match_operand 0 "register_operand")
1298 : (match_code "const_vector")))
1299 275 :
1300 173 : ;; Return true when OP is CONST_VECTOR which can be converted to a
1301 : ;; sign extended 32-bit integer.
1302 : (define_predicate "x86_64_const_vector_operand"
1303 : (match_code "const_vector")
1304 159096 : {
1305 159096 : if (mode == VOIDmode)
1306 0 : mode = GET_MODE (op);
1307 159096 : else if (GET_MODE (op) != mode)
1308 : return false;
1309 374623 : if (GET_MODE_SIZE (mode) > UNITS_PER_WORD)
1310 : return false;
1311 116117 : HOST_WIDE_INT val = ix86_convert_const_vector_to_integer (op, mode);
1312 116117 : return trunc_int_for_mode (val, SImode) == val;
1313 : })
1314 :
1315 : (define_predicate "nonimmediate_or_x86_64_const_vector_operand"
1316 984054 : (ior (match_operand 0 "nonimmediate_operand")
1317 : (match_operand 0 "x86_64_const_vector_operand")))
1318 159096 :
1319 1066191 : ;; Return true when OP is nonimmediate or standard SSE constant.
1320 82137 : (define_predicate "nonimmediate_or_sse_const_operand"
1321 : (ior (match_operand 0 "nonimmediate_operand")
1322 25658302 : (match_test "standard_sse_constant_p (op, mode)")))
1323 2878752 :
1324 6749 : ;; Return true if OP is a register or a zero.
1325 : (define_predicate "reg_or_0_operand"
1326 6749 : (ior (match_operand 0 "register_operand")
1327 402148 : (match_operand 0 "const0_operand")))
1328 :
1329 402148 : ; Return true when OP is a nonimmediate or zero.
1330 96634983 : (define_predicate "nonimm_or_0_operand"
1331 : (ior (match_operand 0 "nonimmediate_operand")
1332 119414533 : (match_operand 0 "const0_operand")))
1333 129948671 :
1334 : ; Return true when OP is a nonimmediate or zero or all ones.
1335 129948671 : (define_predicate "nonimm_or_0_or_1s_operand"
1336 : (ior (match_operand 0 "nonimmediate_operand")
1337 : (match_operand 0 "const0_operand")
1338 : (match_operand 0 "int_float_vector_all_ones_operand")))
1339 86830 :
1340 : ;; Return true for RTX codes that force SImode address.
1341 86830 : (define_predicate "SImode_address_operand"
1342 : (match_code "subreg,zero_extend,and"))
1343 :
1344 : ;; Return true if op is a valid address for LEA, and does not contain
1345 278351544 : ;; a segment override. Defined as a special predicate to allow
1346 : ;; mode-less const_int operands pass to address_operand.
1347 278351544 : (define_special_predicate "address_no_seg_operand"
1348 184591106 : (match_test "address_operand (op, VOIDmode)")
1349 67572816 : {
1350 67963825 : struct ix86_address parts;
1351 67963825 : int ok;
1352 391009 :
1353 67610387 : if (!CONST_INT_P (op)
1354 64608507 : && mode != VOIDmode
1355 64608507 : && GET_MODE (op) != mode)
1356 391009 : return false;
1357 391009 :
1358 67572752 : ok = ix86_decompose_address (op, &parts);
1359 67572752 : gcc_assert (ok);
1360 67572752 : return parts.seg == ADDR_SPACE_GENERIC;
1361 67572816 : })
1362 :
1363 : ;; Return true if op if a valid base register, displacement or
1364 117018290 : ;; sum of base register and displacement for VSIB addressing.
1365 : (define_predicate "vsib_address_operand"
1366 117055861 : (match_test "address_operand (op, VOIDmode)")
1367 75903 : {
1368 37241 : struct ix86_address parts;
1369 37571 : int ok;
1370 37571 : rtx disp;
1371 :
1372 37571 : ok = ix86_decompose_address (op, &parts);
1373 37571 : gcc_assert (ok);
1374 63022 : if (parts.index || parts.seg != ADDR_SPACE_GENERIC)
1375 25451 : return false;
1376 :
1377 : /* VSIB addressing doesn't support (%rip). */
1378 37551 : if (parts.disp)
1379 26328811 : {
1380 5642 : disp = parts.disp;
1381 5642 : if (GET_CODE (disp) == CONST)
1382 : {
1383 148 : disp = XEXP (disp, 0);
1384 148 : if (GET_CODE (disp) == PLUS)
1385 148 : disp = XEXP (disp, 0);
1386 148 : if (GET_CODE (disp) == UNSPEC)
1387 0 : switch (XINT (disp, 1))
1388 : {
1389 : case UNSPEC_GOTPCREL:
1390 : case UNSPEC_PCREL:
1391 : case UNSPEC_GOTNTPOFF:
1392 : return false;
1393 : }
1394 : }
1395 5642 : if (TARGET_64BIT
1396 5642 : && flag_pic
1397 0 : && (SYMBOL_REF_P (disp)
1398 0 : || LABEL_REF_P (disp)))
1399 0 : return false;
1400 : }
1401 :
1402 : return true;
1403 : })
1404 :
1405 : (define_predicate "vsib_mem_operator"
1406 38352 : (match_code "mem"))
1407 :
1408 38352 : ;; Return true if the rtx is known to be at least 32 bits aligned.
1409 : (define_predicate "aligned_operand"
1410 : (match_operand 0 "general_operand")
1411 : {
1412 26328811 : struct ix86_address parts;
1413 26328811 : int ok;
1414 :
1415 : /* Registers and immediate operands are always "aligned". */
1416 26328811 : if (!MEM_P (op))
1417 : return true;
1418 :
1419 : /* All patterns using aligned_operand on memory operands ends up
1420 : in promoting memory operand to 64bit and thus causing memory mismatch. */
1421 8257574 : if (TARGET_MEMORY_MISMATCH_STALL && !optimize_insn_for_size_p ())
1422 : return false;
1423 :
1424 : /* Don't even try to do any aligned optimizations with volatiles. */
1425 124870 : if (MEM_VOLATILE_P (op))
1426 : return false;
1427 :
1428 118895 : if (MEM_ALIGN (op) >= 32)
1429 : return true;
1430 :
1431 46162 : op = XEXP (op, 0);
1432 :
1433 : /* Pushes and pops are only valid on the stack pointer. */
1434 46162 : if (GET_CODE (op) == PRE_DEC
1435 46162 : || GET_CODE (op) == POST_INC)
1436 : return true;
1437 :
1438 : /* Decode the address. */
1439 46162 : ok = ix86_decompose_address (op, &parts);
1440 46162 : gcc_assert (ok);
1441 :
1442 46162 : if (parts.base && SUBREG_P (parts.base))
1443 0 : parts.base = SUBREG_REG (parts.base);
1444 46162 : if (parts.index && SUBREG_P (parts.index))
1445 0 : parts.index = SUBREG_REG (parts.index);
1446 :
1447 : /* Look for some component that isn't known to be aligned. */
1448 46162 : if (parts.index)
1449 : {
1450 3338 : if (REGNO_POINTER_ALIGN (REGNO (parts.index)) * parts.scale < 32)
1451 : return false;
1452 : }
1453 42824 : if (parts.base)
1454 : {
1455 35843 : if (REGNO_POINTER_ALIGN (REGNO (parts.base)) < 32)
1456 : return false;
1457 : }
1458 13390 : if (parts.disp)
1459 : {
1460 13390 : if (!CONST_INT_P (parts.disp)
1461 6515 : || (INTVAL (parts.disp) & 3))
1462 13080 : return false;
1463 : }
1464 :
1465 : /* Didn't find one -- this must be an aligned address. */
1466 : return true;
1467 : })
1468 :
1469 : ;; Return true if OP is memory operand with a displacement.
1470 26839935 : (define_predicate "memory_displacement_operand"
1471 : (match_operand 0 "memory_operand")
1472 53168746 : {
1473 26328811 : struct ix86_address parts;
1474 0 : int ok;
1475 :
1476 0 : ok = ix86_decompose_address (XEXP (op, 0), &parts);
1477 0 : gcc_assert (ok);
1478 0 : return parts.disp != NULL_RTX;
1479 : })
1480 :
1481 : ;; Return true if OP is memory operand with a displacement only.
1482 0 : (define_predicate "memory_displacement_only_operand"
1483 : (match_operand 0 "memory_operand")
1484 0 : {
1485 0 : struct ix86_address parts;
1486 39914173 : int ok;
1487 :
1488 39914173 : if (TARGET_64BIT)
1489 39914173 : return false;
1490 :
1491 19191022 : ok = ix86_decompose_address (XEXP (op, 0), &parts);
1492 19191022 : gcc_assert (ok);
1493 :
1494 19191022 : if (parts.base || parts.index)
1495 : return false;
1496 :
1497 239171 : return parts.disp != NULL_RTX;
1498 : })
1499 :
1500 : ;; Return true if OP is memory operand that cannot be represented
1501 62182942 : ;; by the modRM array.
1502 : (define_predicate "long_memory_operand"
1503 102097115 : (and (match_operand 0 "memory_operand")
1504 39914173 : (match_test "memory_address_length (op, false)")))
1505 :
1506 : ;; Return true if OP is a comparison operator that can be issued by fcmov.
1507 : (define_predicate "fcmov_comparison_operator"
1508 71812 : (match_operand 0 "comparison_operator")
1509 : {
1510 0 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1511 71812 : enum rtx_code code = GET_CODE (op);
1512 :
1513 71812 : if (inmode == CCFPmode)
1514 9825 : code = ix86_fp_compare_code_to_integer (code);
1515 :
1516 : /* i387 supports just limited amount of conditional codes. */
1517 71812 : switch (code)
1518 : {
1519 2407 : case GEU: case LTU:
1520 2407 : if (inmode == CCCmode || inmode == CCGZmode)
1521 : return true;
1522 : /* FALLTHRU */
1523 7737 : case GTU: case LEU:
1524 7737 : if (inmode == CCmode || inmode == CCFPmode)
1525 : return true;
1526 : return false;
1527 : case ORDERED: case UNORDERED:
1528 : case EQ: case NE:
1529 : return true;
1530 : default:
1531 : return false;
1532 : }
1533 : })
1534 :
1535 : ;; Return true if OP is a comparison that can be used in the CMPSS/CMPPS insns.
1536 71812 : ;; The first set are supported directly; the second set can't be done with
1537 : ;; full IEEE support, i.e. NaNs.
1538 143624 :
1539 71812 : (define_predicate "sse_comparison_operator"
1540 : (ior (match_code "eq,ne,lt,le,unordered,unge,ungt,ordered")
1541 421018 : (and (match_test "TARGET_AVX")
1542 421018 : (match_code "ge,gt,uneq,unle,unlt,ltgt"))))
1543 537910 :
1544 : ;; SSE2 doesn't have quiet vector compare for UNLT/UNLE/UNGT/UNGE, so reject
1545 537910 : ;; them in the packed FP vec_cmp expanders when trapping math is in effect
1546 106028 : ;; and NaNs are honored
1547 :
1548 106028 : (define_predicate "ix86_fp_vec_cmp_operator"
1549 : (and (match_operand 0 "comparison_operator")
1550 : (ior (not (match_code "unlt,unle,ungt,unge"))
1551 8458 : (match_test "TARGET_AVX")
1552 15514 : (not (match_test "flag_trapping_math"))
1553 7724 : (not (match_test "HONOR_NANS (GET_MODE (XEXP (op, 0)))")))))
1554 :
1555 : (define_predicate "ix86_comparison_int_operator"
1556 : (match_code "ne,eq,ge,gt,le,lt"))
1557 228221 :
1558 : (define_predicate "ix86_comparison_uns_operator"
1559 228221 : (match_code "ne,eq,geu,gtu,leu,ltu"))
1560 :
1561 228221 : (define_predicate "bt_comparison_operator"
1562 228221 : (match_code "ne,eq"))
1563 228221 :
1564 228221 : (define_predicate "shr_comparison_operator"
1565 228221 : (match_code "gtu,leu"))
1566 228221 :
1567 228221 : (define_predicate "add_comparison_operator"
1568 : (match_code "geu,ltu"))
1569 :
1570 : (define_predicate "ieee_maxmin_comparison_operator"
1571 228221 : (match_code "lt,gt"))
1572 228221 :
1573 : ;; Return true if OP is a valid comparison operator in valid mode.
1574 : (define_predicate "ix86_comparison_operator"
1575 : (match_operand 0 "comparison_operator")
1576 122039 : {
1577 102372925 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1578 122039 : enum rtx_code code = GET_CODE (op);
1579 :
1580 102494964 : if (inmode == CCFPmode)
1581 6990737 : return ix86_trivial_fp_comparison_operator (op, mode);
1582 122039 :
1583 95382188 : switch (code)
1584 122039 : {
1585 73255157 : case EQ: case NE:
1586 73133118 : if (inmode == CCGZmode)
1587 0 : return false;
1588 : return true;
1589 4392287 : case GE: case LT:
1590 4392287 : if (inmode == CCmode || inmode == CCGCmode
1591 2532339 : || inmode == CCGOCmode || inmode == CCNOmode || inmode == CCGZmode)
1592 3876063 : return true;
1593 : return false;
1594 7796726 : case GEU: case LTU:
1595 7796726 : if (inmode == CCCmode || inmode == CCGZmode)
1596 : return true;
1597 64100876 : /* FALLTHRU */
1598 10932240 : case GTU: case LEU:
1599 10932240 : if (inmode == CCmode)
1600 9691063 : return true;
1601 52719900 : return false;
1602 3526 : case ORDERED: case UNORDERED:
1603 3526 : if (inmode == CCmode)
1604 3341 : return true;
1605 52719900 : return false;
1606 52719900 : case GT: case LE:
1607 6410447 : if (inmode == CCmode || inmode == CCGCmode || inmode == CCNOmode)
1608 5621541 : return true;
1609 : return false;
1610 841004 : default:
1611 : return false;
1612 841004 : }
1613 : })
1614 841004 :
1615 841004 : ;; Return true if OP is a valid comparison operator
1616 118157328 : ;; testing carry flag to be set.
1617 : (define_predicate "ix86_carry_flag_operator"
1618 219689249 : (match_code "ltu,unlt")
1619 102372925 : {
1620 1782435 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1621 841004 : enum rtx_code code = GET_CODE (op);
1622 :
1623 941431 : if (inmode == CCFPmode)
1624 14799 : code = ix86_fp_compare_code_to_integer (code);
1625 1378293 : else if (inmode != CCmode && inmode != CCCmode && inmode != CCGZmode)
1626 : return false;
1627 1378293 :
1628 746548 : return code == LTU;
1629 1378293 : })
1630 1378293 :
1631 1378293 : ;; Return true if OP is a valid comparison operator
1632 3791705 : ;; testing carry flag to be unset.
1633 : (define_predicate "ix86_carry_flag_unset_operator"
1634 3791705 : (match_code "geu,ge")
1635 1378293 : {
1636 1378293 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1637 943823 : enum rtx_code code = GET_CODE (op);
1638 941431 :
1639 2392 : if (inmode == CCFPmode)
1640 93 : code = ix86_fp_compare_code_to_integer (code);
1641 : else if (inmode != CCmode && inmode != CCCmode && inmode != CCGZmode)
1642 1028 : return false;
1643 941431 :
1644 481056 : return code == GEU;
1645 1028 : })
1646 1028 :
1647 : ;; Return true if this comparison only requires testing one flag bit.
1648 2583269 : ;; VCOMX/VUCOMX set ZF, SF, OF, differently from COMI/UCOMI.
1649 : (define_predicate "ix86_trivial_fp_comparison_operator"
1650 12094802 : (if_then_else (match_test "TARGET_AVX10_2")
1651 676834 : (match_code "gt,ge,unlt,unle,eq,uneq,ne,ltgt,ordered,unordered")
1652 2392 : (match_code "gt,ge,unlt,unle,uneq,ltgt,ordered,unordered")))
1653 2392 :
1654 2392 : (define_predicate "ix86_trivial_fp_comparison_operator_xf"
1655 103754973 : (match_code "gt,ge,unlt,unle,uneq,ltgt,ordered,unordered"))
1656 :
1657 1382048 : ;; Return true if we know how to do this comparison. Others require
1658 2392 : ;; testing more than one flag bit, and we let the generic middle-end
1659 415449 : ;; code do that.
1660 414837 : (define_predicate "ix86_fp_comparison_operator"
1661 2936245 : (if_then_else (match_test "ix86_fp_comparison_strategy (GET_CODE (op))
1662 2936245 : == IX86_FPCMP_ARITH")
1663 413057 : (match_operand 0 "comparison_operator")
1664 9926982 : (match_operand 0 "ix86_trivial_fp_comparison_operator")))
1665 413057 :
1666 9926982 : (define_predicate "ix86_fp_comparison_operator_xf"
1667 1795105 : (if_then_else (match_test "ix86_fp_comparison_strategy (GET_CODE (op))
1668 1382048 : == IX86_FPCMP_ARITH")
1669 : (match_operand 0 "comparison_operator")
1670 : (match_operand 0 "ix86_trivial_fp_comparison_operator_xf")))
1671 413057 :
1672 851582 : ;; Return true if we can perform this comparison on TImode operands.
1673 : (define_predicate "ix86_timode_comparison_operator"
1674 438525 : (if_then_else (match_test "TARGET_64BIT")
1675 : (match_operand 0 "ordered_comparison_operator")
1676 2523188 : (match_operand 0 "bt_comparison_operator")))
1677 :
1678 2523188 : ;; Return true if this is a valid second operand for a TImode comparison.
1679 : (define_predicate "ix86_timode_comparison_operand"
1680 157714 : (if_then_else (match_test "TARGET_64BIT")
1681 : (match_operand 0 "x86_64_general_operand")
1682 : (match_operand 0 "nonimmediate_operand")))
1683 :
1684 2054520 : ;; Nearly general operand, but accept any const_double, since we wish
1685 : ;; to be able to drop them into memory rather than have them get pulled
1686 520443 : ;; into registers.
1687 2574963 : (define_predicate "cmp_fp_expander_operand"
1688 : (ior (match_code "const_double")
1689 : (match_operand 0 "general_operand")))
1690 :
1691 5025009 : ;; Return true if this is a valid binary floating-point operation.
1692 : (define_predicate "binary_fp_operator"
1693 5025009 : (match_code "plus,minus,mult,div"))
1694 :
1695 5015982 : ;; Return true if this is a multiply operation.
1696 5015982 : (define_predicate "mult_operator"
1697 5015982 : (match_code "mult"))
1698 5015982 :
1699 5015982 : ;; Return true if this is a division operation.
1700 : (define_predicate "div_operator"
1701 : (match_code "div"))
1702 :
1703 5015982 : ;; Return true if this is an and, ior or xor operation.
1704 5015982 : (define_predicate "logic_operator"
1705 : (match_code "and,ior,xor"))
1706 :
1707 : ;; Return true if this is an and operation.
1708 17178299 : (define_predicate "and_operator"
1709 : (match_code "and"))
1710 17178299 :
1711 3465368 : ;; Return true if this is a plus, minus, and, ior or xor operation.
1712 : (define_predicate "plusminuslogic_operator"
1713 : (match_code "plus,minus,and,ior,xor"))
1714 :
1715 2776010 : ;; Return true for ARITHMETIC_P.
1716 : (define_predicate "arith_or_logical_operator"
1717 2776010 : (match_code "plus,mult,and,ior,xor,smin,smax,umin,umax,compare,minus,div,
1718 959813 : mod,udiv,umod,ashift,rotate,ashiftrt,lshiftrt,rotatert"))
1719 :
1720 : ;; Return true for COMMUTATIVE_P.
1721 : (define_predicate "commutative_operator"
1722 0 : (match_code "plus,mult,and,ior,xor,smin,smax,umin,umax"))
1723 :
1724 0 : ;; Return true if OP is a binary operator that can be promoted to wider mode.
1725 : (define_predicate "promotable_binary_operator"
1726 0 : (ior (match_code "plus,minus,and,ior,xor,ashift")
1727 0 : (and (match_code "mult")
1728 26015176 : (match_test "TARGET_TUNE_PROMOTE_HIMODE_IMUL"))))
1729 0 :
1730 : (define_predicate "compare_operator"
1731 : (match_code "compare"))
1732 :
1733 7667009 : (define_predicate "extract_high_operator"
1734 0 : (match_code "zero_extract,sign_extract,ashiftrt,lshiftrt")
1735 7667009 : {
1736 0 : return (const8_operand (XEXP (op, 1), VOIDmode)
1737 145834 : && (BINARY_P (op) || const8_operand (XEXP (op, 2), VOIDmode)));
1738 100 : })
1739 :
1740 145934 : ;; Return true if OP is a memory operand, aligned to
1741 0 : ;; less than its natural alignment.
1742 : (define_predicate "misaligned_operand"
1743 145834 : (and (match_code "mem")
1744 6348038 : (match_test "MEM_ALIGN (op) < GET_MODE_BITSIZE (mode)")))
1745 1609921 :
1746 145834 : ;; Return true if OP is a parallel for an mov{d,q,dqa,ps,pd} vec_select,
1747 548814 : ;; where one of the two operands of the vec_concat is const0_operand.
1748 145834 : (define_predicate "movq_parallel"
1749 2115229 : (match_code "parallel")
1750 543754 : {
1751 1969395 : unsigned nelt = XVECLEN (op, 0);
1752 1969395 : unsigned nelt2 = nelt >> 1;
1753 2115229 : unsigned i;
1754 145834 :
1755 1480984 : if (nelt < 2)
1756 : return false;
1757 :
1758 543754 : /* Validate that all of the elements are constants,
1759 543754 : lower halves of permute are lower halves of the first operand,
1760 : upper halves of permute come from any of the second operand. */
1761 15892551 : for (i = 0; i < nelt; ++i)
1762 : {
1763 6916347 : rtx er = XVECEXP (op, 0, i);
1764 2481775 : unsigned HOST_WIDE_INT ei;
1765 4434572 :
1766 2481775 : if (!CONST_INT_P (er))
1767 4434572 : return false;
1768 6916347 : ei = INTVAL (er);
1769 2481775 : if (i < nelt2 && ei != i)
1770 4434572 : return false;
1771 1212992 : if (i >= nelt2 && (ei < nelt || ei >= nelt << 1))
1772 4434572 : return false;
1773 4434572 : }
1774 4434572 :
1775 4434572 : return true;
1776 4434572 : })
1777 4434572 :
1778 4434572 : ;; Return true if OP is a vzeroall operation, known to be a PARALLEL.
1779 5860213 : (define_predicate "vzeroall_operation"
1780 4434572 : (match_code "parallel")
1781 7285854 : {
1782 1425660 : unsigned i, nregs = TARGET_64BIT ? 16 : 8;
1783 0 :
1784 4071 : if ((unsigned) XVECLEN (op, 0) != 1 + nregs)
1785 4434572 : return false;
1786 4434572 :
1787 73126 : for (i = 0; i < nregs; i++)
1788 : {
1789 64984 : rtx elt = XVECEXP (op, 0, i+1);
1790 :
1791 4499556 : if (GET_CODE (elt) != SET
1792 4499556 : || GET_CODE (SET_DEST (elt)) != REG
1793 64984 : || GET_MODE (SET_DEST (elt)) != V8SImode
1794 64984 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
1795 129968 : || SET_SRC (elt) != CONST0_RTX (V8SImode))
1796 1016426 : return false;
1797 : }
1798 1016426 : return true;
1799 : })
1800 345837 :
1801 345837 : ;; return true if OP is a vzeroall pattern.
1802 349908 : (define_predicate "vzeroall_pattern"
1803 345837 : (and (match_code "parallel")
1804 353979 : (match_code "unspec_volatile" "a")
1805 4189 : (match_test "XINT (XVECEXP (op, 0, 0), 1) == UNSPECV_VZEROALL")))
1806 0 :
1807 345837 : ;; return true if OP is a vzeroupper pattern.
1808 345837 : (define_predicate "vzeroupper_pattern"
1809 345837 : (and (match_code "parallel")
1810 4253575 : (match_code "unspec" "b")
1811 4642 : (match_test "XINT (XVECEXP (op, 0, 1), 1) == UNSPEC_CALLEE_ABI")
1812 4253575 : (match_test "INTVAL (XVECEXP (XVECEXP (op, 0, 1), 0, 0)) == ABI_VZEROUPPER")))
1813 0 :
1814 345837 : ;; Return true if OP is an addsub vec_merge operation
1815 : (define_predicate "addsub_vm_operator"
1816 : (match_code "vec_merge")
1817 8497 : {
1818 26023673 : rtx op0, op1;
1819 8497 : int swapped;
1820 26015176 : HOST_WIDE_INT mask;
1821 8497 : int nunits, elt;
1822 :
1823 8497 : op0 = XEXP (op, 0);
1824 8497 : op1 = XEXP (op, 1);
1825 :
1826 : /* Sanity check. */
1827 8497 : if (GET_CODE (op0) == MINUS && GET_CODE (op1) == PLUS)
1828 : swapped = 0;
1829 4340 : else if (GET_CODE (op0) == PLUS && GET_CODE (op1) == MINUS)
1830 : swapped = 1;
1831 : else
1832 0 : gcc_unreachable ();
1833 :
1834 8497 : mask = INTVAL (XEXP (op, 2));
1835 8497 : nunits = GET_MODE_NUNITS (mode);
1836 :
1837 32847 : for (elt = 0; elt < nunits; elt++)
1838 : {
1839 : /* bit clear: take from op0, set: take from op1 */
1840 24605 : int bit = !(mask & (HOST_WIDE_INT_1U << elt));
1841 :
1842 24605 : if (bit != ((elt & 1) ^ swapped))
1843 : return false;
1844 : }
1845 :
1846 : return true;
1847 : })
1848 :
1849 : ;; Return true if OP is an addsub vec_select/vec_concat operation
1850 8497 : (define_predicate "addsub_vs_operator"
1851 : (and (match_code "vec_select")
1852 8497 : (match_code "vec_concat" "0"))
1853 16739 : {
1854 8242 : rtx op0, op1;
1855 0 : bool swapped;
1856 0 : int nunits, elt;
1857 :
1858 0 : op0 = XEXP (XEXP (op, 0), 0);
1859 0 : op1 = XEXP (XEXP (op, 0), 1);
1860 :
1861 : /* Sanity check. */
1862 0 : if (GET_CODE (op0) == MINUS && GET_CODE (op1) == PLUS)
1863 : swapped = false;
1864 0 : else if (GET_CODE (op0) == PLUS && GET_CODE (op1) == MINUS)
1865 : swapped = true;
1866 : else
1867 0 : gcc_unreachable ();
1868 :
1869 0 : nunits = GET_MODE_NUNITS (mode);
1870 0 : if (XVECLEN (XEXP (op, 1), 0) != nunits)
1871 : return false;
1872 :
1873 : /* We already checked that permutation is suitable for addsub,
1874 : so only look at the first element of the parallel. */
1875 0 : elt = INTVAL (XVECEXP (XEXP (op, 1), 0, 0));
1876 :
1877 0 : return elt == (swapped ? nunits : 0);
1878 : })
1879 :
1880 : ;; Return true if OP is a parallel for an addsub vec_select.
1881 0 : (define_predicate "addsub_vs_parallel"
1882 : (and (match_code "parallel")
1883 0 : (match_code "const_int" "a"))
1884 0 : {
1885 0 : int nelt = XVECLEN (op, 0);
1886 493 : int elt, i;
1887 :
1888 493 : if (nelt < 2)
1889 493 : return false;
1890 :
1891 : /* Check that the permutation is suitable for addsub.
1892 : For example, { 0 9 2 11 4 13 6 15 } or { 8 1 10 3 12 5 14 7 }. */
1893 493 : elt = INTVAL (XVECEXP (op, 0, 0));
1894 493 : if (elt == 0)
1895 : {
1896 447 : for (i = 1; i < nelt; ++i)
1897 439 : if (INTVAL (XVECEXP (op, 0, i)) != (i + (i & 1) * nelt))
1898 : return false;
1899 : }
1900 54 : else if (elt == nelt)
1901 : {
1902 0 : for (i = 1; i < nelt; ++i)
1903 0 : if (INTVAL (XVECEXP (op, 0, i)) != (elt + i - (i & 1) * nelt))
1904 : return false;
1905 : }
1906 : else
1907 : return false;
1908 :
1909 : return true;
1910 : })
1911 :
1912 : ;; Return true if OP is a constant pool in perm{w,d,b} which contains index
1913 493 : ;; match pmov{dw,wb,qd}.
1914 : (define_predicate "permvar_truncate_operand"
1915 493 : (match_code "mem")
1916 986 : {
1917 0 : int nelt = GET_MODE_NUNITS (mode);
1918 16 : int perm[128];
1919 16 : int id;
1920 :
1921 32 : if (!INTEGRAL_MODE_P (mode) || !VECTOR_MODE_P (mode))
1922 : return false;
1923 :
1924 16 : if (nelt < 2)
1925 : return false;
1926 :
1927 16 : if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
1928 : return false;
1929 :
1930 16 : id = exact_log2 (nelt);
1931 :
1932 : /* Check that the permutation is suitable for pmovz{bw,wd,dq}.
1933 : For example V16HImode to V8HImode
1934 : { 0 2 4 6 8 10 12 14 * * * * * * * * }. */
1935 232 : for (int i = 0; i != nelt / 2; i++)
1936 216 : if ((perm[i] & ((1 << id) - 1)) != i * 2)
1937 : return false;
1938 :
1939 : return true;
1940 : })
1941 :
1942 : ;; Return true if OP is a constant pool in shufb which contains index
1943 49 : ;; match pmovdw.
1944 : (define_predicate "pshufb_truncv4siv4hi_operand"
1945 16 : (match_code "mem")
1946 65 : {
1947 16 : int perm[128];
1948 :
1949 8 : if (mode != E_V16QImode)
1950 : return false;
1951 8 :
1952 8 : if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
1953 : return false;
1954 :
1955 : /* Check that the permutation is suitable for pmovdw.
1956 : For example V4SImode to V4HImode
1957 : { 0 1 4 5 8 9 12 13 * * * * * * * * }.
1958 : index = i % 2 + (i / 2) * 4. */
1959 58 : for (int i = 0; i != 8; i++)
1960 : {
1961 : /* if (SRC2[(i * 8)+7] = 1) then DEST[(i*8)+7..(i*8)+0] := 0; */
1962 52 : if (perm[i] & 128)
1963 : return false;
1964 :
1965 52 : if ((perm[i] & 15) != ((i & 1) + (i & 0xFE) * 2))
1966 : return false;
1967 : }
1968 :
1969 : return true;
1970 : })
1971 :
1972 : ;; Return true if OP is a constant pool in shufb which contains index
1973 11 : ;; match pmovdw.
1974 : (define_predicate "pshufb_truncv8hiv8qi_operand"
1975 8 : (match_code "mem")
1976 17 : {
1977 6 : int perm[128];
1978 :
1979 11 : if (mode != E_V16QImode)
1980 : return false;
1981 11 :
1982 11 : if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
1983 : return false;
1984 :
1985 : /* Check that the permutation is suitable for pmovwb.
1986 : For example V16QImode to V8QImode
1987 : { 0 2 4 6 8 10 12 14 * * * * * * * * }.
1988 : index = i % 2 + (i / 2) * 4. */
1989 57 : for (int i = 0; i != 8; i++)
1990 : {
1991 : /* if (SRC2[(i * 8)+7] = 1) then DEST[(i*8)+7..(i*8)+0] := 0; */
1992 52 : if (perm[i] & 128)
1993 : return false;
1994 :
1995 52 : if ((perm[i] & 15) != i * 2)
1996 : return false;
1997 : }
1998 :
1999 : return true;
2000 : })
2001 :
2002 : ;; Return true if OP is a parallel for an pmovz{bw,wd,dq} vec_select,
2003 14 : ;; where one of the two operands of the vec_concat is const0_operand.
2004 : (define_predicate "pmovzx_parallel"
2005 11 : (and (match_code "parallel")
2006 19 : (match_code "const_int" "a"))
2007 5 : {
2008 1497389 : int nelt = XVECLEN (op, 0);
2009 1497389 : int elt, i;
2010 :
2011 1497389 : if (nelt < 2)
2012 : return false;
2013 :
2014 : /* Check that the permutation is suitable for pmovz{bw,wd,dq}.
2015 : For example { 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 }. */
2016 1497387 : elt = INTVAL (XVECEXP (op, 0, 0));
2017 1497387 : if (elt == 0)
2018 : {
2019 3460323 : for (i = 1; i < nelt; ++i)
2020 2968096 : if ((i & 1) != 0)
2021 : {
2022 1900657 : if (INTVAL (XVECEXP (op, 0, i)) < nelt)
2023 : return false;
2024 : }
2025 1067439 : else if (INTVAL (XVECEXP (op, 0, i)) != i / 2)
2026 : return false;
2027 : }
2028 : else
2029 : return false;
2030 :
2031 : return true;
2032 : })
2033 :
2034 : ;; Return true if OP is a parallel for an insertps vec_select,
2035 1497389 : ;; where one of the two operands of the vec_concat is const0_operand.
2036 : (define_predicate "insertps_parallel"
2037 1497389 : (and (match_code "parallel")
2038 2994778 : (match_code "const_int" "a"))
2039 0 : {
2040 13200 : int i;
2041 :
2042 13200 : if (XVECLEN (op, 0) != 4)
2043 13200 : return false;
2044 :
2045 : /* One element in [0..3], and the other 3 in [4..7]. */
2046 : bool found = false;
2047 42457 : for (i = 0; i < 4; ++i)
2048 40888 : if (INTVAL (XVECEXP (op, 0, i)) < 4)
2049 : {
2050 24831 : if (found)
2051 : return false;
2052 : found = true;
2053 : }
2054 :
2055 : return found;
2056 : })
2057 :
2058 : ;; Return true if OP is a const vector with duplicate value.
2059 13200 : (define_predicate "const_vector_duplicate_operand"
2060 : (match_code "const_vector")
2061 13200 : {
2062 26400 : rtx elt = XVECEXP (op, 0, 0);
2063 0 : int i, nelt = XVECLEN (op, 0);
2064 :
2065 96 : for (i = 1; i < nelt; ++i)
2066 93 : if (!rtx_equal_p (elt, XVECEXP (op, 0, i)))
2067 3 : return false;
2068 : return true;
2069 : })
2070 :
2071 : ;; Return true if OP is a parallel for a vbroadcast permute.
2072 3 : (define_predicate "avx_vbroadcast_operand"
2073 : (and (match_code "parallel")
2074 3 : (match_code "const_int" "a"))
2075 6 : {
2076 3 : rtx elt = XVECEXP (op, 0, 0);
2077 398032 : int i, nelt = XVECLEN (op, 0);
2078 :
2079 : /* Don't bother checking there are the right number of operands,
2080 398032 : merely that they're all identical. */
2081 505142 : for (i = 1; i < nelt; ++i)
2082 284870 : if (XVECEXP (op, 0, i) != elt)
2083 : return false;
2084 : return true;
2085 : })
2086 :
2087 : ;; Return true if OP is a parallel for a vbroadcastf128 permute.
2088 398032 : (define_predicate "avx_vbroadcast128_operand"
2089 : (and (match_code "parallel")
2090 398032 : (match_code "const_int" "a"))
2091 796064 : {
2092 0 : int i, nelt = XVECLEN (op, 0);
2093 1413441 : int half = nelt / 2;
2094 :
2095 2348647 : for (i = 0; i < nelt; ++i)
2096 1413441 : {
2097 2348497 : int index = INTVAL (XVECEXP (op, 0, i));
2098 2348497 : if ((i < half && index != i)
2099 1091531 : || (i >= half && index != (i - half)))
2100 : return false;
2101 : }
2102 :
2103 : return true;
2104 : })
2105 :
2106 : ;; Return true if OP is a parallel for a palignr permute.
2107 1413441 : (define_predicate "palignr_operand"
2108 : (and (match_code "parallel")
2109 1413441 : (match_code "const_int" "a"))
2110 2826882 : {
2111 0 : int elt = INTVAL (XVECEXP (op, 0, 0));
2112 27257 : int i, nelt = XVECLEN (op, 0);
2113 :
2114 : /* Check that an order in the permutation is suitable for palignr.
2115 27257 : For example, {5 6 7 0 1 2 3 4} is "palignr 5, xmm, xmm". */
2116 63612 : for (i = 1; i < nelt; ++i)
2117 59164 : if (INTVAL (XVECEXP (op, 0, i)) != ((elt + i) % nelt))
2118 : return false;
2119 : return true;
2120 : })
2121 :
2122 : ;; Return true if OP is a proper third operand to vpblendw256.
2123 27257 : (define_predicate "avx2_pblendw_operand"
2124 : (match_code "const_int")
2125 27257 : {
2126 54514 : HOST_WIDE_INT val = INTVAL (op);
2127 0 : HOST_WIDE_INT low = val & 0xff;
2128 7033 : return val == ((low << 8) | low);
2129 : })
2130 :
2131 7033 : ;; Return true if OP is vector_operand or CONST_VECTOR.
2132 7033 : (define_predicate "general_vector_operand"
2133 : (ior (match_operand 0 "vector_operand")
2134 7033 : (match_code "const_vector")))
2135 7033 :
2136 : ;; Return true if OP is either -1 constant or stored in register.
2137 : (define_predicate "register_or_constm1_operand"
2138 : (ior (match_operand 0 "register_operand")
2139 13216 : (and (match_code "const_int")
2140 0 : (match_test "op == constm1_rtx"))))
2141 13216 :
2142 2477 : ;; Return true if the vector ends with between 12 and 18 register saves using
2143 : ;; RAX as the base address.
2144 : (define_predicate "save_multiple"
2145 230675 : (match_code "parallel")
2146 1324 : {
2147 230675 : const unsigned len = XVECLEN (op, 0);
2148 1324 : unsigned i;
2149 :
2150 : /* Starting from end of vector, count register saves. */
2151 323384 : for (i = 0; i < len; ++i)
2152 : {
2153 323384 : rtx src, dest, addr;
2154 323384 : rtx e = XVECEXP (op, 0, len - 1 - i);
2155 :
2156 323384 : if (GET_CODE (e) != SET)
2157 : break;
2158 :
2159 316339 : src = SET_SRC (e);
2160 316339 : dest = SET_DEST (e);
2161 :
2162 316339 : if (!REG_P (src) || !MEM_P (dest))
2163 : break;
2164 :
2165 92709 : addr = XEXP (dest, 0);
2166 :
2167 : /* Good if dest address is in RAX. */
2168 92709 : if (REG_P (addr) && REGNO (addr) == AX_REG)
2169 4202 : continue;
2170 :
2171 : /* Good if dest address is offset of RAX. */
2172 177014 : if (GET_CODE (addr) == PLUS
2173 88507 : && REG_P (XEXP (addr, 0))
2174 177014 : && REGNO (XEXP (addr, 0)) == AX_REG)
2175 88507 : continue;
2176 :
2177 : break;
2178 : }
2179 230675 : return (i >= 12 && i <= 18);
2180 : })
2181 :
2182 :
2183 230675 : ;; Return true if the vector ends with between 12 and 18 register loads using
2184 : ;; RSI as the base address.
2185 461350 : (define_predicate "restore_multiple"
2186 230675 : (match_code "parallel")
2187 0 : {
2188 8013333 : const unsigned len = XVECLEN (op, 0);
2189 8013333 : unsigned i;
2190 :
2191 8013333 : /* Starting from end of vector, count register restores. */
2192 8119661 : for (i = 0; i < len; ++i)
2193 : {
2194 8119661 : rtx src, dest, addr;
2195 8119661 : rtx e = XVECEXP (op, 0, len - 1 - i);
2196 :
2197 8119661 : if (GET_CODE (e) != SET)
2198 : break;
2199 :
2200 4541856 : src = SET_SRC (e);
2201 4541856 : dest = SET_DEST (e);
2202 :
2203 4541856 : if (!MEM_P (src) || !REG_P (dest))
2204 : break;
2205 :
2206 1368828 : addr = XEXP (src, 0);
2207 :
2208 : /* Good if src address is in RSI. */
2209 1368828 : if (REG_P (addr) && REGNO (addr) == SI_REG)
2210 5129 : continue;
2211 :
2212 : /* Good if src address is offset of RSI. */
2213 1464898 : if (GET_CODE (addr) == PLUS
2214 936234 : && REG_P (XEXP (addr, 0))
2215 2235160 : && REGNO (XEXP (addr, 0)) == SI_REG)
2216 101199 : continue;
2217 :
2218 : break;
2219 : }
2220 8013333 : return (i >= 12 && i <= 18);
2221 : })
2222 :
2223 : ;; Keylocker specific predicates
2224 8013333 : (define_predicate "encodekey128_operation"
2225 : (match_code "parallel")
2226 16026666 : {
2227 8013333 : unsigned i;
2228 0 : rtx elt;
2229 :
2230 108 : if (XVECLEN (op, 0) != 8)
2231 : return false;
2232 108 :
2233 392 : for(i = 0; i < 3; i++)
2234 : {
2235 294 : elt = XVECEXP (op, 0, i + 1);
2236 294 : if (GET_CODE (elt) != SET
2237 294 : || GET_CODE (SET_DEST (elt)) != REG
2238 294 : || GET_MODE (SET_DEST (elt)) != V2DImode
2239 294 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
2240 294 : || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
2241 294 : || GET_MODE (SET_SRC (elt)) != V2DImode
2242 294 : || XVECLEN(SET_SRC (elt), 0) != 1
2243 588 : || XVECEXP(SET_SRC (elt), 0, 0) != const0_rtx)
2244 : return false;
2245 : }
2246 :
2247 392 : for(i = 4; i < 7; i++)
2248 : {
2249 294 : elt = XVECEXP (op, 0, i);
2250 294 : if (GET_CODE (elt) != CLOBBER
2251 294 : || GET_MODE (elt) != VOIDmode
2252 294 : || GET_CODE (XEXP (elt, 0)) != REG
2253 294 : || GET_MODE (XEXP (elt, 0)) != V2DImode
2254 588 : || REGNO (XEXP (elt, 0)) != GET_SSE_REGNO (i))
2255 : return false;
2256 : }
2257 :
2258 98 : elt = XVECEXP (op, 0, 7);
2259 98 : if (GET_CODE (elt) != CLOBBER
2260 98 : || GET_MODE (elt) != VOIDmode
2261 98 : || GET_CODE (XEXP (elt, 0)) != REG
2262 98 : || GET_MODE (XEXP (elt, 0)) != CCmode
2263 196 : || REGNO (XEXP (elt, 0)) != FLAGS_REG)
2264 0 : return false;
2265 : return true;
2266 : })
2267 :
2268 : (define_predicate "encodekey256_operation"
2269 108 : (match_code "parallel")
2270 : {
2271 337 : unsigned i;
2272 108 : rtx elt;
2273 0 :
2274 121 : if (XVECLEN (op, 0) != 9)
2275 : return false;
2276 :
2277 121 : elt = SET_SRC (XVECEXP (op, 0, 0));
2278 112 : elt = XVECEXP (elt, 0, 2);
2279 112 : if (!REG_P (elt)
2280 112 : || REGNO(elt) != GET_SSE_REGNO (1))
2281 : return false;
2282 :
2283 560 : for(i = 0; i < 4; i++)
2284 : {
2285 448 : elt = XVECEXP (op, 0, i + 1);
2286 448 : if (GET_CODE (elt) != SET
2287 448 : || GET_CODE (SET_DEST (elt)) != REG
2288 448 : || GET_MODE (SET_DEST (elt)) != V2DImode
2289 448 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
2290 448 : || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
2291 448 : || GET_MODE (SET_SRC (elt)) != V2DImode
2292 448 : || XVECLEN(SET_SRC (elt), 0) != 1
2293 896 : || XVECEXP(SET_SRC (elt), 0, 0) != const0_rtx)
2294 : return false;
2295 : }
2296 :
2297 448 : for(i = 4; i < 7; i++)
2298 : {
2299 336 : elt = XVECEXP (op, 0, i + 1);
2300 336 : if (GET_CODE (elt) != CLOBBER
2301 336 : || GET_MODE (elt) != VOIDmode
2302 336 : || GET_CODE (XEXP (elt, 0)) != REG
2303 336 : || GET_MODE (XEXP (elt, 0)) != V2DImode
2304 672 : || REGNO (XEXP (elt, 0)) != GET_SSE_REGNO (i))
2305 : return false;
2306 : }
2307 :
2308 112 : elt = XVECEXP (op, 0, 8);
2309 112 : if (GET_CODE (elt) != CLOBBER
2310 112 : || GET_MODE (elt) != VOIDmode
2311 112 : || GET_CODE (XEXP (elt, 0)) != REG
2312 112 : || GET_MODE (XEXP (elt, 0)) != CCmode
2313 224 : || REGNO (XEXP (elt, 0)) != FLAGS_REG)
2314 0 : return false;
2315 : return true;
2316 : })
2317 :
2318 :
2319 121 : (define_predicate "aeswidekl_operation"
2320 : (match_code "parallel")
2321 242 : {
2322 121 : unsigned i;
2323 0 : rtx elt;
2324 :
2325 5796 : for (i = 0; i < 8; i++)
2326 : {
2327 660 : elt = XVECEXP (op, 0, i + 1);
2328 5168 : if (GET_CODE (elt) != SET
2329 5168 : || GET_CODE (SET_DEST (elt)) != REG
2330 5168 : || GET_MODE (SET_DEST (elt)) != V2DImode
2331 5168 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
2332 5168 : || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
2333 5168 : || GET_MODE (SET_SRC (elt)) != V2DImode
2334 5168 : || XVECLEN (SET_SRC (elt), 0) != 1
2335 5168 : || !REG_P (XVECEXP (SET_SRC (elt), 0, 0))
2336 10304 : || REGNO (XVECEXP (SET_SRC (elt), 0, 0)) != GET_SSE_REGNO (i))
2337 : return false;
2338 : }
2339 : return true;
2340 : })
2341 :
2342 : ;; Return true if OP is a memory operand that can be also used in APX
2343 660 : ;; EVEX-encoded patterns (i.e. APX NDD/NF) with immediate operand. With
2344 : ;; non-default address space, segment register or address size prefix,
2345 1320 : ;; APX EVEX-encoded instruction length can exceed the 15 byte size limit.
2346 660 : (define_predicate "apx_evex_memory_operand"
2347 0 : (match_operand 0 "memory_operand")
2348 : {
2349 : /* OK if immediate operand size < 4 bytes. */
2350 1686 : if (GET_MODE_SIZE (mode) < 4)
2351 1686 : return true;
2352 :
2353 1527 : bool default_addr = ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (op));
2354 1695 : bool address_size_prefix = TARGET_X32 && Pmode == SImode;
2355 :
2356 1527 : struct ix86_address parts;
2357 1527 : int ok;
2358 :
2359 1527 : op = XEXP (op, 0);
2360 1527 : ok = ix86_decompose_address (op, &parts);
2361 1527 : gcc_assert (ok);
2362 :
2363 1527 : if (default_addr)
2364 : {
2365 : /* Default address space. */
2366 :
2367 : /* Not OK with address size prefix, index register and disp. */
2368 691 : if (address_size_prefix
2369 168 : && parts.index
2370 42 : && parts.disp
2371 42 : && parts.disp != const0_rtx)
2372 42 : return false;
2373 : }
2374 : else
2375 : {
2376 : /* Non-default address space. */
2377 :
2378 : /* Not OK without base register. */
2379 836 : if (!parts.base)
2380 : return false;
2381 :
2382 : /* Not OK with disp and address size prefix. */
2383 668 : if (address_size_prefix && parts.disp)
2384 0 : return false;
2385 : }
2386 :
2387 : return true;
2388 : })
2389 :
2390 : ;; Return true if OP is a memory operand which can be used in APX EVEX-encoded
2391 1808 : ;; ADD patterns (i.e. APX NDD/NF) for with register source operand.
2392 : ;; UNSPEC_GOTNTPOFF memory operand is allowed with APX EVEX-encoded ADD only if
2393 3494 : ;; R_X86_64_CODE_6_GOTTPOFF works.
2394 1686 : (define_predicate "apx_evex_add_memory_operand"
2395 : (match_operand 0 "memory_operand")
2396 : {
2397 : /* OK if "add %reg1, name@gottpoff(%rip), %reg2" or
2398 : "{nf} add name@gottpoff(%rip), %reg1" are supported. */
2399 : if (HAVE_AS_R_X86_64_CODE_6_GOTTPOFF)
2400 : return true;
2401 :
2402 : op = XEXP (op, 0);
2403 :
2404 : /* Disallow APX EVEX-encoded ADD with UNSPEC_GOTNTPOFF. */
2405 : if (GET_CODE (op) == CONST
2406 : && GET_CODE (XEXP (op, 0)) == UNSPEC
2407 : && XINT (XEXP (op, 0), 1) == UNSPEC_GOTNTPOFF)
2408 : return false;
2409 :
2410 : return true;
2411 : })
2412 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2413 : /* (content generated from coverage data) */
2414 850 : /* BEGIN: function "_Z27apx_evex_add_memory_operandP7rtx_def12machine_mode" */
2415 : /* ... */
2416 850 : /* ... */
2417 850 : /* ... */
2418 : /* END: function "_Z27apx_evex_add_memory_operandP7rtx_def12machine_mode" */
2419 : /* ... */
2420 : /* ... */
2421 1020217410 : /* BEGIN: function "_Z19lookup_constraint_1PKc" */
2422 : /* ... */
2423 1020217410 : /* ... */
2424 : /* ... */
2425 : /* ... */
2426 : /* ... */
2427 0 : /* ... */
2428 0 : /* ... */
2429 0 : /* ... */
2430 0 : /* ... */
2431 0 : /* ... */
2432 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2433 602656846 : /* (content generated from coverage data) */
2434 602656846 : /* ... */
2435 : /* ... */
2436 : /* ... */
2437 8781134 : /* ... */
2438 : /* ... */
2439 137686761 : /* ... */
2440 : /* ... */
2441 138235 : /* ... */
2442 : /* ... */
2443 1732624 : /* ... */
2444 : /* ... */
2445 1403509 : /* ... */
2446 : /* ... */
2447 57448608 : /* ... */
2448 : /* ... */
2449 52380956 : /* ... */
2450 : /* ... */
2451 103264531 : /* ... */
2452 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2453 40509927 : /* (content generated from coverage data) */
2454 : /* ... */
2455 122472907 : /* ... */
2456 : /* ... */
2457 76836827 : /* ... */
2458 : /* ... */
2459 827 : /* ... */
2460 : /* ... */
2461 0 : /* ... */
2462 0 : /* ... */
2463 0 : /* ... */
2464 0 : /* ... */
2465 0 : /* ... */
2466 0 : /* ... */
2467 0 : /* ... */
2468 0 : /* ... */
2469 0 : /* ... */
2470 0 : /* ... */
2471 0 : /* ... */
2472 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2473 0 : /* (content generated from coverage data) */
2474 0 : /* ... */
2475 0 : /* ... */
2476 0 : /* ... */
2477 0 : /* ... */
2478 0 : /* ... */
2479 0 : /* ... */
2480 0 : /* ... */
2481 0 : /* ... */
2482 0 : /* ... */
2483 0 : /* ... */
2484 0 : /* ... */
2485 0 : /* ... */
2486 0 : /* ... */
2487 0 : /* ... */
2488 0 : /* ... */
2489 0 : /* ... */
2490 0 : /* ... */
2491 41239154 : /* ... */
2492 41239154 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2493 : /* (content generated from coverage data) */
2494 23358 : /* ... */
2495 : /* ... */
2496 : /* ... */
2497 0 : /* ... */
2498 0 : /* ... */
2499 0 : /* ... */
2500 0 : /* ... */
2501 3448184 : /* ... */
2502 3448184 : /* ... */
2503 : /* ... */
2504 : /* ... */
2505 5594 : /* ... */
2506 : /* ... */
2507 342040 : /* ... */
2508 : /* ... */
2509 2704067 : /* ... */
2510 : /* ... */
2511 311027 : /* ... */
2512 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2513 1487 : /* (content generated from coverage data) */
2514 : /* ... */
2515 240 : /* ... */
2516 : /* ... */
2517 5185 : /* ... */
2518 : /* ... */
2519 0 : /* ... */
2520 0 : /* ... */
2521 364064519 : /* ... */
2522 364064519 : /* ... */
2523 : /* ... */
2524 : /* ... */
2525 5687788 : /* ... */
2526 : /* ... */
2527 4080493 : /* ... */
2528 : /* ... */
2529 1403492 : /* ... */
2530 : /* ... */
2531 1410788 : /* ... */
2532 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2533 20057 : /* (content generated from coverage data) */
2534 : /* ... */
2535 199127655 : /* ... */
2536 : /* ... */
2537 1190298 : /* ... */
2538 : /* ... */
2539 144235937 : /* ... */
2540 : /* ... */
2541 3190029 : /* ... */
2542 : /* ... */
2543 2463973 : /* ... */
2544 : /* ... */
2545 1225711 : /* ... */
2546 : /* ... */
2547 0 : /* ... */
2548 0 : /* ... */
2549 0 : /* ... */
2550 0 : /* ... */
2551 0 : /* ... */
2552 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2553 0 : /* (content generated from coverage data) */
2554 0 : /* ... */
2555 0 : /* ... */
2556 0 : /* ... */
2557 0 : /* ... */
2558 0 : /* ... */
2559 0 : /* ... */
2560 0 : /* ... */
2561 0 : /* ... */
2562 0 : /* ... */
2563 8808707 : /* ... */
2564 8808707 : /* ... */
2565 : /* ... */
2566 : /* ... */
2567 0 : /* ... */
2568 : /* ... */
2569 0 : /* ... */
2570 : /* ... */
2571 0 : /* ... */
2572 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2573 0 : /* (content generated from coverage data) */
2574 : /* ... */
2575 0 : /* ... */
2576 : /* ... */
2577 224752 : /* ... */
2578 : /* ... */
2579 7718 : /* ... */
2580 : /* ... */
2581 6264668 : /* ... */
2582 : /* ... */
2583 161817 : /* ... */
2584 : /* ... */
2585 276241 : /* ... */
2586 : /* ... */
2587 3602 : /* ... */
2588 : /* ... */
2589 511426 : /* ... */
2590 : /* ... */
2591 0 : /* ... */
2592 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2593 0 : /* (content generated from coverage data) */
2594 0 : /* ... */
2595 0 : /* ... */
2596 0 : /* ... */
2597 0 : /* ... */
2598 0 : /* ... */
2599 0 : /* ... */
2600 0 : /* ... */
2601 0 : /* ... */
2602 0 : /* ... */
2603 0 : /* ... */
2604 0 : /* ... */
2605 0 : /* ... */
2606 0 : /* ... */
2607 0 : /* ... */
2608 0 : /* ... */
2609 0 : /* ... */
2610 0 : /* ... */
2611 0 : /* ... */
2612 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2613 0 : /* (content generated from coverage data) */
2614 0 : /* ... */
2615 0 : /* ... */
2616 0 : /* ... */
2617 0 : /* ... */
2618 0 : /* ... */
2619 : /* ... */
2620 : /* ... */
2621 1346 : /* ... */
2622 : /* END: function "_Z19lookup_constraint_1PKc" */
2623 : /* ... */
2624 : /* ... */
2625 : /* ... */
2626 : /* ... */
2627 : /* ... */
2628 : /* ... */
2629 : /* ... */
2630 : /* ... */
2631 : /* ... */
2632 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2633 : /* (content generated from coverage data) */
2634 : /* ... */
2635 : /* ... */
2636 : /* ... */
2637 : /* ... */
2638 : /* ... */
2639 : /* ... */
2640 : /* ... */
2641 : /* ... */
2642 : /* ... */
2643 : /* ... */
2644 : /* ... */
2645 : /* ... */
2646 : /* ... */
2647 : /* ... */
2648 : /* ... */
2649 : /* ... */
2650 : /* ... */
2651 : /* ... */
2652 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2653 : /* (content generated from coverage data) */
2654 : /* ... */
2655 : /* ... */
2656 : /* ... */
2657 : /* ... */
2658 : /* ... */
2659 : /* ... */
2660 : /* ... */
2661 : /* ... */
2662 : /* ... */
2663 : /* ... */
2664 : /* ... */
2665 : /* ... */
2666 : /* ... */
2667 : /* ... */
2668 : /* ... */
2669 : /* ... */
2670 : /* ... */
2671 : /* ... */
2672 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2673 : /* (content generated from coverage data) */
2674 : /* ... */
2675 : /* ... */
2676 : /* ... */
2677 : /* ... */
2678 : /* ... */
2679 : /* ... */
2680 : /* ... */
2681 : /* ... */
2682 : /* ... */
2683 : /* ... */
2684 : /* ... */
2685 : /* ... */
2686 : /* ... */
2687 : /* ... */
2688 : /* ... */
2689 : /* ... */
2690 : /* ... */
2691 : /* ... */
2692 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2693 : /* (content generated from coverage data) */
2694 : /* ... */
2695 : /* ... */
2696 : /* ... */
2697 : /* ... */
2698 : /* ... */
2699 : /* ... */
2700 : /* ... */
2701 : /* ... */
2702 : /* ... */
2703 : /* ... */
2704 : /* ... */
2705 : /* ... */
2706 : /* ... */
2707 : /* ... */
2708 : /* ... */
2709 : /* ... */
2710 : /* ... */
2711 : /* ... */
2712 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2713 : /* (content generated from coverage data) */
2714 : /* ... */
2715 : /* ... */
2716 : /* ... */
2717 : /* ... */
2718 : /* ... */
2719 : /* ... */
2720 : /* ... */
2721 : /* ... */
2722 : /* ... */
2723 : /* ... */
2724 : /* ... */
2725 : /* ... */
2726 : /* ... */
2727 : /* ... */
2728 : /* ... */
2729 : /* ... */
2730 : /* ... */
2731 : /* ... */
2732 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2733 : /* (content generated from coverage data) */
2734 : /* ... */
2735 : /* ... */
2736 : /* ... */
2737 : /* ... */
2738 : /* ... */
2739 : /* ... */
2740 : /* ... */
2741 : /* ... */
2742 : /* ... */
2743 : /* ... */
2744 : /* ... */
2745 : /* ... */
2746 : /* ... */
2747 : /* ... */
2748 : /* ... */
2749 : /* ... */
2750 : /* ... */
2751 : /* ... */
2752 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2753 : /* (content generated from coverage data) */
2754 : /* ... */
2755 : /* ... */
2756 : /* ... */
2757 : /* ... */
2758 : /* ... */
2759 : /* ... */
2760 : /* ... */
2761 : /* ... */
2762 : /* ... */
2763 : /* ... */
2764 : /* ... */
2765 : /* ... */
2766 : /* ... */
2767 : /* ... */
2768 : /* ... */
2769 : /* ... */
2770 : /* ... */
2771 : /* ... */
2772 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2773 : /* (content generated from coverage data) */
2774 : /* ... */
2775 : /* ... */
2776 : /* ... */
2777 : /* ... */
2778 : /* ... */
2779 : /* ... */
2780 : /* ... */
2781 : /* ... */
2782 : /* ... */
2783 : /* ... */
2784 : /* ... */
2785 : /* ... */
2786 : /* ... */
2787 : /* ... */
2788 : /* ... */
2789 : /* ... */
2790 : /* ... */
2791 : /* ... */
2792 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2793 : /* (content generated from coverage data) */
2794 : /* ... */
2795 : /* ... */
2796 : /* ... */
2797 : /* ... */
2798 : /* ... */
2799 : /* ... */
2800 : /* ... */
2801 : /* ... */
2802 : /* ... */
2803 : /* ... */
2804 : /* ... */
2805 : /* ... */
2806 : /* ... */
2807 : /* ... */
2808 : /* ... */
2809 : /* ... */
2810 : /* ... */
2811 : /* ... */
2812 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2813 : /* (content generated from coverage data) */
2814 : /* ... */
2815 : /* ... */
2816 : /* ... */
2817 : /* ... */
2818 : /* ... */
2819 : /* ... */
2820 : /* ... */
2821 : /* ... */
2822 : /* ... */
2823 : /* ... */
2824 : /* ... */
2825 : /* ... */
2826 : /* ... */
2827 : /* ... */
2828 : /* ... */
2829 : /* ... */
2830 : /* ... */
2831 : /* ... */
2832 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2833 : /* (content generated from coverage data) */
2834 : /* ... */
2835 : /* ... */
2836 : /* ... */
2837 : /* ... */
2838 : /* ... */
2839 : /* ... */
2840 : /* ... */
2841 : /* ... */
2842 : /* ... */
2843 : /* ... */
2844 : /* ... */
2845 : /* ... */
2846 : /* ... */
2847 : /* ... */
2848 : /* ... */
2849 : /* ... */
2850 : /* ... */
2851 : /* ... */
2852 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2853 : /* (content generated from coverage data) */
2854 : /* ... */
2855 : /* ... */
2856 : /* ... */
2857 : /* ... */
2858 : /* ... */
2859 : /* ... */
2860 : /* ... */
2861 : /* ... */
2862 : /* ... */
2863 : /* ... */
2864 : /* ... */
2865 : /* ... */
2866 : /* ... */
2867 : /* ... */
2868 : /* ... */
2869 : /* ... */
2870 : /* ... */
2871 : /* ... */
2872 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2873 : /* (content generated from coverage data) */
2874 : /* ... */
2875 : /* ... */
2876 : /* ... */
2877 : /* ... */
2878 : /* ... */
2879 : /* ... */
2880 : /* ... */
2881 : /* ... */
2882 : /* ... */
2883 : /* ... */
2884 7505267755 : /* BEGIN: function "_Z26reg_class_for_constraint_114constraint_num" */
2885 : /* ... */
2886 7505267755 : /* ... */
2887 : /* ... */
2888 : /* ... */
2889 : /* ... */
2890 139638040 : /* ... */
2891 : /* ... */
2892 55007930 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2893 24494131 : /* (content generated from coverage data) */
2894 : /* ... */
2895 25585420 : /* ... */
2896 10366173 : /* ... */
2897 782463 : /* ... */
2898 986315 : /* ... */
2899 839282 : /* ... */
2900 1418965 : /* ... */
2901 220996348 : /* ... */
2902 82422 : /* ... */
2903 8691 : /* ... */
2904 927625 : /* ... */
2905 45902924 : /* ... */
2906 681521346 : /* ... */
2907 245460942 : /* ... */
2908 1532881995 : /* ... */
2909 14366 : /* ... */
2910 5687339 : /* ... */
2911 4080020 : /* ... */
2912 1346491 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2913 0 : /* (content generated from coverage data) */
2914 1410784 : /* ... */
2915 14214 : /* ... */
2916 188432473 : /* ... */
2917 331518 : /* ... */
2918 143936047 : /* ... */
2919 2792092 : /* ... */
2920 2330787 : /* ... */
2921 138641 : /* ... */
2922 6263400 : /* ... */
2923 : /* ... */
2924 : /* ... */
2925 : /* ... */
2926 : /* END: function "_Z26reg_class_for_constraint_114constraint_num" */
2927 : /* ... */
2928 : /* ... */
2929 : /* ... */
2930 : /* ... */
2931 : /* ... */
2932 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2933 : /* (content generated from coverage data) */
2934 : /* ... */
2935 : /* ... */
2936 : /* ... */
2937 : /* ... */
2938 : /* ... */
2939 : /* ... */
2940 : /* ... */
2941 : /* ... */
2942 : /* ... */
2943 : /* ... */
2944 : /* ... */
2945 : /* ... */
2946 : /* ... */
2947 : /* ... */
2948 : /* ... */
2949 : /* ... */
2950 : /* ... */
2951 : /* ... */
2952 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2953 : /* (content generated from coverage data) */
2954 : /* ... */
2955 : /* ... */
2956 : /* ... */
2957 : /* ... */
2958 : /* ... */
2959 : /* ... */
2960 : /* ... */
2961 : /* ... */
2962 : /* ... */
2963 : /* ... */
2964 : /* ... */
2965 : /* ... */
2966 : /* ... */
2967 : /* ... */
2968 : /* ... */
2969 : /* ... */
2970 : /* ... */
2971 : /* ... */
2972 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2973 : /* (content generated from coverage data) */
2974 : /* ... */
2975 : /* ... */
2976 : /* ... */
2977 : /* ... */
2978 : /* ... */
2979 : /* ... */
2980 : /* ... */
2981 : /* ... */
2982 : /* ... */
2983 : /* ... */
2984 : /* ... */
2985 : /* ... */
2986 : /* ... */
2987 : /* ... */
2988 : /* ... */
2989 : /* ... */
2990 7464620 : /* END: function "_Z32insn_const_int_ok_for_constraintl14constraint_num" */
2991 : /* ... */
2992 7464620 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2993 : /* (content generated from coverage data) */
2994 1395267 : /* ... */
2995 1395267 : /* ... */
|