Branch data Line data Source code
1 : : ;; Predicate definitions for IA-32 and x86-64.
2 : : ;; Copyright (C) 2004-2025 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 : 132382875 : (match_test "ANY_FP_REGNO_P (REGNO (op))")))
24 : 40584 :
25 : : ;; Return true if OP is an i387 fp register.
26 : : (define_predicate "fp_register_operand"
27 : : (and (match_code "reg")
28 : 1603165 : (match_test "STACK_REGNO_P (REGNO (op))")))
29 : 1517098 :
30 : 435747056 : ;; True if the operand is a GENERAL class register.
31 : : (define_predicate "general_reg_operand"
32 : : (and (match_code "reg")
33 : 270740380 : (match_test "GENERAL_REGNO_P (REGNO (op))")))
34 : 202620671 :
35 : 451426818 : ;; True if the operand is an INDEX class register.
36 : : (define_predicate "index_reg_operand"
37 : : (and (match_code "reg")
38 : 655612 : (match_test "INDEX_REGNO_P (REGNO (op))")))
39 : 655533 :
40 : 656085 : ;; 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 : 55925823 : (match_test "GENERAL_REGNO_P (REGNO (op))")
44 : 61743586 : (match_operand 0 "nonimmediate_operand")))
45 : 77475009 :
46 : : ;; True if the operand is a general operand with GENERAL class register.
47 : : (define_predicate "general_gr_operand"
48 : 90449194 : (if_then_else (match_code "reg")
49 : 39031918 : (match_test "GENERAL_REGNO_P (REGNO (op))")
50 : 114492808 : (match_operand 0 "general_operand")))
51 : :
52 : : ;; True if the operand is an MMX register.
53 : : (define_predicate "mmx_reg_operand"
54 : 39513804 : (and (match_code "reg")
55 : 190 : (match_test "MMX_REGNO_P (REGNO (op))")))
56 : 39513804 :
57 : : ;; Match register operands, but include memory operands for
58 : : ;; !TARGET_MMX_WITH_SSE.
59 : : (define_predicate "register_mmxmem_operand"
60 : 575561 : (ior (match_operand 0 "register_operand")
61 : 15 : (and (not (match_test "TARGET_MMX_WITH_SSE"))
62 : 575561 : (match_operand 0 "memory_operand"))))
63 : :
64 : : ;; True if the operand is an SSE register.
65 : 157194596 : (define_predicate "sse_reg_operand"
66 : : (and (match_code "reg")
67 : 157194596 : (match_test "SSE_REGNO_P (REGNO (op))")))
68 : 1727894 :
69 : : ;; Return true if op is a QImode register.
70 : : (define_predicate "any_QIreg_operand"
71 : : (and (match_code "reg")
72 : 2336394 : (match_test "ANY_QI_REGNO_P (REGNO (op))")))
73 : 806068 :
74 : 2362680 : ;; Return true if op is one of QImode registers: %[abcd][hl].
75 : : (define_predicate "QIreg_operand"
76 : : (and (match_code "reg")
77 : 852870 : (match_test "QI_REGNO_P (REGNO (op))")))
78 : 667660 :
79 : 1711958 : ;; Return true if op is a QImode register operand other than %[abcd][hl].
80 : : (define_predicate "ext_QIreg_operand"
81 : 3504336 : (and (match_test "TARGET_64BIT")
82 : 3504673 : (match_code "reg")
83 : 1032020 : (not (match_test "QI_REGNO_P (REGNO (op))"))))
84 : 3790212 :
85 : : ;; Return true if op is the AX register.
86 : : (define_predicate "ax_reg_operand"
87 : : (and (match_code "reg")
88 : 22851119 : (match_test "REGNO (op) == AX_REG")))
89 : 0 :
90 : 115666669 : ;; Return true if op is the flags register.
91 : : (define_special_predicate "flags_reg_operand"
92 : : (and (match_code "reg")
93 : 114947665 : (match_test "REGNO (op) == FLAGS_REG")))
94 : :
95 : 41378124 : ;; True if the operand is a MASK register.
96 : : (define_predicate "mask_reg_operand"
97 : 10159612 : (and (match_code "reg")
98 : 4657 : (match_test "MASK_REGNO_P (REGNO (op))")))
99 : 10164269 :
100 : : ;; Match a DI, SI or HImode register operand.
101 : : (define_special_predicate "int248_register_operand"
102 : : (and (match_operand 0 "register_operand")
103 : 1001697 : (ior (and (match_test "TARGET_64BIT")
104 : 288895 : (match_test "GET_MODE (op) == DImode"))
105 : 591190 : (match_test "GET_MODE (op) == SImode")
106 : 370200 : (match_test "GET_MODE (op) == HImode"))))
107 : :
108 : : ;; Match a DI, SI, HI or QImode nonimmediate_operand.
109 : : (define_special_predicate "int_nonimmediate_operand"
110 : 458947 : (and (match_operand 0 "nonimmediate_operand")
111 : 616994 : (ior (and (match_test "TARGET_64BIT")
112 : 458947 : (match_test "GET_MODE (op) == DImode"))
113 : 204973 : (match_test "GET_MODE (op) == SImode")
114 : : (match_test "GET_MODE (op) == HImode")
115 : 458947 : (match_test "GET_MODE (op) == QImode"))))
116 : :
117 : : ;; Match register operands, but include memory operands for TARGET_SSE_MATH.
118 : : (define_predicate "register_ssemem_operand"
119 : 2826596 : (if_then_else
120 : 2826596 : (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
121 : 2826596 : (match_operand 0 "nonimmediate_operand")
122 : : (match_operand 0 "register_operand")))
123 : :
124 : 1078692 : ;; Match nonimmediate operands, but exclude memory operands
125 : : ;; for TARGET_SSE_MATH if TARGET_MIX_SSE_I387 is not enabled.
126 : 1078692 : (define_predicate "nonimm_ssenomem_operand"
127 : : (if_then_else
128 : 1078692 : (and (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
129 : 2157384 : (not (match_test "TARGET_MIX_SSE_I387")))
130 : : (match_operand 0 "register_operand")
131 : : (match_operand 0 "nonimmediate_operand")))
132 : :
133 : 732205 : ;; The above predicate, suitable for x87 arithmetic operators.
134 : : (define_predicate "x87nonimm_ssenomem_operand"
135 : 732205 : (if_then_else
136 : 732205 : (and (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
137 : 1464410 : (not (match_test "TARGET_MIX_SSE_I387 && X87_ENABLE_ARITH (mode)")))
138 : : (match_operand 0 "register_operand")
139 : : (match_operand 0 "nonimmediate_operand")))
140 : :
141 : 35106 : ;; Match register operands, include memory operand for TARGET_SSE4_1.
142 : : (define_predicate "register_sse4nonimm_operand"
143 : 35106 : (if_then_else (match_test "TARGET_SSE4_1")
144 : : (match_operand 0 "nonimmediate_operand")
145 : : (match_operand 0 "register_operand")))
146 : :
147 : 14090 : ;; Return true if VALUE is symbol reference
148 : : (define_predicate "symbol_operand"
149 : 14090 : (match_code "symbol_ref"))
150 : 14090 :
151 : : ;; Return true if VALUE is an ENDBR opcode in immediate field.
152 : : (define_predicate "ix86_endbr_immediate_operand"
153 : : (match_code "const_int")
154 : 6423527388 : {
155 : 6423527388 : if (flag_cf_protection & CF_BRANCH)
156 : : {
157 : 1273021087 : unsigned HOST_WIDE_INT imm = UINTVAL (op);
158 : 1273021087 : unsigned HOST_WIDE_INT val = TARGET_64BIT ? 0xfa1e0ff3 : 0xfb1e0ff3;
159 : :
160 : 1273021087 : if (imm == val)
161 : : return true;
162 : :
163 : : /* NB: Encoding is byte based. */
164 : 1273020879 : if (TARGET_64BIT)
165 : 2466882538 : for (; imm >= val; imm >>= 8)
166 : 1384161209 : if (imm == val)
167 : : return true;
168 : : }
169 : :
170 : : return false;
171 : : })
172 : :
173 : : ;; Return true if VALUE can be stored in a sign extended immediate field.
174 : 8308723460 : (define_predicate "x86_64_immediate_operand"
175 : : (match_code "const_int,symbol_ref,label_ref,const")
176 : 8308723460 : {
177 : 11361660172 : if (ix86_endbr_immediate_operand (op, VOIDmode))
178 : : return false;
179 : :
180 : 4938132533 : if (!TARGET_64BIT)
181 : 5125136973 : return immediate_operand (op, mode);
182 : :
183 : 4751128344 : switch (GET_CODE (op))
184 : : {
185 : 3885299714 : case CONST_INT:
186 : 3885299714 : {
187 : 3885299714 : HOST_WIDE_INT val = INTVAL (op);
188 : 3885299714 : return trunc_int_for_mode (val, SImode) == val;
189 : : }
190 : 702485726 : case SYMBOL_REF:
191 : : /* TLS symbols are not constant. */
192 : 702485726 : if (SYMBOL_REF_TLS_MODEL (op))
193 : : return false;
194 : :
195 : : /* Load the external function address via the GOT slot. */
196 : 702445397 : if (ix86_force_load_from_GOT_p (op))
197 : : return false;
198 : :
199 : : /* For certain code models, the symbolic references are known to fit.
200 : : in CM_SMALL_PIC model we know it fits if it is local to the shared
201 : : library. Don't count TLS SYMBOL_REFs here, since they should fit
202 : : only if inside of UNSPEC handled below. */
203 : 702445295 : return (ix86_cmodel == CM_SMALL || ix86_cmodel == CM_KERNEL
204 : 702445295 : || (ix86_cmodel == CM_MEDIUM && !SYMBOL_REF_FAR_ADDR_P (op)));
205 : :
206 : 24367580 : case LABEL_REF:
207 : : /* For certain code models, the code is near as well. */
208 : 24367580 : return (ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM
209 : : || ix86_cmodel == CM_KERNEL);
210 : :
211 : 138975324 : case CONST:
212 : : /* We also may accept the offsetted memory references in certain
213 : : special cases. */
214 : 138975324 : if (GET_CODE (XEXP (op, 0)) == UNSPEC)
215 : 735191 : switch (XINT (XEXP (op, 0), 1))
216 : : {
217 : : case UNSPEC_GOTPCREL:
218 : : case UNSPEC_DTPOFF:
219 : : case UNSPEC_GOTNTPOFF:
220 : : case UNSPEC_NTPOFF:
221 : : case UNSPEC_SECREL32:
222 : : return true;
223 : : default:
224 : : break;
225 : : }
226 : :
227 : 138241225 : if (GET_CODE (XEXP (op, 0)) == PLUS)
228 : : {
229 : 138240133 : rtx op1 = XEXP (XEXP (op, 0), 0);
230 : 138240133 : rtx op2 = XEXP (XEXP (op, 0), 1);
231 : :
232 : 138240133 : if (ix86_cmodel == CM_LARGE && GET_CODE (op1) != UNSPEC)
233 : : return false;
234 : 138240128 : if (!CONST_INT_P (op2))
235 : : return false;
236 : :
237 : 138240128 : HOST_WIDE_INT offset = INTVAL (op2);
238 : 138240128 : if (trunc_int_for_mode (offset, SImode) != offset)
239 : : return false;
240 : :
241 : 138234448 : switch (GET_CODE (op1))
242 : : {
243 : 137896562 : case SYMBOL_REF:
244 : : /* TLS symbols are not constant. */
245 : 137896562 : if (SYMBOL_REF_TLS_MODEL (op1))
246 : : return false;
247 : :
248 : : /* Load the external function address via the GOT slot. */
249 : 137884998 : if (ix86_force_load_from_GOT_p (op1))
250 : : return false;
251 : :
252 : : /* For CM_SMALL assume that latest object is 16MB before
253 : : end of 31bits boundary. We may also accept pretty
254 : : large negative constants knowing that all objects are
255 : : in the positive half of address space. */
256 : 137884992 : if ((ix86_cmodel == CM_SMALL
257 : 192500 : || (ix86_cmodel == CM_MEDIUM
258 : 0 : && !SYMBOL_REF_FAR_ADDR_P (op1)))
259 : 137884992 : && offset < 16*1024*1024)
260 : : return true;
261 : : /* For CM_KERNEL we know that all object resist in the
262 : : negative half of 32bits address space. We may not
263 : : accept negative offsets, since they may be just off
264 : : and we may accept pretty large positive ones. */
265 : 195834 : if (ix86_cmodel == CM_KERNEL
266 : 0 : && offset > 0)
267 : : return true;
268 : : break;
269 : :
270 : 5202 : case LABEL_REF:
271 : : /* These conditions are similar to SYMBOL_REF ones, just the
272 : : constraints for code models differ. */
273 : 5202 : if ((ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM)
274 : 5202 : && offset < 16*1024*1024)
275 : : return true;
276 : 0 : if (ix86_cmodel == CM_KERNEL
277 : 0 : && offset > 0)
278 : : return true;
279 : : break;
280 : :
281 : 332684 : case UNSPEC:
282 : 332684 : switch (XINT (op1, 1))
283 : : {
284 : : case UNSPEC_DTPOFF:
285 : : case UNSPEC_NTPOFF:
286 : : return true;
287 : : }
288 : : break;
289 : :
290 : : default:
291 : : break;
292 : : }
293 : : }
294 : : break;
295 : :
296 : 0 : default:
297 : 0 : gcc_unreachable ();
298 : : }
299 : :
300 : : return false;
301 : : })
302 : :
303 : : ;; Return true if VALUE can be stored in the zero extended immediate field.
304 : 5419804319 : (define_predicate "x86_64_zext_immediate_operand"
305 : : (match_code "const_int,symbol_ref,label_ref,const")
306 : 5419804319 : {
307 : 728661505 : if (ix86_endbr_immediate_operand (op, VOIDmode))
308 : 4938132784 : return false;
309 : 4938132784 :
310 : 728661357 : switch (GET_CODE (op))
311 : 4938132784 : {
312 : 5600471249 : case CONST_INT:
313 : 662338465 : return !(INTVAL (op) & ~HOST_WIDE_INT_C (0xffffffff));
314 : :
315 : 60014717 : case SYMBOL_REF:
316 : 4938132784 : /* TLS symbols are not constant. */
317 : 4998147501 : if (SYMBOL_REF_TLS_MODEL (op))
318 : 273096624 : return false;
319 : :
320 : : /* Load the external function address via the GOT slot. */
321 : 59975259 : if (ix86_force_load_from_GOT_p (op))
322 : 728661505 : return false;
323 : :
324 : : /* For certain code models, the symbolic references are known to fit. */
325 : 59975158 : return (ix86_cmodel == CM_SMALL
326 : 59975158 : || (ix86_cmodel == CM_MEDIUM
327 : 219 : && !SYMBOL_REF_FAR_ADDR_P (op)));
328 : :
329 : 2160547 : case LABEL_REF:
330 : : /* For certain code models, the code is near as well. */
331 : 2160547 : return ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM;
332 : :
333 : 4147628 : case CONST:
334 : : /* We also may accept the offsetted memory references in certain
335 : : special cases. */
336 : 4147628 : if (GET_CODE (XEXP (op, 0)) == PLUS)
337 : : {
338 : 4143409 : rtx op1 = XEXP (XEXP (op, 0), 0);
339 : 4143409 : rtx op2 = XEXP (XEXP (op, 0), 1);
340 : :
341 : 4143409 : if (ix86_cmodel == CM_LARGE)
342 : : return false;
343 : 4143407 : if (!CONST_INT_P (op2))
344 : : return false;
345 : :
346 : 4143407 : HOST_WIDE_INT offset = INTVAL (op2);
347 : 4143407 : if (trunc_int_for_mode (offset, SImode) != offset)
348 : : return false;
349 : :
350 : 4140380 : switch (GET_CODE (op1))
351 : : {
352 : 4139875 : case SYMBOL_REF:
353 : : /* TLS symbols are not constant. */
354 : 4139875 : if (SYMBOL_REF_TLS_MODEL (op1))
355 : : return false;
356 : :
357 : : /* Load the external function address via the GOT slot. */
358 : 4129539 : if (ix86_force_load_from_GOT_p (op1))
359 : : return false;
360 : :
361 : : /* For small code model we may accept pretty large positive
362 : : offsets, since one bit is available for free. Negative
363 : : offsets are limited by the size of NULL pointer area
364 : : specified by the ABI. */
365 : 4129533 : if ((ix86_cmodel == CM_SMALL
366 : 162536 : || (ix86_cmodel == CM_MEDIUM
367 : 0 : && !SYMBOL_REF_FAR_ADDR_P (op1)))
368 : 4129533 : && offset > -0x10000)
369 : : return true;
370 : : /* ??? For the kernel, we may accept adjustment of
371 : : -0x10000000, since we know that it will just convert
372 : : negative address space to positive, but perhaps this
373 : : is not worthwhile. */
374 : : break;
375 : :
376 : 0 : case LABEL_REF:
377 : : /* These conditions are similar to SYMBOL_REF ones, just the
378 : : constraints for code models differ. */
379 : 0 : if ((ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM)
380 : 0 : && offset > -0x10000)
381 : : return true;
382 : : break;
383 : :
384 : : default:
385 : : return false;
386 : : }
387 : : }
388 : : break;
389 : :
390 : 0 : default:
391 : 0 : gcc_unreachable ();
392 : : }
393 : : return false;
394 : : })
395 : :
396 : : ;; Return true if VALUE is a constant integer whose negation satisfies
397 : 976657451 : ;; x86_64_immediate_operand.
398 : : (define_predicate "x86_64_neg_const_int_operand"
399 : 976657451 : (match_code "const_int")
400 : : {
401 : 728698061 : HOST_WIDE_INT val = -UINTVAL (op);
402 : 16432 : if (mode == DImode && trunc_int_for_mode (val, SImode) != val)
403 : 728661505 : return false;
404 : 35859 : if (flag_cf_protection & CF_BRANCH)
405 : 728661505 : {
406 : 17530 : unsigned HOST_WIDE_INT endbr = TARGET_64BIT ? 0xfa1e0ff3 : 0xfb1e0ff3;
407 : 17530 : if ((val & HOST_WIDE_INT_C (0xffffffff)) == endbr)
408 : : return false;
409 : 728661505 : }
410 : 728661505 : return true;
411 : 56846806 : })
412 : :
413 : : ;; Return true if VALUE is a constant integer whose low and high words satisfy
414 : 50571 : ;; x86_64_immediate_operand.
415 : 36556 : (define_predicate "x86_64_hilo_int_operand"
416 : 87127 : (match_code "const_int,const_wide_int")
417 : 36556 : {
418 : 43708300 : switch (GET_CODE (op))
419 : : {
420 : 43658708 : case CONST_INT:
421 : 43708300 : return x86_64_immediate_operand (op, mode);
422 : :
423 : 49592 : case CONST_WIDE_INT:
424 : 49592 : gcc_assert (CONST_WIDE_INT_NUNITS (op) == 2);
425 : 49592 : return (x86_64_immediate_operand (GEN_INT (CONST_WIDE_INT_ELT (op, 0)),
426 : : DImode)
427 : 49592 : && x86_64_immediate_operand (GEN_INT (CONST_WIDE_INT_ELT (op,
428 : : 1)),
429 : : DImode));
430 : :
431 : 0 : default:
432 : 0 : gcc_unreachable ();
433 : : }
434 : : })
435 : :
436 : : ;; Return true if VALUE is a constant integer whose value is
437 : 44411891 : ;; x86_64_immediate_operand value zero extended from word mode to mode.
438 : : (define_predicate "x86_64_dwzext_immediate_operand"
439 : 44411891 : (match_code "const_int,const_wide_int")
440 : : {
441 : 3742 : if (ix86_endbr_immediate_operand (op, VOIDmode))
442 : 43708300 : return false;
443 : 43708300 :
444 : 3742 : switch (GET_CODE (op))
445 : : {
446 : 1624 : case CONST_INT:
447 : 1624 : if (!TARGET_64BIT)
448 : 43708300 : return UINTVAL (op) <= HOST_WIDE_INT_UC (0xffffffff);
449 : 1624 : return UINTVAL (op) <= HOST_WIDE_INT_UC (0x7fffffff);
450 : :
451 : 2118 : case CONST_WIDE_INT:
452 : 5860 : if (!TARGET_64BIT)
453 : : return false;
454 : 2118 : return (CONST_WIDE_INT_NUNITS (op) == 2
455 : 2118 : && CONST_WIDE_INT_ELT (op, 1) == 0
456 : 4236 : && (trunc_int_for_mode (CONST_WIDE_INT_ELT (op, 0), SImode)
457 : 2118 : == (HOST_WIDE_INT) CONST_WIDE_INT_ELT (op, 0)));
458 : :
459 : 0 : default:
460 : 0 : gcc_unreachable ();
461 : : }
462 : : })
463 : :
464 : : ;; Return true if size of VALUE can be stored in a sign
465 : 3742 : ;; extended immediate field.
466 : : (define_predicate "x86_64_immediate_size_operand"
467 : 3742 : (and (match_code "symbol_ref")
468 : 0 : (ior (not (match_test "TARGET_64BIT"))
469 : 0 : (match_test "ix86_cmodel == CM_SMALL")
470 : 0 : (match_test "ix86_cmodel == CM_KERNEL"))))
471 : 0 :
472 : : ;; Return true if OP is general operand representable on x86_64.
473 : : (define_predicate "x86_64_general_operand"
474 : 149369063 : (if_then_else (match_test "TARGET_64BIT")
475 : 149372805 : (ior (match_operand 0 "nonimmediate_operand")
476 : 3742 : (match_operand 0 "x86_64_immediate_operand"))
477 : 149369063 : (match_operand 0 "general_operand")))
478 : 61849725 :
479 : : ;; Return true if OP's both words are general operands representable
480 : 61849725 : ;; on x86_64.
481 : : (define_predicate "x86_64_hilo_general_operand"
482 : 61849725 : (if_then_else (match_test "TARGET_64BIT")
483 : : (ior (match_operand 0 "nonimmediate_operand")
484 : : (match_operand 0 "x86_64_hilo_int_operand"))
485 : : (match_operand 0 "general_operand")))
486 : 338041 :
487 : : ;; Return true if OP is non-VOIDmode general operand representable
488 : 338041 : ;; on x86_64. This predicate is used in sign-extending conversion
489 : : ;; operations that require non-VOIDmode immediate operands.
490 : : (define_predicate "x86_64_sext_operand"
491 : 338041 : (and (match_test "GET_MODE (op) != VOIDmode")
492 : : (match_operand 0 "x86_64_general_operand")))
493 : :
494 : : ;; Return true if OP is non-VOIDmode general operand. This predicate
495 : 11471 : ;; is used in sign-extending conversion operations that require
496 : : ;; non-VOIDmode immediate operands.
497 : 11471 : (define_predicate "sext_operand"
498 : 11471 : (and (match_test "GET_MODE (op) != VOIDmode")
499 : : (match_operand 0 "general_operand")))
500 : :
501 : : ;; Return true if OP is representable on x86_64 as zero-extended operand.
502 : 3911210 : ;; This predicate is used in zero-extending conversion operations that
503 : : ;; require non-VOIDmode immediate operands.
504 : 3911210 : (define_predicate "x86_64_zext_operand"
505 : 3911210 : (if_then_else (match_test "TARGET_64BIT")
506 : : (ior (match_operand 0 "nonimmediate_operand")
507 : : (and (match_operand 0 "x86_64_zext_immediate_operand")
508 : 111688 : (match_test "GET_MODE (op) != VOIDmode")))
509 : : (match_operand 0 "nonimmediate_operand")))
510 : :
511 : : ;; Return true if OP is general operand representable on x86_64
512 : 2457606 : ;; as either sign extended or zero extended constant.
513 : : (define_predicate "x86_64_szext_general_operand"
514 : 2457606 : (if_then_else (match_test "TARGET_64BIT")
515 : : (ior (match_operand 0 "nonimmediate_operand")
516 : : (match_operand 0 "x86_64_immediate_operand")
517 : : (match_operand 0 "x86_64_zext_immediate_operand"))
518 : 29912613 : (match_operand 0 "general_operand")))
519 : :
520 : 29912613 : ;; Return true if OP is nonmemory operand representable on x86_64.
521 : : (define_predicate "x86_64_nonmemory_operand"
522 : 29912613 : (if_then_else (match_test "TARGET_64BIT")
523 : : (ior (match_operand 0 "register_operand")
524 : : (match_operand 0 "x86_64_immediate_operand"))
525 : : (match_operand 0 "nonmemory_operand")))
526 : 19357 :
527 : : ;; Return true if OP is nonmemory operand representable on x86_64.
528 : 19357 : (define_predicate "x86_64_szext_nonmemory_operand"
529 : 19357 : (if_then_else (match_test "TARGET_64BIT")
530 : : (ior (match_operand 0 "register_operand")
531 : : (match_operand 0 "x86_64_immediate_operand")
532 : : (match_operand 0 "x86_64_zext_immediate_operand"))
533 : 171972568 : (match_operand 0 "nonmemory_operand")))
534 : :
535 : : ;; Return true when operand is PIC expression that can be computed by lea
536 : : ;; operation.
537 : : (define_predicate "pic_32bit_operand"
538 : : (match_code "const,symbol_ref,label_ref")
539 : : {
540 : 171972568 : if (!flag_pic)
541 : : return false;
542 : :
543 : : /* Rule out relocations that translate into 64bit constants. */
544 : 7882859 : if (TARGET_64BIT && GET_CODE (op) == CONST)
545 : : {
546 : 146105 : op = XEXP (op, 0);
547 : 146105 : if (GET_CODE (op) == PLUS && CONST_INT_P (XEXP (op, 1)))
548 : 144974 : op = XEXP (op, 0);
549 : 146105 : if (GET_CODE (op) == UNSPEC
550 : 1131 : && (XINT (op, 1) == UNSPEC_GOTOFF
551 : 1131 : || XINT (op, 1) == UNSPEC_GOT))
552 : : return false;
553 : : }
554 : :
555 : 7882187 : return symbolic_operand (op, mode);
556 : : })
557 : :
558 : : ;; Return true if OP is nonmemory operand acceptable by movabs patterns.
559 : 1256431889 : (define_predicate "x86_64_movabs_operand"
560 : : (and (match_operand 0 "nonmemory_operand")
561 : 1256431889 : (not (match_operand 0 "pic_32bit_operand"))))
562 : :
563 : 171972568 : ;; Return true if OP is either a symbol reference or a sum of a symbol
564 : 171972568 : ;; reference and a constant.
565 : 171972568 : (define_predicate "symbolic_operand"
566 : 171972568 : (match_code "symbol_ref,label_ref,const")
567 : : {
568 : 8238724 : switch (GET_CODE (op))
569 : : {
570 : 171972568 : case SYMBOL_REF:
571 : 171972568 : case LABEL_REF:
572 : 173892 : return true;
573 : :
574 : 32663 : case CONST:
575 : 32663 : op = XEXP (op, 0);
576 : 490324647 : if (SYMBOL_REF_P (op)
577 : 32663 : || LABEL_REF_P (op)
578 : 490324647 : || (GET_CODE (op) == UNSPEC
579 : 7968 : && (XINT (op, 1) == UNSPEC_GOT
580 : 7968 : || XINT (op, 1) == UNSPEC_GOTOFF
581 : 172 : || XINT (op, 1) == UNSPEC_PCREL
582 : 8238896 : || XINT (op, 1) == UNSPEC_GOTPCREL)))
583 : : return true;
584 : 24839 : if (GET_CODE (op) != PLUS
585 : 24695 : || !CONST_INT_P (XEXP (op, 1)))
586 : : return false;
587 : :
588 : 24695 : op = XEXP (op, 0);
589 : 24695 : if (SYMBOL_REF_P (op)
590 : 24695 : || LABEL_REF_P (op))
591 : : return true;
592 : : /* Only @GOTOFF gets offsets. */
593 : 2126 : if (GET_CODE (op) != UNSPEC
594 : 2126 : || XINT (op, 1) != UNSPEC_GOTOFF)
595 : : return false;
596 : :
597 : 2126 : op = XVECEXP (op, 0, 0);
598 : 2126 : if (SYMBOL_REF_P (op)
599 : 2126 : || LABEL_REF_P (op))
600 : 2126 : return true;
601 : : return false;
602 : :
603 : 0 : default:
604 : 0 : gcc_unreachable ();
605 : : }
606 : : })
607 : :
608 : : ;; Return true if OP is a symbolic operand that resolves locally.
609 : 15579224 : (define_predicate "local_symbolic_operand"
610 : : (match_code "const,label_ref,symbol_ref")
611 : 15579224 : {
612 : 2902218 : if (GET_CODE (op) == CONST
613 : 16103 : && GET_CODE (XEXP (op, 0)) == PLUS
614 : 8347 : && CONST_INT_P (XEXP (XEXP (op, 0), 1)))
615 : 8347 : op = XEXP (XEXP (op, 0), 0);
616 : 8238724 :
617 : 2902218 : if (LABEL_REF_P (op))
618 : : return true;
619 : :
620 : 2862278 : if (!SYMBOL_REF_P (op))
621 : 8238724 : return false;
622 : 530744 :
623 : 2852396 : if (SYMBOL_REF_TLS_MODEL (op))
624 : : return false;
625 : :
626 : 2902218 : /* Dll-imported symbols are always external. */
627 : 2852396 : if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
628 : : return false;
629 : 2852396 : if (SYMBOL_REF_LOCAL_P (op))
630 : : return true;
631 : :
632 : : /* There is, however, a not insubstantial body of code in the rest of
633 : : the compiler that assumes it can just stick the results of
634 : : ASM_GENERATE_INTERNAL_LABEL in a symbol_ref and have done. */
635 : : /* ??? This is a hack. Should update the body of the compiler to
636 : : always create a DECL an invoke targetm.encode_section_info. */
637 : 92695 : if (strncmp (XSTR (op, 0), internal_label_prefix,
638 : : internal_label_prefix_len) == 0)
639 : 0 : return true;
640 : :
641 : : return false;
642 : : })
643 : :
644 : : (define_predicate "local_func_symbolic_operand"
645 : 2910565 : (match_operand 0 "local_symbolic_operand")
646 : : {
647 : 2910565 : if (GET_CODE (op) == CONST
648 : 0 : && GET_CODE (XEXP (op, 0)) == PLUS
649 : 0 : && CONST_INT_P (XEXP (XEXP (op, 0), 1)))
650 : 0 : op = XEXP (XEXP (op, 0), 0);
651 : 2902218 :
652 : 2902230 : if (SYMBOL_REF_P (op)
653 : 12 : && !SYMBOL_REF_FUNCTION_P (op))
654 : 0 : return false;
655 : :
656 : 2902218 : return true;
657 : 2902218 : })
658 : 2799633 :
659 : : ;; Test for a legitimate @GOTOFF operand.
660 : 30 : ;;
661 : : ;; VxWorks does not impose a fixed gap between segments; the run-time
662 : 42 : ;; gap can be different from the object-file gap. We therefore can't
663 : 12 : ;; use @GOTOFF unless we are absolutely sure that the symbol is in the
664 : : ;; same segment as the GOT. Unfortunately, the flexibility of linker
665 : : ;; scripts means that we can't be sure of that in general, so assume
666 : : ;; @GOTOFF is not valid on VxWorks, except with the large code model.
667 : 2910502 : ;; The comments above seem to apply only to VxWorks releases before 7.
668 : : (define_predicate "gotoff_operand"
669 : 2910502 : (and (ior (not (match_test "TARGET_VXWORKS_VAROFF"))
670 : : (match_test "ix86_cmodel == CM_LARGE")
671 : 2910502 : (match_test "ix86_cmodel == CM_LARGE_PIC"))
672 : : (match_operand 0 "local_symbolic_operand")))
673 : :
674 : : ;; Test for various thread-local symbols.
675 : 30527 : (define_special_predicate "tls_symbolic_operand"
676 : : (and (match_code "symbol_ref")
677 : 30527 : (match_test "SYMBOL_REF_TLS_MODEL (op)")))
678 : :
679 : : (define_special_predicate "tls_modbase_operand"
680 : : (and (match_code "symbol_ref")
681 : 63 : (match_test "op == ix86_tls_module_base ()")))
682 : :
683 : 126 : (define_predicate "tls_address_pattern"
684 : : (and (match_code "set,parallel,unspec,unspec_volatile")
685 : 236082433 : (match_test "ix86_tls_address_pattern_p (op)")))
686 : 0 :
687 : 236082433 : ;; Test for a pc-relative call operand
688 : : (define_predicate "constant_call_address_operand"
689 : 236082433 : (match_code "symbol_ref")
690 : 367134512 : {
691 : 131051870 : if (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC
692 : 131051864 : || flag_force_indirect_call
693 : 262102439 : || (TARGET_INDIRECT_BRANCH_REGISTER
694 : 1022 : && ix86_nopic_noplt_attribute_p (op)))
695 : 1743 : return false;
696 : : if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
697 : 236082433 : return false;
698 : : return true;
699 : : })
700 : :
701 : : ;; True for any non-virtual and non-eliminable register. Used in places where
702 : 137086857 : ;; instantiation of such a register may cause the pattern to not be recognized.
703 : : (define_predicate "register_no_elim_operand"
704 : 131052079 : (match_operand 0 "register_operand")
705 : 268137193 : {
706 : 95405964 : if (SUBREG_P (op))
707 : 65116 : op = SUBREG_REG (op);
708 : :
709 : : /* Before reload, we can allow (SUBREG (MEM...)) as a register operand
710 : 20473543 : because it is guaranteed to be reloaded into one. */
711 : 20473543 : if (MEM_P (op))
712 : : return true;
713 : :
714 : 20473543 : return !(op == arg_pointer_rtx
715 : 20444062 : || op == frame_pointer_rtx
716 : 20443537 : || VIRTUAL_REGISTER_P (op));
717 : : })
718 : :
719 : : ;; Similarly, but include the stack pointer. This is used
720 : 25137026 : ;; to prevent esp from being used as an index reg.
721 : : (define_predicate "register_no_SP_operand"
722 : 25137026 : (match_operand 0 "register_operand")
723 : 20473543 : {
724 : 336352 : if (SUBREG_P (op))
725 : 7968 : op = SUBREG_REG (op);
726 : :
727 : 336352 : /* Before reload, we can allow (SUBREG (MEM...)) as a register operand
728 : : because it is guaranteed to be reloaded into one. */
729 : 336352 : if (MEM_P (op))
730 : : return true;
731 : :
732 : 336352 : return !(op == arg_pointer_rtx
733 : 336352 : || op == frame_pointer_rtx
734 : 336352 : || op == stack_pointer_rtx
735 : 336352 : || VIRTUAL_REGISTER_P (op));
736 : : })
737 : :
738 : : ;; P6 processors will jump to the address after the decrement when %esp
739 : 372168 : ;; is used as a call operand, so they will execute return address as a code.
740 : : ;; See Pentium Pro errata 70, Pentium 2 errata A33 and Pentium 3 errata E17.
741 : 372168 :
742 : 336352 : (define_predicate "call_register_operand"
743 : 1963276 : (if_then_else (match_test "TARGET_64BIT")
744 : : (match_operand 0 "register_operand")
745 : : (match_operand 0 "register_no_SP_operand")))
746 : 1963276 :
747 : 18534329 : ;; Return false if this is any eliminable register. Otherwise general_operand.
748 : 1963276 : (define_predicate "general_no_elim_operand"
749 : 18534329 : (if_then_else (match_code "reg,subreg")
750 : : (match_operand 0 "register_no_elim_operand")
751 : : (match_operand 0 "general_operand")))
752 : :
753 : 12196281 : ;; Return false if this is any eliminable register. Otherwise
754 : : ;; register_operand or a constant.
755 : 12196281 : (define_predicate "nonmemory_no_elim_operand"
756 : : (ior (match_operand 0 "register_no_elim_operand")
757 : : (match_operand 0 "immediate_operand")))
758 : :
759 : 738490 : ;; Test for a valid operand for indirect branch.
760 : : (define_predicate "indirect_branch_operand"
761 : 738490 : (ior (match_operand 0 "register_operand")
762 : 665607 : (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
763 : 665580 : (not (match_test "TARGET_X32"))
764 : : (match_operand 0 "memory_operand"))))
765 : :
766 : : ;; Return true if OP is a memory operands that can be used in sibcalls.
767 : 24543 : ;; Since sibcall never returns, we can only use call-clobbered register
768 : : ;; as GOT base. Allow GOT slot here only with pseudo register as GOT
769 : : ;; base. Properly handle sibcall over GOT slot with *sibcall_GOT_32
770 : : ;; and *sibcall_value_GOT_32 patterns.
771 : : (define_predicate "sibcall_memory_operand"
772 : : (match_operand 0 "memory_operand")
773 : : {
774 : 24543 : op = XEXP (op, 0);
775 : 24543 : if (CONSTANT_P (op))
776 : : return true;
777 : 11480 : if (GET_CODE (op) == PLUS && REG_P (XEXP (op, 0)))
778 : : {
779 : 10268 : int regno = REGNO (XEXP (op, 0));
780 : 10268 : if (!HARD_REGISTER_NUM_P (regno) || call_used_or_fixed_reg_p (regno))
781 : : {
782 : 8340 : op = XEXP (op, 1);
783 : 8340 : if (GOT32_symbol_operand (op, VOIDmode))
784 : : return true;
785 : : }
786 : : }
787 : : return false;
788 : : })
789 : :
790 : : ;; Return true if OP is a GOT memory operand.
791 : 1394027 : (define_predicate "GOT_memory_operand"
792 : : (and (match_operand 0 "memory_operand")
793 : 1418570 : (match_code "const" "0")
794 : 24543 : (match_code "unspec" "00")
795 : 563 : (match_test "XINT (XEXP (XEXP (op, 0), 0), 1) == UNSPEC_GOTPCREL")))
796 : :
797 : : ;; Test for a valid operand for a call instruction.
798 : 461 : ;; Allow constant call address operands in Pmode only.
799 : 47737263 : (define_special_predicate "call_insn_operand"
800 : 461 : (ior (match_test "constant_call_address_operand
801 : 53961591 : (op, mode == VOIDmode ? mode : Pmode)")
802 : : (match_operand 0 "call_register_operand")
803 : 919487 : (match_test "satisfies_constraint_Bw (op)")))
804 : :
805 : : ;; Similarly, but for tail calls, in which we cannot allow memory references.
806 : : (define_special_predicate "sibcall_insn_operand"
807 : 1247480 : (ior (match_test "constant_call_address_operand
808 : 1445742 : (op, mode == VOIDmode ? mode : Pmode)")
809 : 1247480 : (match_operand 0 "register_no_elim_operand")
810 : 162442 : (match_test "satisfies_constraint_Bs (op)")))
811 : :
812 : : ;; Return true if OP is a 32-bit GOT symbol operand.
813 : : (define_predicate "GOT32_symbol_operand"
814 : 10197 : (and (match_code "const")
815 : : (match_code "unspec" "0")
816 : 10197 : (match_test "XINT (XEXP (op, 0), 1) == UNSPEC_GOT")))
817 : 0 :
818 : : ;; Match exactly zero.
819 : : (define_predicate "const0_operand"
820 : : (match_code "const_int,const_double,const_vector")
821 : 135547679 : {
822 : 135547679 : if (mode == VOIDmode)
823 : 21153176 : mode = GET_MODE (op);
824 : 135547679 : return op == CONST0_RTX (mode);
825 : : })
826 : :
827 : : ;; Match one or a vector with all elements equal to one.
828 : 966808885 : (define_predicate "const1_operand"
829 : : (match_code "const_int,const_double,const_vector")
830 : 966808885 : {
831 : 12899887 : if (mode == VOIDmode)
832 : 12897053 : mode = GET_MODE (op);
833 : 148447566 : return op == CONST1_RTX (mode);
834 : 135547679 : })
835 : 135547679 :
836 : : ;; Match exactly -1.
837 : 13843411 : (define_predicate "constm1_operand"
838 : : (and (match_code "const_int")
839 : 149391090 : (match_test "op == constm1_rtx")))
840 : 135547679 :
841 : 62158180 : ;; Match 0 or -1.
842 : 12899887 : (define_predicate "const0_or_m1_operand"
843 : 12902761 : (ior (match_operand 0 "const0_operand")
844 : 12899887 : (match_operand 0 "constm1_operand")))
845 : 2874 :
846 : : ;; Match exactly eight.
847 : : (define_predicate "const8_operand"
848 : 12899887 : (and (match_code "const_int")
849 : 12899887 : (match_test "INTVAL (op) == 8")))
850 : 2807 :
851 : 218792 : ;; Match exactly 128.
852 : : (define_predicate "const128_operand"
853 : 26634089 : (and (match_code "const_int")
854 : 240904271 : (match_test "INTVAL (op) == 128")))
855 : 26634089 :
856 : 191794334 : ;; Match exactly 0x0FFFFFFFF in anddi as a zero-extension operation
857 : : (define_predicate "const_32bit_mask"
858 : 2739644 : (and (match_code "const_int")
859 : 1840342 : (match_test "trunc_int_for_mode (INTVAL (op), DImode)
860 : 4579986 : == HOST_WIDE_INT_C (0xffffffff)")))
861 : :
862 : : ;; Match 2, 4, or 8. Used for leal multiplicands.
863 : : (define_predicate "const248_operand"
864 : 295573 : (match_code "const_int")
865 : : {
866 : 295573 : HOST_WIDE_INT i = INTVAL (op);
867 : 295573 : return i == 2 || i == 4 || i == 8;
868 : : })
869 : :
870 : : ;; Match 1, 2, or 3. Used for lea shift amounts.
871 : 1014167 : (define_predicate "const123_operand"
872 : : (match_code "const_int")
873 : 1014167 : {
874 : 1232276 : HOST_WIDE_INT i = INTVAL (op);
875 : 218109 : return i == 1 || i == 2 || i == 3;
876 : : })
877 : :
878 : 218109 : ;; Match 2, 3, 6, or 7
879 : 226570 : (define_predicate "const2367_operand"
880 : : (match_code "const_int")
881 : 226570 : {
882 : 218109 : HOST_WIDE_INT i = INTVAL (op);
883 : 0 : return i == 2 || i == 3 || i == 6 || i == 7;
884 : : })
885 : :
886 : 0 : ;; Match 1, 2, 4, or 8
887 : 0 : (define_predicate "const1248_operand"
888 : : (match_code "const_int")
889 : 0 : {
890 : 110123 : HOST_WIDE_INT i = INTVAL (op);
891 : 110123 : return i == 1 || i == 2 || i == 4 || i == 8;
892 : : })
893 : :
894 : 110123 : ;; Match 3, 5, or 9. Used for leal multiplicands.
895 : 491553 : (define_predicate "const359_operand"
896 : : (match_code "const_int")
897 : 491553 : {
898 : 540232 : HOST_WIDE_INT i = INTVAL (op);
899 : 48679 : return i == 3 || i == 5 || i == 9;
900 : : })
901 : :
902 : 48679 : ;; Match 4 or 8 to 11. Used for embeded rounding.
903 : 203522 : (define_predicate "const_4_or_8_to_11_operand"
904 : : (match_code "const_int")
905 : 203522 : {
906 : 284441 : HOST_WIDE_INT i = INTVAL (op);
907 : 80919 : return i == 4 || (i >= 8 && i <= 11);
908 : : })
909 : :
910 : 80919 : ;; Match 4 or 8. Used for SAE.
911 : 80921 : (define_predicate "const48_operand"
912 : : (match_code "const_int")
913 : 80921 : {
914 : 80919 : HOST_WIDE_INT i = INTVAL (op);
915 : 65337 : return i == 4 || i == 8;
916 : : })
917 : :
918 : 65337 : ;; Match 0 or 1.
919 : 65337 : (define_predicate "const_0_to_1_operand"
920 : : (and (match_code "const_int")
921 : 65337 : (ior (match_test "op == const0_rtx")
922 : 287948 : (match_test "op == const1_rtx"))))
923 : :
924 : : ;; Match 0 to 3.
925 : : (define_predicate "const_0_to_3_operand"
926 : 7150599 : (and (match_code "const_int")
927 : 13531175 : (match_test "IN_RANGE (INTVAL (op), 0, 3)")))
928 : 7150599 :
929 : : ;; Match 0 to 4.
930 : : (define_predicate "const_0_to_4_operand"
931 : 0 : (and (match_code "const_int")
932 : 0 : (match_test "IN_RANGE (INTVAL (op), 0, 4)")))
933 : 0 :
934 : : ;; Match 0 to 5.
935 : : (define_predicate "const_0_to_5_operand"
936 : 0 : (and (match_code "const_int")
937 : 0 : (match_test "IN_RANGE (INTVAL (op), 0, 5)")))
938 : 0 :
939 : : ;; Match 0 to 7.
940 : : (define_predicate "const_0_to_7_operand"
941 : 786788 : (and (match_code "const_int")
942 : 1573562 : (match_test "IN_RANGE (INTVAL (op), 0, 7)")))
943 : 786788 :
944 : : ;; Match 0 to 15.
945 : : (define_predicate "const_0_to_15_operand"
946 : 85424 : (and (match_code "const_int")
947 : 170832 : (match_test "IN_RANGE (INTVAL (op), 0, 15)")))
948 : 85424 :
949 : : ;; Match 0 to 31.
950 : : (define_predicate "const_0_to_31_operand"
951 : 63414 : (and (match_code "const_int")
952 : 126260 : (match_test "IN_RANGE (INTVAL (op), 0, 31)")))
953 : 63414 :
954 : : ;; Match 0 to 63.
955 : : (define_predicate "const_0_to_63_operand"
956 : 29548 : (and (match_code "const_int")
957 : 57331 : (match_test "IN_RANGE (INTVAL (op), 0, 63)")))
958 : 29548 :
959 : : ;; Match 0 to 127.
960 : : (define_predicate "const_0_to_127_operand"
961 : 9824 : (and (match_code "const_int")
962 : 18612 : (match_test "IN_RANGE (INTVAL (op), 0, 127)")))
963 : 9824 :
964 : : ;; Match 0 to 255.
965 : : (define_predicate "const_0_to_255_operand"
966 : 8934612 : (and (match_code "const_int")
967 : 17834603 : (match_test "IN_RANGE (INTVAL (op), 0, 255)")))
968 : 8934612 :
969 : : ;; Match (0 to 255) * 8
970 : : (define_predicate "const_0_to_255_mul_8_operand"
971 : 433905 : (match_code "const_int")
972 : : {
973 : 433905 : unsigned HOST_WIDE_INT val = INTVAL (op);
974 : 433905 : return val <= 255*8 && val % 8 == 0;
975 : : })
976 : :
977 : : ;; Match 1 to 255 except multiples of 8
978 : 433907 : (define_predicate "const_0_to_255_not_mul_8_operand"
979 : : (match_code "const_int")
980 : 433907 : {
981 : 1260714 : unsigned HOST_WIDE_INT val = INTVAL (op);
982 : 826793 : return val <= 255 && val % 8 != 0;
983 : : })
984 : :
985 : 826807 : ;; Return true if OP is CONST_INT >= 1 and <= 31 (a valid operand
986 : 826807 : ;; for shift & compare patterns, as shifting by 0 does not change flags).
987 : : (define_predicate "const_1_to_31_operand"
988 : 826807 : (and (match_code "const_int")
989 : 873174 : (match_test "IN_RANGE (INTVAL (op), 1, 31)")))
990 : :
991 : : ;; Return true if OP is CONST_INT >= 1 and <= 63 (a valid operand
992 : : ;; for 64bit shift & compare patterns, as shifting by 0 does not change flags).
993 : 96454 : (define_predicate "const_1_to_63_operand"
994 : : (and (match_code "const_int")
995 : 96454 : (match_test "IN_RANGE (INTVAL (op), 1, 63)")))
996 : :
997 : : ;; Match 2 or 3.
998 : : (define_predicate "const_2_to_3_operand"
999 : 69908 : (and (match_code "const_int")
1000 : 139816 : (match_test "IN_RANGE (INTVAL (op), 2, 3)")))
1001 : 69908 :
1002 : : ;; Match 4 to 5.
1003 : : (define_predicate "const_4_to_5_operand"
1004 : 6142 : (and (match_code "const_int")
1005 : 12284 : (match_test "IN_RANGE (INTVAL (op), 4, 5)")))
1006 : 6142 :
1007 : : ;; Match 4 to 7.
1008 : : (define_predicate "const_4_to_7_operand"
1009 : 950406 : (and (match_code "const_int")
1010 : 1900812 : (match_test "IN_RANGE (INTVAL (op), 4, 7)")))
1011 : 950406 :
1012 : : ;; Match 6 to 7.
1013 : : (define_predicate "const_6_to_7_operand"
1014 : 698 : (and (match_code "const_int")
1015 : 1396 : (match_test "IN_RANGE (INTVAL (op), 6, 7)")))
1016 : 698 :
1017 : : ;; Match 8 to 9.
1018 : : (define_predicate "const_8_to_9_operand"
1019 : 508 : (and (match_code "const_int")
1020 : 1016 : (match_test "IN_RANGE (INTVAL (op), 8, 9)")))
1021 : 508 :
1022 : : ;; Match 8 to 11.
1023 : : (define_predicate "const_8_to_11_operand"
1024 : 42798 : (and (match_code "const_int")
1025 : 85596 : (match_test "IN_RANGE (INTVAL (op), 8, 11)")))
1026 : 42798 :
1027 : : ;; Match 8 to 15.
1028 : : (define_predicate "const_8_to_15_operand"
1029 : 40968 : (and (match_code "const_int")
1030 : 81936 : (match_test "IN_RANGE (INTVAL (op), 8, 15)")))
1031 : 40968 :
1032 : : ;; Match 10 to 11.
1033 : : (define_predicate "const_10_to_11_operand"
1034 : 265 : (and (match_code "const_int")
1035 : 530 : (match_test "IN_RANGE (INTVAL (op), 10, 11)")))
1036 : 265 :
1037 : : ;; Match 12 to 13.
1038 : : (define_predicate "const_12_to_13_operand"
1039 : 265 : (and (match_code "const_int")
1040 : 530 : (match_test "IN_RANGE (INTVAL (op), 12, 13)")))
1041 : 265 :
1042 : : ;; Match 12 to 15.
1043 : : (define_predicate "const_12_to_15_operand"
1044 : 28870 : (and (match_code "const_int")
1045 : 57740 : (match_test "IN_RANGE (INTVAL (op), 12, 15)")))
1046 : 28870 :
1047 : : ;; Match 14 to 15.
1048 : : (define_predicate "const_14_to_15_operand"
1049 : 265 : (and (match_code "const_int")
1050 : 530 : (match_test "IN_RANGE (INTVAL (op), 14, 15)")))
1051 : 265 :
1052 : : ;; Match 16 to 19.
1053 : : (define_predicate "const_16_to_19_operand"
1054 : 1518 : (and (match_code "const_int")
1055 : 3036 : (match_test "IN_RANGE (INTVAL (op), 16, 19)")))
1056 : 1518 :
1057 : : ;; Match 16 to 31.
1058 : : (define_predicate "const_16_to_31_operand"
1059 : 10211 : (and (match_code "const_int")
1060 : 20422 : (match_test "IN_RANGE (INTVAL (op), 16, 31)")))
1061 : 10211 :
1062 : : ;; Match 20 to 23.
1063 : : (define_predicate "const_20_to_23_operand"
1064 : 1126 : (and (match_code "const_int")
1065 : 2252 : (match_test "IN_RANGE (INTVAL (op), 20, 23)")))
1066 : 1126 :
1067 : : ;; Match 24 to 27.
1068 : : (define_predicate "const_24_to_27_operand"
1069 : 1126 : (and (match_code "const_int")
1070 : 2252 : (match_test "IN_RANGE (INTVAL (op), 24, 27)")))
1071 : 1126 :
1072 : : ;; Match 28 to 31.
1073 : : (define_predicate "const_28_to_31_operand"
1074 : 1126 : (and (match_code "const_int")
1075 : 2252 : (match_test "IN_RANGE (INTVAL (op), 28, 31)")))
1076 : 1126 :
1077 : : (define_predicate "cmpps_imm_operand"
1078 : : (ior (match_operand 0 "const_0_to_7_operand")
1079 : 3987 : (and (match_test "TARGET_AVX")
1080 : : (match_operand 0 "const_0_to_31_operand"))))
1081 : 59050 :
1082 : : ;; True if this is a constant appropriate for an increment or decrement.
1083 : 99569597 : (define_predicate "incdec_operand"
1084 : : (match_code "const_int")
1085 : : {
1086 : : /* On Pentium4, the inc and dec operations causes extra dependency on flag
1087 : : registers, since carry flag is not set. */
1088 : 99569597 : if (!TARGET_USE_INCDEC && !optimize_insn_for_size_p ())
1089 : : return false;
1090 : 2565386 : return op == const1_rtx || op == constm1_rtx;
1091 : : })
1092 : :
1093 : : ;; True for registers, or const_int_operand, used to vec_setm expander.
1094 : 122570230 : (define_predicate "vec_setm_sse41_operand"
1095 : : (ior (and (match_operand 0 "register_operand")
1096 : 222140520 : (match_test "TARGET_SSE4_1"))
1097 : 99569597 : (match_code "const_int")))
1098 : :
1099 : : (define_predicate "vec_setm_avx2_operand"
1100 : : (ior (and (match_operand 0 "register_operand")
1101 : 929 : (match_test "TARGET_AVX2"))
1102 : 0 : (match_code "const_int")))
1103 : 1164 :
1104 : : (define_predicate "vec_setm_mmx_operand"
1105 : : (ior (and (match_operand 0 "register_operand")
1106 : 22 : (match_test "TARGET_SSE4_1")
1107 : 232 : (match_test "TARGET_MMX_WITH_SSE"))
1108 : 232 : (match_code "const_int")))
1109 : :
1110 : : ;; True for registers, or 1 or -1. Used to optimize double-word shifts.
1111 : : (define_predicate "reg_or_pm1_operand"
1112 : 4277011 : (ior (match_operand 0 "register_operand")
1113 : : (and (match_code "const_int")
1114 : 4277011 : (ior (match_test "op == const1_rtx")
1115 : 270735 : (match_test "op == constm1_rtx")))))
1116 : 255363 :
1117 : : ;; True for registers, or (not: registers). Used to optimize 3-operand
1118 : : ;; bitwise operation.
1119 : : (define_predicate "regmem_or_bitnot_regmem_operand"
1120 : 660648 : (ior (match_operand 0 "nonimmediate_operand")
1121 : : (and (match_code "not")
1122 : 660648 : (match_test "nonimmediate_operand (XEXP (op, 0), mode)"))))
1123 : 26358 :
1124 : : ;; True for expressions valid for 3-operand ternlog instructions.
1125 : : (define_predicate "ternlog_operand"
1126 : : (and (match_code "not,and,ior,xor")
1127 : 2185243 : (match_test "ix86_ternlog_operand_p (op)")))
1128 : 232266 :
1129 : 65682896 : ;; True if OP is acceptable as operand of DImode shift expander.
1130 : : (define_predicate "shiftdi_operand"
1131 : 1322302 : (if_then_else (match_test "TARGET_64BIT")
1132 : 3507545 : (match_operand 0 "nonimmediate_operand")
1133 : 2185243 : (match_operand 0 "register_operand")))
1134 : 1322302 :
1135 : 2790929 : (define_predicate "ashldi_input_operand"
1136 : 605686 : (if_then_else (match_test "TARGET_64BIT")
1137 : 605686 : (match_operand 0 "nonimmediate_operand")
1138 : : (match_operand 0 "reg_or_pm1_operand")))
1139 : 2185243 :
1140 : 562828 : ;; Return true if OP is a vector load from the constant pool with just
1141 : : ;; the first element nonzero.
1142 : : (define_predicate "zero_extended_scalar_load_operand"
1143 : : (match_code "mem")
1144 : : {
1145 : 562828 : unsigned n_elts;
1146 : 562828 : op = avoid_constant_pool_reference (op);
1147 : :
1148 : 562828 : if (!CONST_VECTOR_P (op))
1149 : : return false;
1150 : :
1151 : 82605 : n_elts = CONST_VECTOR_NUNITS (op);
1152 : :
1153 : 168419 : for (n_elts--; n_elts > 0; n_elts--)
1154 : : {
1155 : 122910 : rtx elt = CONST_VECTOR_ELT (op, n_elts);
1156 : 245820 : if (elt != CONST0_RTX (GET_MODE_INNER (GET_MODE (op))))
1157 : : return false;
1158 : : }
1159 : : return true;
1160 : : })
1161 : :
1162 : : /* Return true if operand is a float vector constant that is all ones. */
1163 : 1878216 : (define_predicate "float_vector_all_ones_operand"
1164 : : (match_code "const_vector,mem")
1165 : 562828 : {
1166 : 1923725 : mode = GET_MODE (op);
1167 : 45509 : if (!FLOAT_MODE_P (mode)
1168 : 13862374 : || (MEM_P (op)
1169 : 11965066 : && (!SYMBOL_REF_P (XEXP (op, 0))
1170 : 1487491 : || !CONSTANT_POOL_ADDRESS_P (XEXP (op, 0)))))
1171 : 16902255 : return false;
1172 : :
1173 : 3137020 : if (MEM_P (op))
1174 : : {
1175 : 1239712 : op = get_pool_constant (XEXP (op, 0));
1176 : 1239712 : if (!CONST_VECTOR_P (op))
1177 : : return false;
1178 : :
1179 : 1239708 : if (GET_MODE (op) != mode
1180 : 5663 : && INTEGRAL_MODE_P (GET_MODE (op))
1181 : 5663 : && op == CONSTM1_RTX (GET_MODE (op)))
1182 : : return true;
1183 : : }
1184 : :
1185 : 3137016 : rtx first = XVECEXP (op, 0, 0);
1186 : 8918992 : for (int i = 1; i != GET_MODE_NUNITS (GET_MODE (op)); i++)
1187 : : {
1188 : 3956467 : rtx tmp = XVECEXP (op, 0, i);
1189 : 3956467 : if (!rtx_equal_p (tmp, first))
1190 : : return false;
1191 : : }
1192 : 503029 : if (GET_MODE (first) == E_SFmode)
1193 : : {
1194 : 230937 : long l;
1195 : 230937 : REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (first), l);
1196 : 230937 : return (l & 0xffffffff) == 0xffffffff;
1197 : : }
1198 : 272092 : else if (GET_MODE (first) == E_DFmode)
1199 : : {
1200 : 265295 : long l[2];
1201 : 265295 : REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (first), l);
1202 : 265295 : return ((l[0] & 0xffffffff) == 0xffffffff
1203 : 265295 : && (l[1] & 0xffffffff) == 0xffffffff);
1204 : : }
1205 : : else
1206 : : return false;
1207 : : })
1208 : :
1209 : : /* Return true if operand is an integral vector constant that is all ones. */
1210 : 55059878 : (define_predicate "vector_all_ones_operand"
1211 : : (and (match_code "const_vector")
1212 : 68133030 : (match_test "INTEGRAL_MODE_P (GET_MODE (op))")
1213 : 11239974 : (match_test "op == CONSTM1_RTX (GET_MODE (op))")))
1214 : 843248 :
1215 : 16902255 : /* Return true if operand is a vector constant that is all ones. */
1216 : 16902255 : (define_predicate "int_float_vector_all_ones_operand"
1217 : : (ior (match_operand 0 "vector_all_ones_operand")
1218 : 9027885 : (match_operand 0 "float_vector_all_ones_operand")
1219 : 0 : (match_test "op == constm1_rtx")))
1220 : 9027885 :
1221 : 16902255 : /* Return true if operand is an 128/256bit all ones vector
1222 : 3179 : that zero-extends to 256/512bit. */
1223 : : (define_predicate "vector_all_ones_zero_extend_half_operand"
1224 : 11776916 : (match_code "const_vector")
1225 : : {
1226 : 163187996 : mode = GET_MODE (op);
1227 : 11776916 : if (GET_MODE_CLASS (mode) != MODE_VECTOR_INT
1228 : 173328386 : || (GET_MODE_SIZE (mode) != 32
1229 : 9805516 : && GET_MODE_SIZE (mode) != 64))
1230 : : return false;
1231 : :
1232 : 516340 : int nelts = CONST_VECTOR_NUNITS (op);
1233 : 590040 : for (int i = 0; i != nelts; i++)
1234 : : {
1235 : 589090 : rtx elt = CONST_VECTOR_ELT (op, i);
1236 : 589090 : if (i < nelts / 2
1237 : 1159500 : && elt != CONSTM1_RTX (GET_MODE_INNER (mode)))
1238 : : return false;
1239 : 84777 : if (i >= nelts / 2
1240 : 103457 : && elt != CONST0_RTX (GET_MODE_INNER (mode)))
1241 : : return false;
1242 : : }
1243 : : return true;
1244 : : })
1245 : :
1246 : : /* Return true if operand is an 128bit all ones vector
1247 : 164885220 : that zero extends to 512bit. */
1248 : : (define_predicate "vector_all_ones_zero_extend_quarter_operand"
1249 : 11776916 : (match_code "const_vector")
1250 : 164886170 : {
1251 : 950 : mode = GET_MODE (op);
1252 : 11775966 : if (GET_MODE_CLASS (mode) != MODE_VECTOR_INT
1253 : 10139440 : || GET_MODE_SIZE (mode) != 64)
1254 : : return false;
1255 : 11775966 :
1256 : 181257 : int nelts = CONST_VECTOR_NUNITS (op);
1257 : 195249 : for (int i = 0; i != nelts; i++)
1258 : : {
1259 : 195161 : rtx elt = CONST_VECTOR_ELT (op, i);
1260 : 195161 : if (i < nelts / 4
1261 : 386832 : && elt != CONSTM1_RTX (GET_MODE_INNER (mode)))
1262 : : return false;
1263 : 16648 : if (i >= nelts / 4
1264 : 20138 : && elt != CONST0_RTX (GET_MODE_INNER (mode)))
1265 : : return false;
1266 : : }
1267 : : return true;
1268 : : })
1269 : :
1270 : : ; Return true when OP is operand acceptable for vector memory operand.
1271 : 164884270 : ; Only AVX can have misaligned memory operand.
1272 : : (define_predicate "vector_memory_operand"
1273 : 11775966 : (and (match_operand 0 "memory_operand")
1274 : 166122925 : (ior (match_test "TARGET_AVX")
1275 : 1238655 : (match_test "MEM_ALIGN (op) >= GET_MODE_ALIGNMENT (mode)"))))
1276 : :
1277 : : ; Return true when OP is register_operand or vector_memory_operand.
1278 : : (define_predicate "vector_operand"
1279 : 18840548 : (ior (match_operand 0 "register_operand")
1280 : : (match_operand 0 "vector_memory_operand")))
1281 : 18840548 :
1282 : : ; Return true when OP is register_operand, vector_memory_operand
1283 : : ; or const_vector.
1284 : : (define_predicate "vector_or_const_vector_operand"
1285 : 13796 : (ior (match_operand 0 "register_operand")
1286 : : (match_operand 0 "vector_memory_operand")
1287 : 13796 : (match_code "const_vector")))
1288 : 7996 :
1289 : : ; Return true when OP is register_operand, vector_memory_operand,
1290 : : ; const_vector zero or const_vector all ones.
1291 : : (define_predicate "vector_or_0_or_1s_operand"
1292 : 4503 : (ior (match_operand 0 "register_operand")
1293 : : (match_operand 0 "vector_memory_operand")
1294 : 4503 : (match_operand 0 "const0_operand")
1295 : : (match_operand 0 "int_float_vector_all_ones_operand")))
1296 : :
1297 : : (define_predicate "bcst_mem_operand"
1298 : 166308021 : (and (match_code "vec_duplicate")
1299 : 14878 : (and (match_test "TARGET_AVX512F")
1300 : 97428 : (ior (match_test "TARGET_AVX512VL")
1301 : 9300 : (match_test "GET_MODE_SIZE (GET_MODE (op)) == 64")))
1302 : 55692 : (match_test "VALID_BCST_MODE_P (GET_MODE_INNER (GET_MODE (op)))")
1303 : 13890 : (match_test "GET_MODE (XEXP (op, 0))
1304 : 41654 : == GET_MODE_INNER (GET_MODE (op))")
1305 : 166327234 : (match_test "memory_operand (XEXP (op, 0), GET_MODE (XEXP (op, 0)))")))
1306 : 5339 :
1307 : : ; Return true when OP is bcst_mem_operand or vector_memory_operand.
1308 : : (define_predicate "bcst_vector_operand"
1309 : : (ior (match_operand 0 "vector_operand")
1310 : 5148526 : (match_operand 0 "bcst_mem_operand")))
1311 : :
1312 : 5148526 : ;; Return true when OP is either nonimmediate operand, or any
1313 : : ;; CONST_VECTOR.
1314 : : (define_predicate "nonimmediate_or_const_vector_operand"
1315 : : (ior (match_operand 0 "nonimmediate_operand")
1316 : 83698 : (match_code "const_vector")))
1317 : :
1318 : 83698 : (define_predicate "nonimmediate_or_const_vec_dup_operand"
1319 : 12399 : (ior (match_operand 0 "nonimmediate_operand")
1320 : 58 : (match_test "const_vec_duplicate_p (op)")))
1321 : 58 :
1322 : : ;; Return true when OP is either register operand, or any
1323 : 106 : ;; CONST_VECTOR.
1324 : : (define_predicate "reg_or_const_vector_operand"
1325 : 106 : (ior (match_operand 0 "register_operand")
1326 : : (match_code "const_vector")))
1327 : 241 :
1328 : 153 : ;; Return true when OP is CONST_VECTOR which can be converted to a
1329 : : ;; sign extended 32-bit integer.
1330 : : (define_predicate "x86_64_const_vector_operand"
1331 : : (match_code "const_vector")
1332 : 141617 : {
1333 : 141617 : if (mode == VOIDmode)
1334 : 0 : mode = GET_MODE (op);
1335 : 141617 : else if (GET_MODE (op) != mode)
1336 : : return false;
1337 : 339639 : if (GET_MODE_SIZE (mode) > UNITS_PER_WORD)
1338 : : return false;
1339 : 98708 : HOST_WIDE_INT val = ix86_convert_const_vector_to_integer (op, mode);
1340 : 98708 : return trunc_int_for_mode (val, SImode) == val;
1341 : : })
1342 : :
1343 : : (define_predicate "nonimmediate_or_x86_64_const_vector_operand"
1344 : 991770 : (ior (match_operand 0 "nonimmediate_operand")
1345 : : (match_operand 0 "x86_64_const_vector_operand")))
1346 : 141617 :
1347 : 1076124 : ;; Return true when OP is nonimmediate or standard SSE constant.
1348 : 84354 : (define_predicate "nonimmediate_or_sse_const_operand"
1349 : : (ior (match_operand 0 "nonimmediate_operand")
1350 : 24230221 : (match_test "standard_sse_constant_p (op, mode)")))
1351 : 2825976 :
1352 : 4413 : ;; Return true if OP is a register or a zero.
1353 : : (define_predicate "reg_or_0_operand"
1354 : 4413 : (ior (match_operand 0 "register_operand")
1355 : 585209 : (match_operand 0 "const0_operand")))
1356 : :
1357 : 585209 : ; Return true when OP is a nonimmediate or zero.
1358 : 98418408 : (define_predicate "nonimm_or_0_operand"
1359 : : (ior (match_operand 0 "nonimmediate_operand")
1360 : 119822653 : (match_operand 0 "const0_operand")))
1361 : 123564128 :
1362 : : ; Return true when OP is a nonimmediate or zero or all ones.
1363 : 123564128 : (define_predicate "nonimm_or_0_or_1s_operand"
1364 : : (ior (match_operand 0 "nonimmediate_operand")
1365 : : (match_operand 0 "const0_operand")
1366 : : (match_operand 0 "int_float_vector_all_ones_operand")))
1367 : 97651 :
1368 : : ;; Return true for RTX codes that force SImode address.
1369 : 97651 : (define_predicate "SImode_address_operand"
1370 : : (match_code "subreg,zero_extend,and"))
1371 : :
1372 : : ;; Return true if op is a valid address for LEA, and does not contain
1373 : 267449683 : ;; a segment override. Defined as a special predicate to allow
1374 : : ;; mode-less const_int operands pass to address_operand.
1375 : 267449683 : (define_special_predicate "address_no_seg_operand"
1376 : 180752108 : (match_test "address_operand (op, VOIDmode)")
1377 : 65796403 : {
1378 : 66269563 : struct ix86_address parts;
1379 : 66269563 : int ok;
1380 : 473160 :
1381 : 65836296 : if (!CONST_INT_P (op)
1382 : 62873343 : && mode != VOIDmode
1383 : 62873343 : && GET_MODE (op) != mode)
1384 : 473160 : return false;
1385 : 473160 :
1386 : 65796339 : ok = ix86_decompose_address (op, &parts);
1387 : 65796339 : gcc_assert (ok);
1388 : 65796339 : return parts.seg == ADDR_SPACE_GENERIC;
1389 : 65796403 : })
1390 : :
1391 : : ;; Return true if op if a valid base register, displacement or
1392 : 114955705 : ;; sum of base register and displacement for VSIB addressing.
1393 : : (define_predicate "vsib_address_operand"
1394 : 114995598 : (match_test "address_operand (op, VOIDmode)")
1395 : 80547 : {
1396 : 38469 : struct ix86_address parts;
1397 : 39893 : int ok;
1398 : 39893 : rtx disp;
1399 : :
1400 : 39893 : ok = ix86_decompose_address (op, &parts);
1401 : 39893 : gcc_assert (ok);
1402 : 66903 : if (parts.index || parts.seg != ADDR_SPACE_GENERIC)
1403 : 27010 : return false;
1404 : :
1405 : : /* VSIB addressing doesn't support (%rip). */
1406 : 39873 : if (parts.disp)
1407 : 27301836 : {
1408 : 7785 : disp = parts.disp;
1409 : 7785 : if (GET_CODE (disp) == CONST)
1410 : : {
1411 : 151 : disp = XEXP (disp, 0);
1412 : 151 : if (GET_CODE (disp) == PLUS)
1413 : 151 : disp = XEXP (disp, 0);
1414 : 151 : if (GET_CODE (disp) == UNSPEC)
1415 : 0 : switch (XINT (disp, 1))
1416 : : {
1417 : : case UNSPEC_GOTPCREL:
1418 : : case UNSPEC_PCREL:
1419 : : case UNSPEC_GOTNTPOFF:
1420 : : return false;
1421 : : }
1422 : : }
1423 : 7785 : if (TARGET_64BIT
1424 : 7785 : && flag_pic
1425 : 0 : && (SYMBOL_REF_P (disp)
1426 : 0 : || LABEL_REF_P (disp)))
1427 : 0 : return false;
1428 : : }
1429 : :
1430 : : return true;
1431 : : })
1432 : :
1433 : : (define_predicate "vsib_mem_operator"
1434 : 40674 : (match_code "mem"))
1435 : :
1436 : 40674 : ;; Return true if the rtx is known to be at least 32 bits aligned.
1437 : : (define_predicate "aligned_operand"
1438 : : (match_operand 0 "general_operand")
1439 : : {
1440 : 27301836 : struct ix86_address parts;
1441 : 27301836 : int ok;
1442 : :
1443 : : /* Registers and immediate operands are always "aligned". */
1444 : 27301836 : if (!MEM_P (op))
1445 : : return true;
1446 : :
1447 : : /* All patterns using aligned_operand on memory operands ends up
1448 : : in promoting memory operand to 64bit and thus causing memory mismatch. */
1449 : 7684676 : if (TARGET_MEMORY_MISMATCH_STALL && !optimize_insn_for_size_p ())
1450 : : return false;
1451 : :
1452 : : /* Don't even try to do any aligned optimizations with volatiles. */
1453 : 141289 : if (MEM_VOLATILE_P (op))
1454 : : return false;
1455 : :
1456 : 136292 : if (MEM_ALIGN (op) >= 32)
1457 : : return true;
1458 : :
1459 : 54011 : op = XEXP (op, 0);
1460 : :
1461 : : /* Pushes and pops are only valid on the stack pointer. */
1462 : 54011 : if (GET_CODE (op) == PRE_DEC
1463 : 54011 : || GET_CODE (op) == POST_INC)
1464 : : return true;
1465 : :
1466 : : /* Decode the address. */
1467 : 54011 : ok = ix86_decompose_address (op, &parts);
1468 : 54011 : gcc_assert (ok);
1469 : :
1470 : 54011 : if (parts.base && SUBREG_P (parts.base))
1471 : 0 : parts.base = SUBREG_REG (parts.base);
1472 : 54011 : if (parts.index && SUBREG_P (parts.index))
1473 : 0 : parts.index = SUBREG_REG (parts.index);
1474 : :
1475 : : /* Look for some component that isn't known to be aligned. */
1476 : 54011 : if (parts.index)
1477 : : {
1478 : 7518 : if (REGNO_POINTER_ALIGN (REGNO (parts.index)) * parts.scale < 32)
1479 : : return false;
1480 : : }
1481 : 46493 : if (parts.base)
1482 : : {
1483 : 39133 : if (REGNO_POINTER_ALIGN (REGNO (parts.base)) < 32)
1484 : : return false;
1485 : : }
1486 : 14083 : if (parts.disp)
1487 : : {
1488 : 14083 : if (!CONST_INT_P (parts.disp)
1489 : 6838 : || (INTVAL (parts.disp) & 3))
1490 : : return false;
1491 : : }
1492 : :
1493 : : /* Didn't find one -- this must be an aligned address. */
1494 : : return true;
1495 : : })
1496 : :
1497 : : ;; Return true if OP is memory operand with a displacement.
1498 : 27870245 : (define_predicate "memory_displacement_operand"
1499 : : (match_operand 0 "memory_operand")
1500 : 55172081 : {
1501 : 27301836 : struct ix86_address parts;
1502 : 0 : int ok;
1503 : :
1504 : 0 : ok = ix86_decompose_address (XEXP (op, 0), &parts);
1505 : 0 : gcc_assert (ok);
1506 : 0 : return parts.disp != NULL_RTX;
1507 : : })
1508 : :
1509 : : ;; Return true if OP is memory operand with a displacement only.
1510 : 0 : (define_predicate "memory_displacement_only_operand"
1511 : : (match_operand 0 "memory_operand")
1512 : 0 : {
1513 : 0 : struct ix86_address parts;
1514 : 39289261 : int ok;
1515 : :
1516 : 39289261 : if (TARGET_64BIT)
1517 : 39289261 : return false;
1518 : :
1519 : 18957491 : ok = ix86_decompose_address (XEXP (op, 0), &parts);
1520 : 18957491 : gcc_assert (ok);
1521 : :
1522 : 18957491 : if (parts.base || parts.index)
1523 : : return false;
1524 : :
1525 : 234241 : return parts.disp != NULL_RTX;
1526 : : })
1527 : :
1528 : : ;; Return true if OP is memory operand that cannot be represented
1529 : 60717554 : ;; by the modRM array.
1530 : : (define_predicate "long_memory_operand"
1531 : 100006815 : (and (match_operand 0 "memory_operand")
1532 : 39289261 : (match_test "memory_address_length (op, false)")))
1533 : :
1534 : : ;; Return true if OP is a comparison operator that can be issued by fcmov.
1535 : : (define_predicate "fcmov_comparison_operator"
1536 : 84126 : (match_operand 0 "comparison_operator")
1537 : : {
1538 : 0 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1539 : 84126 : enum rtx_code code = GET_CODE (op);
1540 : :
1541 : 84126 : if (inmode == CCFPmode)
1542 : 8564 : code = ix86_fp_compare_code_to_integer (code);
1543 : :
1544 : : /* i387 supports just limited amount of conditional codes. */
1545 : 84126 : switch (code)
1546 : : {
1547 : 1971 : case GEU: case LTU:
1548 : 1971 : if (inmode == CCCmode || inmode == CCGZmode)
1549 : : return true;
1550 : : /* FALLTHRU */
1551 : 6629 : case GTU: case LEU:
1552 : 6629 : if (inmode == CCmode || inmode == CCFPmode)
1553 : : return true;
1554 : : return false;
1555 : : case ORDERED: case UNORDERED:
1556 : : case EQ: case NE:
1557 : : return true;
1558 : : default:
1559 : : return false;
1560 : : }
1561 : : })
1562 : :
1563 : : ;; Return true if OP is a comparison that can be used in the CMPSS/CMPPS insns.
1564 : 84126 : ;; The first set are supported directly; the second set can't be done with
1565 : : ;; full IEEE support, i.e. NaNs.
1566 : 168252 :
1567 : 84126 : (define_predicate "sse_comparison_operator"
1568 : : (ior (match_code "eq,ne,lt,le,unordered,unge,ungt,ordered")
1569 : 136258 : (and (match_test "TARGET_AVX")
1570 : 136258 : (match_code "ge,gt,uneq,unle,unlt,ltgt"))))
1571 : 137917 :
1572 : : (define_predicate "ix86_comparison_int_operator"
1573 : 137917 : (match_code "ne,eq,ge,gt,le,lt"))
1574 : 209736 :
1575 : : (define_predicate "ix86_comparison_uns_operator"
1576 : 209736 : (match_code "ne,eq,geu,gtu,leu,ltu"))
1577 : :
1578 : 209736 : (define_predicate "bt_comparison_operator"
1579 : 209736 : (match_code "ne,eq"))
1580 : 209736 :
1581 : 209736 : (define_predicate "shr_comparison_operator"
1582 : 209736 : (match_code "gtu,leu"))
1583 : 209736 :
1584 : 209736 : (define_predicate "add_comparison_operator"
1585 : : (match_code "geu,ltu"))
1586 : :
1587 : : ;; Return true if OP is a valid comparison operator in valid mode.
1588 : 209736 : (define_predicate "ix86_comparison_operator"
1589 : 209736 : (match_operand 0 "comparison_operator")
1590 : : {
1591 : 101836265 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1592 : 101836265 : enum rtx_code code = GET_CODE (op);
1593 : 115553 :
1594 : 101836265 : if (inmode == CCFPmode)
1595 : 6964472 : return ix86_trivial_fp_comparison_operator (op, mode);
1596 : :
1597 : 94987346 : switch (code)
1598 : 115553 : {
1599 : 73320235 : case EQ: case NE:
1600 : 73204682 : if (inmode == CCGZmode)
1601 : 0 : return false;
1602 : 115553 : return true;
1603 : 4620155 : case GE: case LT:
1604 : 4504602 : if (inmode == CCmode || inmode == CCGCmode
1605 : 2252344 : || inmode == CCGOCmode || inmode == CCNOmode || inmode == CCGZmode)
1606 : 3994249 : return true;
1607 : 115553 : return false;
1608 : 115553 : case GEU: case LTU:
1609 : 7713727 : if (inmode == CCCmode || inmode == CCGZmode)
1610 : : return true;
1611 : : /* FALLTHRU */
1612 : 72996533 : case GTU: case LEU:
1613 : 10687601 : if (inmode == CCmode)
1614 : 71795987 : return true;
1615 : : return false;
1616 : 51611077 : case ORDERED: case UNORDERED:
1617 : 3468 : if (inmode == CCmode)
1618 : 3161 : return true;
1619 : : return false;
1620 : 6043739 : case GT: case LE:
1621 : 6043739 : if (inmode == CCmode || inmode == CCGCmode || inmode == CCNOmode)
1622 : 5311827 : return true;
1623 : 51607609 : return false;
1624 : : default:
1625 : : return false;
1626 : : }
1627 : 770382 : })
1628 : :
1629 : 770382 : ;; Return true if OP is a valid comparison operator
1630 : 116424766 : ;; testing carry flag to be set.
1631 : 770382 : (define_predicate "ix86_carry_flag_operator"
1632 : 218261031 : (match_code "ltu,unlt")
1633 : 101836265 : {
1634 : 867039 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1635 : 867039 : enum rtx_code code = GET_CODE (op);
1636 : :
1637 : 867039 : if (inmode == CCFPmode)
1638 : 782546 : code = ix86_fp_compare_code_to_integer (code);
1639 : 854875 : else if (inmode != CCmode && inmode != CCCmode && inmode != CCGZmode)
1640 : : return false;
1641 : :
1642 : 645870 : return code == LTU;
1643 : : })
1644 : 1358020 :
1645 : : ;; Return true if OP is a valid comparison operator
1646 : 5486330 : ;; testing carry flag to be unset.
1647 : 1358020 : (define_predicate "ix86_carry_flag_unset_operator"
1648 : 4128310 : (match_code "geu,ge")
1649 : : {
1650 : 868607 : machine_mode inmode = GET_MODE (XEXP (op, 0));
1651 : 868607 : enum rtx_code code = GET_CODE (op);
1652 : 2225059 :
1653 : 1358020 : if (inmode == CCFPmode)
1654 : 66 : code = ix86_fp_compare_code_to_integer (code);
1655 : 1502 : else if (inmode != CCmode && inmode != CCCmode && inmode != CCGZmode)
1656 : 867039 : return false;
1657 : 102703304 :
1658 : 434450 : return code == GEU;
1659 : : })
1660 : :
1661 : : ;; Return true if this comparison only requires testing one flag bit.
1662 : 3024172 : ;; VCOMX/VUCOMX set ZF, SF, OF, differently from COMI/UCOMI.
1663 : : (define_predicate "ix86_trivial_fp_comparison_operator"
1664 : 12318877 : (if_then_else (match_test "TARGET_AVX10_2")
1665 : 657428 : (match_code "gt,ge,unlt,unle,eq,uneq,ne,ltgt,ordered,unordered")
1666 : 1568 : (match_code "gt,ge,unlt,unle,uneq,ltgt,ordered,unordered")))
1667 : 1568 :
1668 : 1568 : (define_predicate "ix86_trivial_fp_comparison_operator_xf"
1669 : 1358549 : (match_code "gt,ge,unlt,unle,uneq,ltgt,ordered,unordered"))
1670 : :
1671 : 1358549 : ;; Return true if we know how to do this comparison. Others require
1672 : 1568 : ;; testing more than one flag bit, and we let the generic middle-end
1673 : 412005 : ;; code do that.
1674 : 411560 : (define_predicate "ix86_fp_comparison_operator"
1675 : 2857791 : (if_then_else (match_test "ix86_fp_comparison_strategy (GET_CODE (op))
1676 : 2447354 : == IX86_FPCMP_ARITH")
1677 : 410437 : (match_operand 0 "comparison_operator")
1678 : 9706710 : (match_operand 0 "ix86_trivial_fp_comparison_operator")))
1679 : 410437 :
1680 : 9296273 : (define_predicate "ix86_fp_comparison_operator_xf"
1681 : 1768986 : (if_then_else (match_test "ix86_fp_comparison_strategy (GET_CODE (op))
1682 : 1358549 : == IX86_FPCMP_ARITH")
1683 : : (match_operand 0 "comparison_operator")
1684 : : (match_operand 0 "ix86_trivial_fp_comparison_operator_xf")))
1685 : 410437 :
1686 : 410437 : ;; Return true if we can perform this comparison on TImode operands.
1687 : : (define_predicate "ix86_timode_comparison_operator"
1688 : 449397 : (if_then_else (match_test "TARGET_64BIT")
1689 : : (match_operand 0 "ordered_comparison_operator")
1690 : 2447354 : (match_operand 0 "bt_comparison_operator")))
1691 : :
1692 : 2447354 : ;; Return true if this is a valid second operand for a TImode comparison.
1693 : : (define_predicate "ix86_timode_comparison_operand"
1694 : 164384 : (if_then_else (match_test "TARGET_64BIT")
1695 : : (match_operand 0 "x86_64_general_operand")
1696 : : (match_operand 0 "nonimmediate_operand")))
1697 : :
1698 : 1977946 : ;; Nearly general operand, but accept any const_double, since we wish
1699 : : ;; to be able to drop them into memory rather than have them get pulled
1700 : 509132 : ;; into registers.
1701 : 2487078 : (define_predicate "cmp_fp_expander_operand"
1702 : : (ior (match_code "const_double")
1703 : : (match_operand 0 "general_operand")))
1704 : :
1705 : 4924369 : ;; Return true if this is a valid binary floating-point operation.
1706 : : (define_predicate "binary_fp_operator"
1707 : 4924369 : (match_code "plus,minus,mult,div"))
1708 : :
1709 : 4916516 : ;; Return true if this is a multiply operation.
1710 : 4916516 : (define_predicate "mult_operator"
1711 : 4916516 : (match_code "mult"))
1712 : 4916516 :
1713 : 4916516 : ;; Return true if this is a division operation.
1714 : : (define_predicate "div_operator"
1715 : : (match_code "div"))
1716 : :
1717 : 4916516 : ;; Return true if this is an and, ior or xor operation.
1718 : 4916516 : (define_predicate "logic_operator"
1719 : : (match_code "and,ior,xor"))
1720 : :
1721 : : ;; Return true if this is an and operation.
1722 : 17176061 : (define_predicate "and_operator"
1723 : : (match_code "and"))
1724 : 17176061 :
1725 : 3513464 : ;; Return true if this is a plus, minus, and, ior or xor operation.
1726 : : (define_predicate "plusminuslogic_operator"
1727 : : (match_code "plus,minus,and,ior,xor"))
1728 : :
1729 : 2650938 : ;; Return true for ARITHMETIC_P.
1730 : : (define_predicate "arith_or_logical_operator"
1731 : 2650938 : (match_code "plus,mult,and,ior,xor,smin,smax,umin,umax,compare,minus,div,
1732 : 934896 : mod,udiv,umod,ashift,rotate,ashiftrt,lshiftrt,rotatert"))
1733 : :
1734 : : ;; Return true for COMMUTATIVE_P.
1735 : : (define_predicate "commutative_operator"
1736 : 0 : (match_code "plus,mult,and,ior,xor,smin,smax,umin,umax"))
1737 : :
1738 : 0 : ;; Return true if OP is a binary operator that can be promoted to wider mode.
1739 : : (define_predicate "promotable_binary_operator"
1740 : 0 : (ior (match_code "plus,minus,and,ior,xor,ashift")
1741 : 0 : (and (match_code "mult")
1742 : 25396062 : (match_test "TARGET_TUNE_PROMOTE_HIMODE_IMUL"))))
1743 : 0 :
1744 : : (define_predicate "compare_operator"
1745 : : (match_code "compare"))
1746 : :
1747 : 7862520 : (define_predicate "extract_high_operator"
1748 : 0 : (match_code "zero_extract,sign_extract,ashiftrt,lshiftrt")
1749 : 7862520 : {
1750 : 0 : return (const8_operand (XEXP (op, 1), VOIDmode)
1751 : 154714 : && (BINARY_P (op) || const8_operand (XEXP (op, 2), VOIDmode)));
1752 : 100 : })
1753 : :
1754 : 154814 : ;; Return true if OP is a memory operand, aligned to
1755 : 0 : ;; less than its natural alignment.
1756 : : (define_predicate "misaligned_operand"
1757 : 154714 : (and (match_code "mem")
1758 : 6549045 : (match_test "MEM_ALIGN (op) < GET_MODE_BITSIZE (mode)")))
1759 : 1698119 :
1760 : 154714 : ;; Return true if OP is a parallel for an mov{d,q,dqa,ps,pd} vec_select,
1761 : 530859 : ;; where one of the two operands of the vec_concat is const0_operand.
1762 : 154714 : (define_predicate "movq_parallel"
1763 : 1926291 : (match_code "parallel")
1764 : 526678 : {
1765 : 1771577 : unsigned nelt = XVECLEN (op, 0);
1766 : 1771577 : unsigned nelt2 = nelt >> 1;
1767 : 1926291 : unsigned i;
1768 : 154714 :
1769 : 1304027 : if (nelt < 2)
1770 : : return false;
1771 : :
1772 : 526678 : /* Validate that all of the elements are constants,
1773 : 526678 : lower halves of permute are lower halves of the first operand,
1774 : : upper halves of permute come from any of the second operand. */
1775 : 15634975 : for (i = 0; i < nelt; ++i)
1776 : : {
1777 : 6323140 : rtx er = XVECEXP (op, 0, i);
1778 : 2017676 : unsigned HOST_WIDE_INT ei;
1779 : 4305464 :
1780 : 2017676 : if (!CONST_INT_P (er))
1781 : 4305464 : return false;
1782 : 6323140 : ei = INTVAL (er);
1783 : 2017676 : if (i < nelt2 && ei != i)
1784 : 4305464 : return false;
1785 : 871618 : if (i >= nelt2 && (ei < nelt || ei >= nelt << 1))
1786 : 4305464 : return false;
1787 : 4305464 : }
1788 : 4305464 :
1789 : 4305464 : return true;
1790 : 4305464 : })
1791 : 4305464 :
1792 : 4305464 : ;; Return true if OP is a vzeroall operation, known to be a PARALLEL.
1793 : 5550363 : (define_predicate "vzeroall_operation"
1794 : 4305464 : (match_code "parallel")
1795 : 6795262 : {
1796 : 1244918 : unsigned i, nregs = TARGET_64BIT ? 16 : 8;
1797 : 0 :
1798 : 5820 : if ((unsigned) XVECLEN (op, 0) != 1 + nregs)
1799 : 4305464 : return false;
1800 : 4305464 :
1801 : 104608 : for (i = 0; i < nregs; i++)
1802 : : {
1803 : 92968 : rtx elt = XVECEXP (op, 0, i+1);
1804 : :
1805 : 4398432 : if (GET_CODE (elt) != SET
1806 : 4398432 : || GET_CODE (SET_DEST (elt)) != REG
1807 : 92968 : || GET_MODE (SET_DEST (elt)) != V8SImode
1808 : 92968 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
1809 : 185936 : || SET_SRC (elt) != CONST0_RTX (V8SImode))
1810 : 948722 : return false;
1811 : : }
1812 : 948722 : return true;
1813 : : })
1814 : 335658 :
1815 : 335658 : ;; return true if OP is a vzeroall pattern.
1816 : 341478 : (define_predicate "vzeroall_pattern"
1817 : 335658 : (and (match_code "parallel")
1818 : 347298 : (match_code "unspec_volatile" "a")
1819 : 5988 : (match_test "XINT (XVECEXP (op, 0, 0), 1) == UNSPECV_VZEROALL")))
1820 : 0 :
1821 : 335658 : ;; return true if OP is a vzeroupper pattern.
1822 : 335658 : (define_predicate "vzeroupper_pattern"
1823 : 335658 : (and (match_code "parallel")
1824 : 252552515 : (match_code "unspec" "b")
1825 : 987907 : (match_test "XINT (XVECEXP (op, 0, 1), 1) == UNSPEC_CALLEE_ABI")
1826 : 252552515 : (match_test "INTVAL (XVECEXP (XVECEXP (op, 0, 1), 0, 0)) == ABI_VZEROUPPER")))
1827 : 0 :
1828 : 335658 : ;; Return true if OP is an addsub vec_merge operation
1829 : : (define_predicate "addsub_vm_operator"
1830 : : (match_code "vec_merge")
1831 : 8140 : {
1832 : 25404202 : rtx op0, op1;
1833 : 8140 : int swapped;
1834 : 25396062 : HOST_WIDE_INT mask;
1835 : 8140 : int nunits, elt;
1836 : :
1837 : 8140 : op0 = XEXP (op, 0);
1838 : 8140 : op1 = XEXP (op, 1);
1839 : :
1840 : : /* Sanity check. */
1841 : 8140 : if (GET_CODE (op0) == MINUS && GET_CODE (op1) == PLUS)
1842 : : swapped = 0;
1843 : 4202 : else if (GET_CODE (op0) == PLUS && GET_CODE (op1) == MINUS)
1844 : : swapped = 1;
1845 : : else
1846 : 0 : gcc_unreachable ();
1847 : :
1848 : 8140 : mask = INTVAL (XEXP (op, 2));
1849 : 8140 : nunits = GET_MODE_NUNITS (mode);
1850 : :
1851 : 32928 : for (elt = 0; elt < nunits; elt++)
1852 : : {
1853 : : /* bit clear: take from op0, set: take from op1 */
1854 : 25004 : int bit = !(mask & (HOST_WIDE_INT_1U << elt));
1855 : :
1856 : 25004 : if (bit != ((elt & 1) ^ swapped))
1857 : : return false;
1858 : : }
1859 : :
1860 : : return true;
1861 : : })
1862 : :
1863 : : ;; Return true if OP is an addsub vec_select/vec_concat operation
1864 : 8140 : (define_predicate "addsub_vs_operator"
1865 : : (and (match_code "vec_select")
1866 : 8140 : (match_code "vec_concat" "0"))
1867 : 16064 : {
1868 : 7924 : rtx op0, op1;
1869 : 0 : bool swapped;
1870 : 0 : int nunits, elt;
1871 : :
1872 : 0 : op0 = XEXP (XEXP (op, 0), 0);
1873 : 0 : op1 = XEXP (XEXP (op, 0), 1);
1874 : :
1875 : : /* Sanity check. */
1876 : 0 : if (GET_CODE (op0) == MINUS && GET_CODE (op1) == PLUS)
1877 : : swapped = false;
1878 : 0 : else if (GET_CODE (op0) == PLUS && GET_CODE (op1) == MINUS)
1879 : : swapped = true;
1880 : : else
1881 : 0 : gcc_unreachable ();
1882 : :
1883 : 0 : nunits = GET_MODE_NUNITS (mode);
1884 : 0 : if (XVECLEN (XEXP (op, 1), 0) != nunits)
1885 : : return false;
1886 : :
1887 : : /* We already checked that permutation is suitable for addsub,
1888 : : so only look at the first element of the parallel. */
1889 : 0 : elt = INTVAL (XVECEXP (XEXP (op, 1), 0, 0));
1890 : :
1891 : 0 : return elt == (swapped ? nunits : 0);
1892 : : })
1893 : :
1894 : : ;; Return true if OP is a parallel for an addsub vec_select.
1895 : 0 : (define_predicate "addsub_vs_parallel"
1896 : : (and (match_code "parallel")
1897 : 0 : (match_code "const_int" "a"))
1898 : 0 : {
1899 : 0 : int nelt = XVECLEN (op, 0);
1900 : 488 : int elt, i;
1901 : :
1902 : 488 : if (nelt < 2)
1903 : 488 : return false;
1904 : :
1905 : : /* Check that the permutation is suitable for addsub.
1906 : : For example, { 0 9 2 11 4 13 6 15 } or { 8 1 10 3 12 5 14 7 }. */
1907 : 488 : elt = INTVAL (XVECEXP (op, 0, 0));
1908 : 488 : if (elt == 0)
1909 : : {
1910 : 448 : for (i = 1; i < nelt; ++i)
1911 : 448 : if (INTVAL (XVECEXP (op, 0, i)) != (i + (i & 1) * nelt))
1912 : : return false;
1913 : : }
1914 : 40 : else if (elt == nelt)
1915 : : {
1916 : 0 : for (i = 1; i < nelt; ++i)
1917 : 0 : if (INTVAL (XVECEXP (op, 0, i)) != (elt + i - (i & 1) * nelt))
1918 : : return false;
1919 : : }
1920 : : else
1921 : : return false;
1922 : :
1923 : : return true;
1924 : : })
1925 : :
1926 : : ;; Return true if OP is a constant pool in perm{w,d,b} which constains index
1927 : 488 : ;; match pmov{dw,wb,qd}.
1928 : : (define_predicate "permvar_truncate_operand"
1929 : 488 : (match_code "mem")
1930 : 976 : {
1931 : 0 : int nelt = GET_MODE_NUNITS (mode);
1932 : 16 : int perm[128];
1933 : 16 : int id;
1934 : :
1935 : 32 : if (!INTEGRAL_MODE_P (mode) || !VECTOR_MODE_P (mode))
1936 : : return false;
1937 : :
1938 : 16 : if (nelt < 2)
1939 : : return false;
1940 : :
1941 : 16 : if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
1942 : : return false;
1943 : :
1944 : 16 : id = exact_log2 (nelt);
1945 : :
1946 : : /* Check that the permutation is suitable for pmovz{bw,wd,dq}.
1947 : : For example V16HImode to V8HImode
1948 : : { 0 2 4 6 8 10 12 14 * * * * * * * * }. */
1949 : 232 : for (int i = 0; i != nelt / 2; i++)
1950 : 216 : if ((perm[i] & ((1 << id) - 1)) != i * 2)
1951 : : return false;
1952 : :
1953 : : return true;
1954 : : })
1955 : :
1956 : : ;; Return true if OP is a constant pool in shufb which constains index
1957 : 33 : ;; match pmovdw.
1958 : : (define_predicate "pshufb_truncv4siv4hi_operand"
1959 : 16 : (match_code "mem")
1960 : 49 : {
1961 : 16 : int perm[128];
1962 : :
1963 : 8 : if (mode != E_V16QImode)
1964 : : return false;
1965 : 8 :
1966 : 8 : if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
1967 : : return false;
1968 : :
1969 : : /* Check that the permutation is suitable for pmovdw.
1970 : : For example V4SImode to V4HImode
1971 : : { 0 1 4 5 8 9 12 13 * * * * * * * * }.
1972 : : index = i % 2 + (i / 2) * 4. */
1973 : 58 : for (int i = 0; i != 8; i++)
1974 : : {
1975 : : /* if (SRC2[(i * 8)+7] = 1) then DEST[(i*8)+7..(i*8)+0] := 0; */
1976 : 52 : if (perm[i] & 128)
1977 : : return false;
1978 : :
1979 : 52 : if ((perm[i] & 15) != ((i & 1) + (i & 0xFE) * 2))
1980 : : return false;
1981 : : }
1982 : :
1983 : : return true;
1984 : : })
1985 : :
1986 : : ;; Return true if OP is a constant pool in shufb which constains index
1987 : 11 : ;; match pmovdw.
1988 : : (define_predicate "pshufb_truncv8hiv8qi_operand"
1989 : 8 : (match_code "mem")
1990 : 17 : {
1991 : 6 : int perm[128];
1992 : :
1993 : 11 : if (mode != E_V16QImode)
1994 : : return false;
1995 : 11 :
1996 : 11 : if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
1997 : : return false;
1998 : :
1999 : : /* Check that the permutation is suitable for pmovwb.
2000 : : For example V16QImode to V8QImode
2001 : : { 0 2 4 6 8 10 12 14 * * * * * * * * }.
2002 : : index = i % 2 + (i / 2) * 4. */
2003 : 57 : for (int i = 0; i != 8; i++)
2004 : : {
2005 : : /* if (SRC2[(i * 8)+7] = 1) then DEST[(i*8)+7..(i*8)+0] := 0; */
2006 : 52 : if (perm[i] & 128)
2007 : : return false;
2008 : :
2009 : 52 : if ((perm[i] & 15) != i * 2)
2010 : : return false;
2011 : : }
2012 : :
2013 : : return true;
2014 : : })
2015 : :
2016 : : ;; Return true if OP is a parallel for an pmovz{bw,wd,dq} vec_select,
2017 : 14 : ;; where one of the two operands of the vec_concat is const0_operand.
2018 : : (define_predicate "pmovzx_parallel"
2019 : 11 : (and (match_code "parallel")
2020 : 19 : (match_code "const_int" "a"))
2021 : 5 : {
2022 : 1313049 : int nelt = XVECLEN (op, 0);
2023 : 1313049 : int elt, i;
2024 : :
2025 : 1313049 : if (nelt < 2)
2026 : : return false;
2027 : :
2028 : : /* Check that the permutation is suitable for pmovz{bw,wd,dq}.
2029 : : For example { 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 }. */
2030 : 1313049 : elt = INTVAL (XVECEXP (op, 0, 0));
2031 : 1313049 : if (elt == 0)
2032 : : {
2033 : 3036945 : for (i = 1; i < nelt; ++i)
2034 : 2611640 : if ((i & 1) != 0)
2035 : : {
2036 : 1646989 : if (INTVAL (XVECEXP (op, 0, i)) < nelt)
2037 : : return false;
2038 : : }
2039 : 964651 : else if (INTVAL (XVECEXP (op, 0, i)) != i / 2)
2040 : : return false;
2041 : : }
2042 : : else
2043 : : return false;
2044 : :
2045 : : return true;
2046 : : })
2047 : :
2048 : : ;; Return true if OP is a const vector with duplicate value.
2049 : 1313049 : (define_predicate "const_vector_duplicate_operand"
2050 : : (match_code "const_vector")
2051 : 1313049 : {
2052 : 2626098 : rtx elt = XVECEXP (op, 0, 0);
2053 : 0 : int i, nelt = XVECLEN (op, 0);
2054 : :
2055 : 96 : for (i = 1; i < nelt; ++i)
2056 : 93 : if (!rtx_equal_p (elt, XVECEXP (op, 0, i)))
2057 : 3 : return false;
2058 : : return true;
2059 : : })
2060 : :
2061 : : ;; Return true if OP is a parallel for a vbroadcast permute.
2062 : 3 : (define_predicate "avx_vbroadcast_operand"
2063 : : (and (match_code "parallel")
2064 : 3 : (match_code "const_int" "a"))
2065 : 6 : {
2066 : 3 : rtx elt = XVECEXP (op, 0, 0);
2067 : 404735 : int i, nelt = XVECLEN (op, 0);
2068 : :
2069 : : /* Don't bother checking there are the right number of operands,
2070 : 404735 : merely that they're all identical. */
2071 : 492708 : for (i = 1; i < nelt; ++i)
2072 : 259311 : if (XVECEXP (op, 0, i) != elt)
2073 : : return false;
2074 : : return true;
2075 : : })
2076 : :
2077 : : ;; Return true if OP is a parallel for a vbroadcastf128 permute.
2078 : 404735 : (define_predicate "avx_vbroadcast128_operand"
2079 : : (and (match_code "parallel")
2080 : 404735 : (match_code "const_int" "a"))
2081 : 809470 : {
2082 : 0 : int i, nelt = XVECLEN (op, 0);
2083 : 1234108 : int half = nelt / 2;
2084 : :
2085 : 1956925 : for (i = 0; i < nelt; ++i)
2086 : 1234108 : {
2087 : 1956784 : int index = INTVAL (XVECEXP (op, 0, i));
2088 : 1956784 : if ((i < half && index != i)
2089 : 821073 : || (i >= half && index != (i - half)))
2090 : : return false;
2091 : : }
2092 : :
2093 : : return true;
2094 : : })
2095 : :
2096 : : ;; Return true if OP is a parallel for a palignr permute.
2097 : 1234108 : (define_predicate "palignr_operand"
2098 : : (and (match_code "parallel")
2099 : 1234108 : (match_code "const_int" "a"))
2100 : 2468216 : {
2101 : 0 : int elt = INTVAL (XVECEXP (op, 0, 0));
2102 : 25941 : int i, nelt = XVECLEN (op, 0);
2103 : :
2104 : : /* Check that an order in the permutation is suitable for palignr.
2105 : 25941 : For example, {5 6 7 0 1 2 3 4} is "palignr 5, xmm, xmm". */
2106 : 59014 : for (i = 1; i < nelt; ++i)
2107 : 55498 : if (INTVAL (XVECEXP (op, 0, i)) != ((elt + i) % nelt))
2108 : : return false;
2109 : : return true;
2110 : : })
2111 : :
2112 : : ;; Return true if OP is a proper third operand to vpblendw256.
2113 : 25941 : (define_predicate "avx2_pblendw_operand"
2114 : : (match_code "const_int")
2115 : 25941 : {
2116 : 51882 : HOST_WIDE_INT val = INTVAL (op);
2117 : 0 : HOST_WIDE_INT low = val & 0xff;
2118 : 6821 : return val == ((low << 8) | low);
2119 : : })
2120 : :
2121 : 6821 : ;; Return true if OP is vector_operand or CONST_VECTOR.
2122 : 6821 : (define_predicate "general_vector_operand"
2123 : : (ior (match_operand 0 "vector_operand")
2124 : 6821 : (match_code "const_vector")))
2125 : 6821 :
2126 : : ;; Return true if OP is either -1 constant or stored in register.
2127 : : (define_predicate "register_or_constm1_operand"
2128 : : (ior (match_operand 0 "register_operand")
2129 : 12362 : (and (match_code "const_int")
2130 : 0 : (match_test "op == constm1_rtx"))))
2131 : 12362 :
2132 : 2362 : ;; Return true if the vector ends with between 12 and 18 register saves using
2133 : : ;; RAX as the base address.
2134 : : (define_predicate "save_multiple"
2135 : 218277 : (match_code "parallel")
2136 : 1324 : {
2137 : 218277 : const unsigned len = XVECLEN (op, 0);
2138 : 1324 : unsigned i;
2139 : :
2140 : : /* Starting from end of vector, count register saves. */
2141 : 311110 : for (i = 0; i < len; ++i)
2142 : : {
2143 : 311110 : rtx src, dest, addr;
2144 : 311110 : rtx e = XVECEXP (op, 0, len - 1 - i);
2145 : :
2146 : 311110 : if (GET_CODE (e) != SET)
2147 : : break;
2148 : :
2149 : 304065 : src = SET_SRC (e);
2150 : 304065 : dest = SET_DEST (e);
2151 : :
2152 : 304065 : if (!REG_P (src) || !MEM_P (dest))
2153 : : break;
2154 : :
2155 : 92833 : addr = XEXP (dest, 0);
2156 : :
2157 : : /* Good if dest address is in RAX. */
2158 : 92833 : if (REG_P (addr) && REGNO (addr) == AX_REG)
2159 : 4202 : continue;
2160 : :
2161 : : /* Good if dest address is offset of RAX. */
2162 : 177262 : if (GET_CODE (addr) == PLUS
2163 : 88631 : && REG_P (XEXP (addr, 0))
2164 : 177262 : && REGNO (XEXP (addr, 0)) == AX_REG)
2165 : 88631 : continue;
2166 : :
2167 : : break;
2168 : : }
2169 : 218277 : return (i >= 12 && i <= 18);
2170 : : })
2171 : :
2172 : :
2173 : 218277 : ;; Return true if the vector ends with between 12 and 18 register loads using
2174 : : ;; RSI as the base address.
2175 : 436554 : (define_predicate "restore_multiple"
2176 : 218277 : (match_code "parallel")
2177 : 0 : {
2178 : 7153541 : const unsigned len = XVECLEN (op, 0);
2179 : 7153541 : unsigned i;
2180 : :
2181 : 7153541 : /* Starting from end of vector, count register restores. */
2182 : 7260119 : for (i = 0; i < len; ++i)
2183 : : {
2184 : 7260119 : rtx src, dest, addr;
2185 : 7260119 : rtx e = XVECEXP (op, 0, len - 1 - i);
2186 : :
2187 : 7260119 : if (GET_CODE (e) != SET)
2188 : : break;
2189 : :
2190 : 4013985 : src = SET_SRC (e);
2191 : 4013985 : dest = SET_DEST (e);
2192 : :
2193 : 4013985 : if (!MEM_P (src) || !REG_P (dest))
2194 : : break;
2195 : :
2196 : 1197797 : addr = XEXP (src, 0);
2197 : :
2198 : : /* Good if src address is in RSI. */
2199 : 1197797 : if (REG_P (addr) && REGNO (addr) == SI_REG)
2200 : 5137 : continue;
2201 : :
2202 : : /* Good if src address is offset of RSI. */
2203 : 1294101 : if (GET_CODE (addr) == PLUS
2204 : 811217 : && REG_P (XEXP (addr, 0))
2205 : 1926744 : && REGNO (XEXP (addr, 0)) == SI_REG)
2206 : 101441 : continue;
2207 : :
2208 : : break;
2209 : : }
2210 : 7153541 : return (i >= 12 && i <= 18);
2211 : : })
2212 : :
2213 : : ;; Keylocker specific predicates
2214 : 7153541 : (define_predicate "encodekey128_operation"
2215 : : (match_code "parallel")
2216 : 14307082 : {
2217 : 7153541 : unsigned i;
2218 : 0 : rtx elt;
2219 : :
2220 : 107 : if (XVECLEN (op, 0) != 8)
2221 : : return false;
2222 : 107 :
2223 : 388 : for(i = 0; i < 3; i++)
2224 : : {
2225 : 291 : elt = XVECEXP (op, 0, i + 1);
2226 : 291 : if (GET_CODE (elt) != SET
2227 : 291 : || GET_CODE (SET_DEST (elt)) != REG
2228 : 291 : || GET_MODE (SET_DEST (elt)) != V2DImode
2229 : 291 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
2230 : 291 : || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
2231 : 291 : || GET_MODE (SET_SRC (elt)) != V2DImode
2232 : 291 : || XVECLEN(SET_SRC (elt), 0) != 1
2233 : 582 : || XVECEXP(SET_SRC (elt), 0, 0) != const0_rtx)
2234 : : return false;
2235 : : }
2236 : :
2237 : 388 : for(i = 4; i < 7; i++)
2238 : : {
2239 : 291 : elt = XVECEXP (op, 0, i);
2240 : 291 : if (GET_CODE (elt) != CLOBBER
2241 : 291 : || GET_MODE (elt) != VOIDmode
2242 : 291 : || GET_CODE (XEXP (elt, 0)) != REG
2243 : 291 : || GET_MODE (XEXP (elt, 0)) != V2DImode
2244 : 582 : || REGNO (XEXP (elt, 0)) != GET_SSE_REGNO (i))
2245 : : return false;
2246 : : }
2247 : :
2248 : 97 : elt = XVECEXP (op, 0, 7);
2249 : 97 : if (GET_CODE (elt) != CLOBBER
2250 : 97 : || GET_MODE (elt) != VOIDmode
2251 : 97 : || GET_CODE (XEXP (elt, 0)) != REG
2252 : 97 : || GET_MODE (XEXP (elt, 0)) != CCmode
2253 : 194 : || REGNO (XEXP (elt, 0)) != FLAGS_REG)
2254 : : return false;
2255 : : return true;
2256 : : })
2257 : :
2258 : : (define_predicate "encodekey256_operation"
2259 : 107 : (match_code "parallel")
2260 : : {
2261 : 334 : unsigned i;
2262 : 107 : rtx elt;
2263 : 0 :
2264 : 120 : if (XVECLEN (op, 0) != 9)
2265 : : return false;
2266 : :
2267 : 120 : elt = SET_SRC (XVECEXP (op, 0, 0));
2268 : 111 : elt = XVECEXP (elt, 0, 2);
2269 : 111 : if (!REG_P (elt)
2270 : 111 : || REGNO(elt) != GET_SSE_REGNO (1))
2271 : : return false;
2272 : :
2273 : 555 : for(i = 0; i < 4; i++)
2274 : : {
2275 : 444 : elt = XVECEXP (op, 0, i + 1);
2276 : 444 : if (GET_CODE (elt) != SET
2277 : 444 : || GET_CODE (SET_DEST (elt)) != REG
2278 : 444 : || GET_MODE (SET_DEST (elt)) != V2DImode
2279 : 444 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
2280 : 444 : || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
2281 : 444 : || GET_MODE (SET_SRC (elt)) != V2DImode
2282 : 444 : || XVECLEN(SET_SRC (elt), 0) != 1
2283 : 888 : || XVECEXP(SET_SRC (elt), 0, 0) != const0_rtx)
2284 : : return false;
2285 : : }
2286 : :
2287 : 444 : for(i = 4; i < 7; i++)
2288 : : {
2289 : 333 : elt = XVECEXP (op, 0, i + 1);
2290 : 333 : if (GET_CODE (elt) != CLOBBER
2291 : 333 : || GET_MODE (elt) != VOIDmode
2292 : 333 : || GET_CODE (XEXP (elt, 0)) != REG
2293 : 333 : || GET_MODE (XEXP (elt, 0)) != V2DImode
2294 : 666 : || REGNO (XEXP (elt, 0)) != GET_SSE_REGNO (i))
2295 : : return false;
2296 : : }
2297 : :
2298 : 111 : elt = XVECEXP (op, 0, 8);
2299 : 111 : if (GET_CODE (elt) != CLOBBER
2300 : 111 : || GET_MODE (elt) != VOIDmode
2301 : 111 : || GET_CODE (XEXP (elt, 0)) != REG
2302 : 111 : || GET_MODE (XEXP (elt, 0)) != CCmode
2303 : 222 : || REGNO (XEXP (elt, 0)) != FLAGS_REG)
2304 : : return false;
2305 : : return true;
2306 : : })
2307 : :
2308 : :
2309 : 120 : (define_predicate "aeswidekl_operation"
2310 : : (match_code "parallel")
2311 : 240 : {
2312 : 120 : unsigned i;
2313 : 0 : rtx elt;
2314 : :
2315 : 5796 : for (i = 0; i < 8; i++)
2316 : : {
2317 : 660 : elt = XVECEXP (op, 0, i + 1);
2318 : 5168 : if (GET_CODE (elt) != SET
2319 : 5168 : || GET_CODE (SET_DEST (elt)) != REG
2320 : 5168 : || GET_MODE (SET_DEST (elt)) != V2DImode
2321 : 5168 : || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
2322 : 5168 : || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
2323 : 5168 : || GET_MODE (SET_SRC (elt)) != V2DImode
2324 : 5168 : || XVECLEN (SET_SRC (elt), 0) != 1
2325 : 5168 : || !REG_P (XVECEXP (SET_SRC (elt), 0, 0))
2326 : 10304 : || REGNO (XVECEXP (SET_SRC (elt), 0, 0)) != GET_SSE_REGNO (i))
2327 : : return false;
2328 : : }
2329 : : return true;
2330 : : })
2331 : :
2332 : : ;; Return true if OP is a memory operand that can be also used in APX
2333 : 660 : ;; EVEX-encoded patterns (i.e. APX NDD/NF) with immediate operand. With
2334 : : ;; non-default address space, segment register or address size prefix,
2335 : 1320 : ;; APX EVEX-encoded instruction length can exceed the 15 byte size limit.
2336 : 660 : (define_predicate "apx_evex_memory_operand"
2337 : 0 : (match_operand 0 "memory_operand")
2338 : : {
2339 : : /* OK if immediate operand size < 4 bytes. */
2340 : 1689 : if (GET_MODE_SIZE (mode) < 4)
2341 : 1689 : return true;
2342 : :
2343 : 1530 : bool default_addr = ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (op));
2344 : 1698 : bool address_size_prefix = TARGET_X32 && Pmode == SImode;
2345 : :
2346 : 1530 : struct ix86_address parts;
2347 : 1530 : int ok;
2348 : :
2349 : 1530 : op = XEXP (op, 0);
2350 : 1530 : ok = ix86_decompose_address (op, &parts);
2351 : 1530 : gcc_assert (ok);
2352 : :
2353 : 1530 : if (default_addr)
2354 : : {
2355 : : /* Default address space. */
2356 : :
2357 : : /* Not OK with address size prefix, index register and disp. */
2358 : 694 : if (address_size_prefix
2359 : 168 : && parts.index
2360 : 42 : && parts.disp
2361 : 42 : && parts.disp != const0_rtx)
2362 : : return false;
2363 : : }
2364 : : else
2365 : : {
2366 : : /* Non-default address space. */
2367 : :
2368 : : /* Not OK without base register. */
2369 : 836 : if (!parts.base)
2370 : : return false;
2371 : :
2372 : : /* Not OK with disp and address size prefix. */
2373 : 668 : if (address_size_prefix && parts.disp)
2374 : : return false;
2375 : : }
2376 : :
2377 : : return true;
2378 : : })
2379 : :
2380 : : ;; Return true if OP is a memory operand which can be used in APX EVEX-encoded
2381 : 1900 : ;; ADD patterns (i.e. APX NDD/NF) for with register source operand.
2382 : : ;; UNSPEC_GOTNTPOFF memory operand is allowed with APX EVEX-encoded ADD only if
2383 : 3589 : ;; R_X86_64_CODE_6_GOTTPOFF works.
2384 : 1689 : (define_predicate "apx_evex_add_memory_operand"
2385 : : (match_operand 0 "memory_operand")
2386 : : {
2387 : : /* OK if "add %reg1, name@gottpoff(%rip), %reg2" or
2388 : : "{nf} add name@gottpoff(%rip), %reg1" are supported. */
2389 : : if (HAVE_AS_R_X86_64_CODE_6_GOTTPOFF)
2390 : : return true;
2391 : :
2392 : : op = XEXP (op, 0);
2393 : :
2394 : : /* Disallow APX EVEX-encoded ADD with UNSPEC_GOTNTPOFF. */
2395 : : if (GET_CODE (op) == CONST
2396 : : && GET_CODE (XEXP (op, 0)) == UNSPEC
2397 : : && XINT (XEXP (op, 0), 1) == UNSPEC_GOTNTPOFF)
2398 : : return false;
2399 : :
2400 : : return true;
2401 : : })
2402 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2403 : : /* (content generated from line coverage data) */
2404 : 989 : /* ... */
2405 : : /* ... */
2406 : 989 : /* ... */
2407 : 989 : /* ... */
2408 : : /* ... */
2409 : : /* ... */
2410 : : /* ... */
2411 : 1004802584 : /* ... */
2412 : : /* ... */
2413 : 1004802584 : /* ... */
2414 : : /* ... */
2415 : : /* ... */
2416 : : /* ... */
2417 : 0 : /* ... */
2418 : 0 : /* ... */
2419 : 0 : /* ... */
2420 : 0 : /* ... */
2421 : 0 : /* ... */
2422 : 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2423 : 594493763 : /* (content generated from line coverage data) */
2424 : 594493763 : /* ... */
2425 : : /* ... */
2426 : : /* ... */
2427 : 7703037 : /* ... */
2428 : : /* ... */
2429 : 135638995 : /* ... */
2430 : : /* ... */
2431 : 146232 : /* ... */
2432 : : /* ... */
2433 : 1673198 : /* ... */
2434 : : /* ... */
2435 : 1394553 : /* ... */
2436 : : /* ... */
2437 : 55275666 : /* ... */
2438 : : /* ... */
2439 : 50397616 : /* ... */
2440 : : /* ... */
2441 : 104972328 : /* ... */
2442 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2443 : 39585843 : /* (content generated from line coverage data) */
2444 : : /* ... */
2445 : 123510054 : /* ... */
2446 : : /* ... */
2447 : 74195435 : /* ... */
2448 : : /* ... */
2449 : 806 : /* ... */
2450 : : /* ... */
2451 : 0 : /* ... */
2452 : 0 : /* ... */
2453 : 0 : /* ... */
2454 : 0 : /* ... */
2455 : 0 : /* ... */
2456 : 0 : /* ... */
2457 : 0 : /* ... */
2458 : 0 : /* ... */
2459 : 0 : /* ... */
2460 : 0 : /* ... */
2461 : 0 : /* ... */
2462 : 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2463 : 0 : /* (content generated from line coverage data) */
2464 : 0 : /* ... */
2465 : 0 : /* ... */
2466 : 0 : /* ... */
2467 : 0 : /* ... */
2468 : 0 : /* ... */
2469 : 0 : /* ... */
2470 : 0 : /* ... */
2471 : 0 : /* ... */
2472 : 0 : /* ... */
2473 : 0 : /* ... */
2474 : 0 : /* ... */
2475 : 0 : /* ... */
2476 : 0 : /* ... */
2477 : 0 : /* ... */
2478 : 0 : /* ... */
2479 : 0 : /* ... */
2480 : 0 : /* ... */
2481 : 40354175 : /* ... */
2482 : 40354175 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2483 : : /* (content generated from line coverage data) */
2484 : 22644 : /* ... */
2485 : : /* ... */
2486 : : /* ... */
2487 : 0 : /* ... */
2488 : 0 : /* ... */
2489 : 0 : /* ... */
2490 : 0 : /* ... */
2491 : 3470465 : /* ... */
2492 : 3470465 : /* ... */
2493 : : /* ... */
2494 : : /* ... */
2495 : 5370 : /* ... */
2496 : : /* ... */
2497 : 344228 : /* ... */
2498 : : /* ... */
2499 : 2775464 : /* ... */
2500 : : /* ... */
2501 : 271416 : /* ... */
2502 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2503 : 1418 : /* (content generated from line coverage data) */
2504 : : /* ... */
2505 : 240 : /* ... */
2506 : : /* ... */
2507 : 4901 : /* ... */
2508 : : /* ... */
2509 : 0 : /* ... */
2510 : 0 : /* ... */
2511 : 358109053 : /* ... */
2512 : 358109053 : /* ... */
2513 : : /* ... */
2514 : : /* ... */
2515 : 9597646 : /* ... */
2516 : : /* ... */
2517 : 1398417 : /* ... */
2518 : : /* ... */
2519 : 1531031 : /* ... */
2520 : : /* ... */
2521 : 19086 : /* ... */
2522 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2523 : 197896749 : /* (content generated from line coverage data) */
2524 : : /* ... */
2525 : 1087046 : /* ... */
2526 : : /* ... */
2527 : 141853534 : /* ... */
2528 : : /* ... */
2529 : 3165788 : /* ... */
2530 : : /* ... */
2531 : 395469 : /* ... */
2532 : : /* ... */
2533 : 1137186 : /* ... */
2534 : : /* ... */
2535 : 0 : /* ... */
2536 : 0 : /* ... */
2537 : 0 : /* ... */
2538 : 0 : /* ... */
2539 : 0 : /* ... */
2540 : 0 : /* ... */
2541 : 0 : /* ... */
2542 : 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2543 : 0 : /* (content generated from line coverage data) */
2544 : 0 : /* ... */
2545 : 0 : /* ... */
2546 : 0 : /* ... */
2547 : 0 : /* ... */
2548 : 0 : /* ... */
2549 : 0 : /* ... */
2550 : 0 : /* ... */
2551 : 8375128 : /* ... */
2552 : 8375128 : /* ... */
2553 : : /* ... */
2554 : : /* ... */
2555 : 1100832 : /* ... */
2556 : : /* ... */
2557 : 0 : /* ... */
2558 : : /* ... */
2559 : 0 : /* ... */
2560 : : /* ... */
2561 : 0 : /* ... */
2562 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2563 : 0 : /* (content generated from line coverage data) */
2564 : : /* ... */
2565 : 0 : /* ... */
2566 : : /* ... */
2567 : 213884 : /* ... */
2568 : : /* ... */
2569 : 8563 : /* ... */
2570 : : /* ... */
2571 : 6139464 : /* ... */
2572 : : /* ... */
2573 : 152912 : /* ... */
2574 : : /* ... */
2575 : 265058 : /* ... */
2576 : : /* ... */
2577 : 3698 : /* ... */
2578 : : /* ... */
2579 : 0 : /* ... */
2580 : : /* ... */
2581 : 0 : /* ... */
2582 : 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2583 : 0 : /* (content generated from line coverage data) */
2584 : 0 : /* ... */
2585 : 0 : /* ... */
2586 : 0 : /* ... */
2587 : 0 : /* ... */
2588 : 0 : /* ... */
2589 : 0 : /* ... */
2590 : 0 : /* ... */
2591 : 0 : /* ... */
2592 : 0 : /* ... */
2593 : 0 : /* ... */
2594 : 0 : /* ... */
2595 : 0 : /* ... */
2596 : 0 : /* ... */
2597 : 0 : /* ... */
2598 : 0 : /* ... */
2599 : 0 : /* ... */
2600 : 0 : /* ... */
2601 : 0 : /* ... */
2602 : 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2603 : 0 : /* (content generated from line coverage data) */
2604 : 0 : /* ... */
2605 : 0 : /* ... */
2606 : 0 : /* ... */
2607 : 0 : /* ... */
2608 : 0 : /* ... */
2609 : : /* ... */
2610 : : /* ... */
2611 : 1334 : /* ... */
2612 : : /* ... */
2613 : : /* ... */
2614 : : /* ... */
2615 : : /* ... */
2616 : : /* ... */
2617 : : /* ... */
2618 : : /* ... */
2619 : : /* ... */
2620 : : /* ... */
2621 : : /* ... */
2622 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2623 : : /* (content generated from line coverage data) */
2624 : : /* ... */
2625 : : /* ... */
2626 : : /* ... */
2627 : : /* ... */
2628 : : /* ... */
2629 : : /* ... */
2630 : : /* ... */
2631 : : /* ... */
2632 : : /* ... */
2633 : : /* ... */
2634 : : /* ... */
2635 : : /* ... */
2636 : : /* ... */
2637 : : /* ... */
2638 : : /* ... */
2639 : : /* ... */
2640 : : /* ... */
2641 : : /* ... */
2642 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2643 : : /* (content generated from line coverage data) */
2644 : : /* ... */
2645 : : /* ... */
2646 : : /* ... */
2647 : : /* ... */
2648 : : /* ... */
2649 : : /* ... */
2650 : : /* ... */
2651 : : /* ... */
2652 : : /* ... */
2653 : : /* ... */
2654 : : /* ... */
2655 : : /* ... */
2656 : : /* ... */
2657 : : /* ... */
2658 : : /* ... */
2659 : : /* ... */
2660 : : /* ... */
2661 : : /* ... */
2662 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2663 : : /* (content generated from line coverage data) */
2664 : : /* ... */
2665 : : /* ... */
2666 : : /* ... */
2667 : : /* ... */
2668 : : /* ... */
2669 : : /* ... */
2670 : : /* ... */
2671 : : /* ... */
2672 : : /* ... */
2673 : : /* ... */
2674 : : /* ... */
2675 : : /* ... */
2676 : : /* ... */
2677 : : /* ... */
2678 : : /* ... */
2679 : : /* ... */
2680 : : /* ... */
2681 : : /* ... */
2682 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2683 : : /* (content generated from line coverage data) */
2684 : : /* ... */
2685 : : /* ... */
2686 : : /* ... */
2687 : : /* ... */
2688 : : /* ... */
2689 : : /* ... */
2690 : : /* ... */
2691 : : /* ... */
2692 : : /* ... */
2693 : : /* ... */
2694 : : /* ... */
2695 : : /* ... */
2696 : : /* ... */
2697 : : /* ... */
2698 : : /* ... */
2699 : : /* ... */
2700 : : /* ... */
2701 : : /* ... */
2702 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2703 : : /* (content generated from line coverage data) */
2704 : : /* ... */
2705 : : /* ... */
2706 : : /* ... */
2707 : : /* ... */
2708 : : /* ... */
2709 : : /* ... */
2710 : : /* ... */
2711 : : /* ... */
2712 : : /* ... */
2713 : : /* ... */
2714 : : /* ... */
2715 : : /* ... */
2716 : : /* ... */
2717 : : /* ... */
2718 : : /* ... */
2719 : : /* ... */
2720 : : /* ... */
2721 : : /* ... */
2722 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2723 : : /* (content generated from line coverage data) */
2724 : : /* ... */
2725 : : /* ... */
2726 : : /* ... */
2727 : : /* ... */
2728 : : /* ... */
2729 : : /* ... */
2730 : : /* ... */
2731 : : /* ... */
2732 : : /* ... */
2733 : : /* ... */
2734 : : /* ... */
2735 : : /* ... */
2736 : : /* ... */
2737 : : /* ... */
2738 : : /* ... */
2739 : : /* ... */
2740 : : /* ... */
2741 : : /* ... */
2742 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2743 : : /* (content generated from line coverage data) */
2744 : : /* ... */
2745 : : /* ... */
2746 : : /* ... */
2747 : : /* ... */
2748 : : /* ... */
2749 : : /* ... */
2750 : : /* ... */
2751 : : /* ... */
2752 : : /* ... */
2753 : : /* ... */
2754 : : /* ... */
2755 : : /* ... */
2756 : : /* ... */
2757 : : /* ... */
2758 : : /* ... */
2759 : : /* ... */
2760 : : /* ... */
2761 : : /* ... */
2762 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2763 : : /* (content generated from line coverage data) */
2764 : : /* ... */
2765 : : /* ... */
2766 : : /* ... */
2767 : : /* ... */
2768 : : /* ... */
2769 : : /* ... */
2770 : : /* ... */
2771 : : /* ... */
2772 : : /* ... */
2773 : : /* ... */
2774 : : /* ... */
2775 : : /* ... */
2776 : : /* ... */
2777 : : /* ... */
2778 : : /* ... */
2779 : : /* ... */
2780 : : /* ... */
2781 : : /* ... */
2782 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2783 : : /* (content generated from line coverage data) */
2784 : : /* ... */
2785 : : /* ... */
2786 : : /* ... */
2787 : : /* ... */
2788 : : /* ... */
2789 : : /* ... */
2790 : : /* ... */
2791 : : /* ... */
2792 : : /* ... */
2793 : : /* ... */
2794 : : /* ... */
2795 : : /* ... */
2796 : : /* ... */
2797 : : /* ... */
2798 : : /* ... */
2799 : : /* ... */
2800 : : /* ... */
2801 : : /* ... */
2802 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2803 : : /* (content generated from line coverage data) */
2804 : : /* ... */
2805 : : /* ... */
2806 : : /* ... */
2807 : : /* ... */
2808 : : /* ... */
2809 : : /* ... */
2810 : : /* ... */
2811 : : /* ... */
2812 : : /* ... */
2813 : : /* ... */
2814 : : /* ... */
2815 : : /* ... */
2816 : : /* ... */
2817 : : /* ... */
2818 : : /* ... */
2819 : : /* ... */
2820 : : /* ... */
2821 : : /* ... */
2822 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2823 : : /* (content generated from line coverage data) */
2824 : : /* ... */
2825 : : /* ... */
2826 : : /* ... */
2827 : : /* ... */
2828 : : /* ... */
2829 : : /* ... */
2830 : : /* ... */
2831 : : /* ... */
2832 : : /* ... */
2833 : : /* ... */
2834 : : /* ... */
2835 : : /* ... */
2836 : : /* ... */
2837 : : /* ... */
2838 : : /* ... */
2839 : : /* ... */
2840 : : /* ... */
2841 : : /* ... */
2842 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2843 : : /* (content generated from line coverage data) */
2844 : : /* ... */
2845 : : /* ... */
2846 : : /* ... */
2847 : : /* ... */
2848 : : /* ... */
2849 : : /* ... */
2850 : : /* ... */
2851 : : /* ... */
2852 : : /* ... */
2853 : : /* ... */
2854 : : /* ... */
2855 : : /* ... */
2856 : : /* ... */
2857 : : /* ... */
2858 : : /* ... */
2859 : : /* ... */
2860 : : /* ... */
2861 : : /* ... */
2862 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2863 : : /* (content generated from line coverage data) */
2864 : : /* ... */
2865 : : /* ... */
2866 : : /* ... */
2867 : : /* ... */
2868 : : /* ... */
2869 : : /* ... */
2870 : : /* ... */
2871 : : /* ... */
2872 : : /* ... */
2873 : : /* ... */
2874 : 7343868712 : /* ... */
2875 : : /* ... */
2876 : 7343868712 : /* ... */
2877 : : /* ... */
2878 : : /* ... */
2879 : : /* ... */
2880 : 146682516 : /* ... */
2881 : : /* ... */
2882 : 53401403 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2883 : 22980930 : /* (content generated from line coverage data) */
2884 : : /* ... */
2885 : 23861065 : /* ... */
2886 : 9225962 : /* ... */
2887 : 690783 : /* ... */
2888 : 861568 : /* ... */
2889 : 710989 : /* ... */
2890 : 1420045 : /* ... */
2891 : 219028737 : /* ... */
2892 : 81659 : /* ... */
2893 : 8627 : /* ... */
2894 : 904172 : /* ... */
2895 : 44754884 : /* ... */
2896 : 661795025 : /* ... */
2897 : 243009092 : /* ... */
2898 : 1516163777 : /* ... */
2899 : 14085 : /* ... */
2900 : 9597646 : /* ... */
2901 : 1398417 : /* ... */
2902 : 0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2903 : 1531031 : /* (content generated from line coverage data) */
2904 : 14350 : /* ... */
2905 : 187195765 : /* ... */
2906 : 309454 : /* ... */
2907 : 141693604 : /* ... */
2908 : 2875029 : /* ... */
2909 : 351877 : /* ... */
2910 : : /* ... */
2911 : 81441 : /* ... */
2912 : 6139464 : /* ... */
2913 : : /* ... */
2914 : : /* ... */
2915 : : /* ... */
2916 : : /* ... */
2917 : : /* ... */
2918 : : /* ... */
2919 : : /* ... */
2920 : : /* ... */
2921 : : /* ... */
2922 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2923 : : /* (content generated from line coverage data) */
2924 : : /* ... */
2925 : : /* ... */
2926 : : /* ... */
2927 : : /* ... */
2928 : : /* ... */
2929 : : /* ... */
2930 : : /* ... */
2931 : : /* ... */
2932 : : /* ... */
2933 : : /* ... */
2934 : : /* ... */
2935 : : /* ... */
2936 : : /* ... */
2937 : : /* ... */
2938 : : /* ... */
2939 : : /* ... */
2940 : : /* ... */
2941 : : /* ... */
2942 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2943 : : /* (content generated from line coverage data) */
2944 : : /* ... */
2945 : : /* ... */
2946 : : /* ... */
2947 : : /* ... */
2948 : : /* ... */
2949 : : /* ... */
2950 : : /* ... */
2951 : : /* ... */
2952 : : /* ... */
2953 : : /* ... */
2954 : : /* ... */
2955 : : /* ... */
2956 : : /* ... */
2957 : : /* ... */
2958 : : /* ... */
2959 : : /* ... */
2960 : : /* ... */
2961 : : /* ... */
2962 : : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2963 : : /* (content generated from line coverage data) */
2964 : : /* ... */
2965 : : /* ... */
2966 : : /* ... */
2967 : : /* ... */
2968 : : /* ... */
2969 : : /* ... */
2970 : : /* ... */
2971 : : /* ... */
2972 : : /* ... */
2973 : : /* ... */
2974 : : /* ... */
2975 : : /* ... */
2976 : : /* ... */
2977 : : /* ... */
2978 : : /* ... */
2979 : : /* ... */
2980 : 7153111 : /* ... */
2981 : : /* ... */
2982 : 7153111 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
2983 : : /* (content generated from line coverage data) */
2984 : 1410797 : /* ... */
2985 : 1410797 : /* ... */
|