1 ;; Predicate definitions for Renesas / SuperH SH.
2 ;; Copyright (C) 2005 Free Software Foundation, Inc.
4 ;; This file is part of GCC.
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 2, or (at your option)
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.
16 ;; You should have received a copy of the GNU General Public License
17 ;; along with GCC; see the file COPYING. If not, write to
18 ;; the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 ;; Boston, MA 02110-1301, USA.
21 ;; TODO: Add a comment here.
23 (define_predicate "trapping_target_operand"
24 (match_code "if_then_else")
26 rtx cond, mem, res, tar, and;
28 if (GET_MODE (op) != PDImode)
33 if (GET_CODE (mem) != MEM
34 || (GET_CODE (res) != SIGN_EXTEND && GET_CODE (res) != TRUNCATE))
37 if (!rtx_equal_p (XEXP (mem, 0), tar)
38 || GET_MODE (tar) != Pmode)
40 if (GET_CODE (cond) == CONST)
42 cond = XEXP (cond, 0);
43 if (!EXTRA_CONSTRAINT_Csy (tar))
45 if (GET_CODE (tar) == CONST)
48 else if (!arith_reg_operand (tar, VOIDmode)
49 && ! EXTRA_CONSTRAINT_Csy (tar))
51 if (GET_CODE (cond) != EQ)
54 return (GET_CODE (and) == AND
55 && rtx_equal_p (XEXP (and, 0), tar)
56 && GET_CODE (XEXP (and, 1)) == CONST_INT
57 && GET_CODE (XEXP (cond, 1)) == CONST_INT
58 && INTVAL (XEXP (and, 1)) == 3
59 && INTVAL (XEXP (cond, 1)) == 3);
62 ;; TODO: Add a comment here.
64 (define_predicate "and_operand"
65 (match_code "subreg,reg,const_int")
67 if (logical_operand (op, mode))
70 /* Check mshflo.l / mshflhi.l opportunities. */
73 && GET_CODE (op) == CONST_INT
74 && CONST_OK_FOR_J16 (INTVAL (op)))
80 ;; Like arith_reg_dest, but this predicate is defined with
81 ;; define_special_predicate, not define_predicate.
83 (define_special_predicate "any_arith_reg_dest"
84 (match_code "subreg,reg")
86 return arith_reg_dest (op, mode);
89 ;; Like register_operand, but this predicate is defined with
90 ;; define_special_predicate, not define_predicate.
92 (define_special_predicate "any_register_operand"
93 (match_code "subreg,reg")
95 return register_operand (op, mode);
98 ;; Returns 1 if OP is a valid source operand for an arithmetic insn.
100 (define_predicate "arith_operand"
101 (match_code "subreg,reg,const_int,truncate")
103 if (arith_reg_operand (op, mode))
108 /* FIXME: We should be checking whether the CONST_INT fits in a
109 CONST_OK_FOR_I16 here, but this causes reload_cse to crash when
110 attempting to transform a sequence of two 64-bit sets of the
111 same register from literal constants into a set and an add,
112 when the difference is too wide for an add. */
113 if (GET_CODE (op) == CONST_INT
114 || EXTRA_CONSTRAINT_C16 (op))
116 else if (GET_CODE (op) == TRUNCATE
117 && ! system_reg_operand (XEXP (op, 0), VOIDmode)
118 && (mode == VOIDmode || mode == GET_MODE (op))
119 && (GET_MODE_SIZE (GET_MODE (op))
120 < GET_MODE_SIZE (GET_MODE (XEXP (op, 0))))
121 && (! FP_REGISTER_P (REGNO (XEXP (op, 0)))
122 || GET_MODE_SIZE (GET_MODE (op)) == 4))
123 return register_operand (XEXP (op, 0), VOIDmode);
127 else if (GET_CODE (op) == CONST_INT && CONST_OK_FOR_I08 (INTVAL (op)))
133 ;; Like above, but for DImode destinations: forbid paradoxical DImode
134 ;; subregs, because this would lead to missing sign extensions when
135 ;; truncating from DImode to SImode.
137 (define_predicate "arith_reg_dest"
138 (match_code "subreg,reg")
140 if (mode == DImode && GET_CODE (op) == SUBREG
141 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) < 8
144 return arith_reg_operand (op, mode);
147 ;; Returns 1 if OP is a normal arithmetic register.
149 (define_predicate "arith_reg_operand"
150 (match_code "subreg,reg,sign_extend")
152 if (register_operand (op, mode))
156 if (GET_CODE (op) == REG)
158 else if (GET_CODE (op) == SUBREG && GET_CODE (SUBREG_REG (op)) == REG)
159 regno = REGNO (SUBREG_REG (op));
163 return (regno != T_REG && regno != PR_REG
164 && ! TARGET_REGISTER_P (regno)
165 && (regno != FPUL_REG || TARGET_SH4)
166 && regno != MACH_REG && regno != MACL_REG);
168 /* Allow a no-op sign extension - compare LOAD_EXTEND_OP.
169 We allow SImode here, as not using an FP register is just a matter of
170 proper register allocation. */
172 && GET_MODE (op) == DImode && GET_CODE (op) == SIGN_EXTEND
173 && GET_MODE (XEXP (op, 0)) == SImode
174 && GET_CODE (XEXP (op, 0)) != SUBREG)
175 return register_operand (XEXP (op, 0), VOIDmode);
176 #if 0 /* Can't do this because of PROMOTE_MODE for unsigned vars. */
177 if (GET_MODE (op) == SImode && GET_CODE (op) == SIGN_EXTEND
178 && GET_MODE (XEXP (op, 0)) == HImode
179 && GET_CODE (XEXP (op, 0)) == REG
180 && REGNO (XEXP (op, 0)) <= LAST_GENERAL_REG)
181 return register_operand (XEXP (op, 0), VOIDmode);
183 if (GET_MODE_CLASS (GET_MODE (op)) == MODE_VECTOR_INT
184 && GET_CODE (op) == SUBREG
185 && GET_MODE (SUBREG_REG (op)) == DImode
186 && GET_CODE (SUBREG_REG (op)) == SIGN_EXTEND
187 && GET_MODE (XEXP (SUBREG_REG (op), 0)) == SImode
188 && GET_CODE (XEXP (SUBREG_REG (op), 0)) != SUBREG)
189 return register_operand (XEXP (SUBREG_REG (op), 0), VOIDmode);
193 ;; Returns 1 if OP is a valid source operand for a compare insn.
195 (define_predicate "arith_reg_or_0_operand"
196 (match_code "subreg,reg,const_int,const_vector")
198 if (arith_reg_operand (op, mode))
201 if (EXTRA_CONSTRAINT_Z (op))
207 ;; TODO: Add a comment here.
209 (define_predicate "binary_float_operator"
210 (match_code "plus,minus,mult,div")
212 if (GET_MODE (op) != mode)
214 switch (GET_CODE (op))
227 ;; TODO: Add a comment here.
229 (define_predicate "binary_logical_operator"
230 (match_code "and,ior,xor")
232 if (GET_MODE (op) != mode)
234 switch (GET_CODE (op))
246 ;; TODO: Add a comment here.
248 (define_predicate "cache_address_operand"
249 (match_code "plus,reg")
251 if (GET_CODE (op) == PLUS)
253 if (GET_CODE (XEXP (op, 0)) != REG)
255 if (GET_CODE (XEXP (op, 1)) != CONST_INT
256 || (INTVAL (XEXP (op, 1)) & 31))
259 else if (GET_CODE (op) != REG)
261 return address_operand (op, mode);
264 ;; Return 1 if OP is a valid source operand for shmedia cmpgt / cmpgtu.
266 (define_predicate "cmp_operand"
267 (match_code "subreg,reg,const_int")
269 if (GET_CODE (op) == CONST_INT && CONST_OK_FOR_N (INTVAL (op)))
272 && mode != DImode && GET_CODE (op) == SUBREG
273 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) > 4)
275 return arith_reg_operand (op, mode);
278 ;; TODO: Add a comment here.
280 (define_predicate "cmpsi_operand"
281 (match_code "subreg,reg,const_int")
283 if (GET_CODE (op) == REG && REGNO (op) == T_REG
284 && GET_MODE (op) == SImode
287 return arith_operand (op, mode);
290 ;; TODO: Add a comment here.
292 (define_predicate "commutative_float_operator"
293 (match_code "plus,mult")
295 if (GET_MODE (op) != mode)
297 switch (GET_CODE (op))
308 ;; TODO: Add a comment here.
310 (define_predicate "equality_comparison_operator"
313 return ((mode == VOIDmode || GET_MODE (op) == mode)
314 && (GET_CODE (op) == EQ || GET_CODE (op) == NE));
317 ;; TODO: Add a comment here.
319 (define_predicate "extend_reg_operand"
320 (match_code "subreg,reg,truncate")
322 return (GET_CODE (op) == TRUNCATE
324 : arith_reg_operand) (op, mode);
327 ;; TODO: Add a comment here.
329 (define_predicate "extend_reg_or_0_operand"
330 (match_code "subreg,reg,truncate,const_int")
332 return (GET_CODE (op) == TRUNCATE
334 : arith_reg_or_0_operand) (op, mode);
337 ;; Like arith_reg_operand, but this predicate does not accept SIGN_EXTEND.
339 (define_predicate "ext_dest_operand"
340 (match_code "subreg,reg")
342 return arith_reg_operand (op, mode);
345 ;; TODO: Add a comment here.
347 (define_predicate "fp_arith_reg_dest"
348 (match_code "subreg,reg")
350 if (mode == DImode && GET_CODE (op) == SUBREG
351 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) < 8)
353 return fp_arith_reg_operand (op, mode);
356 ;; TODO: Add a comment here.
358 (define_predicate "fp_arith_reg_operand"
359 (match_code "subreg,reg")
361 if (register_operand (op, mode))
365 if (GET_CODE (op) == REG)
367 else if (GET_CODE (op) == SUBREG && GET_CODE (SUBREG_REG (op)) == REG)
368 regno = REGNO (SUBREG_REG (op));
372 return (regno >= FIRST_PSEUDO_REGISTER
373 || FP_REGISTER_P (regno));
378 ;; TODO: Add a comment here.
380 (define_predicate "fpscr_operand"
383 return (GET_CODE (op) == REG
384 && (REGNO (op) == FPSCR_REG
385 || (REGNO (op) >= FIRST_PSEUDO_REGISTER
386 && !(reload_in_progress || reload_completed)))
387 && GET_MODE (op) == PSImode);
390 ;; TODO: Add a comment here.
392 (define_predicate "fpul_operand"
396 return fp_arith_reg_operand (op, mode);
398 return (GET_CODE (op) == REG
399 && (REGNO (op) == FPUL_REG || REGNO (op) >= FIRST_PSEUDO_REGISTER)
400 && GET_MODE (op) == mode);
403 ;; TODO: Add a comment here.
405 (define_predicate "general_extend_operand"
406 (match_code "subreg,reg,mem,truncate")
408 return (GET_CODE (op) == TRUNCATE
410 : nonimmediate_operand) (op, mode);
413 ;; Returns 1 if OP can be source of a simple move operation. Same as
414 ;; general_operand, but a LABEL_REF is valid, PRE_DEC is invalid as
415 ;; are subregs of system registers.
417 (define_predicate "general_movsrc_operand"
418 (match_code "subreg,reg,const_int,const_double,mem,symbol_ref,label_ref,const,const_vector")
420 if (GET_CODE (op) == MEM)
422 rtx inside = XEXP (op, 0);
423 if (GET_CODE (inside) == CONST)
424 inside = XEXP (inside, 0);
426 if (GET_CODE (inside) == LABEL_REF)
429 if (GET_CODE (inside) == PLUS
430 && GET_CODE (XEXP (inside, 0)) == LABEL_REF
431 && GET_CODE (XEXP (inside, 1)) == CONST_INT)
434 /* Only post inc allowed. */
435 if (GET_CODE (inside) == PRE_DEC)
439 if ((mode == QImode || mode == HImode)
440 && (GET_CODE (op) == SUBREG
441 && GET_CODE (XEXP (op, 0)) == REG
442 && system_reg_operand (XEXP (op, 0), mode)))
446 && (GET_CODE (op) == PARALLEL || GET_CODE (op) == CONST_VECTOR)
447 && sh_rep_vec (op, mode))
449 if (TARGET_SHMEDIA && 1
450 && GET_CODE (op) == SUBREG && GET_MODE (op) == mode
451 && SUBREG_REG (op) == const0_rtx && subreg_lowpart_p (op))
452 /* FIXME */ abort (); /* return 1; */
453 return general_operand (op, mode);
456 ;; Returns 1 if OP can be a destination of a move. Same as
457 ;; general_operand, but no preinc allowed.
459 (define_predicate "general_movdst_operand"
460 (match_code "subreg,reg,mem")
462 /* Only pre dec allowed. */
463 if (GET_CODE (op) == MEM && GET_CODE (XEXP (op, 0)) == POST_INC)
465 if (mode == DImode && TARGET_SHMEDIA && GET_CODE (op) == SUBREG
466 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) < 8
467 && ! (high_life_started || reload_completed))
470 return general_operand (op, mode);
473 ;; Returns 1 if OP is a MEM that can be source of a simple move operation.
475 (define_predicate "unaligned_load_operand"
480 if (GET_CODE (op) != MEM || GET_MODE (op) != mode)
483 inside = XEXP (op, 0);
485 if (GET_CODE (inside) == POST_INC)
486 inside = XEXP (inside, 0);
488 if (GET_CODE (inside) == REG)
494 ;; TODO: Add a comment here.
496 (define_predicate "greater_comparison_operator"
497 (match_code "gt,ge,gtu,geu")
499 if (mode != VOIDmode && GET_MODE (op) != mode)
501 switch (GET_CODE (op))
513 ;; TODO: Add a comment here.
515 (define_predicate "inqhi_operand"
516 (match_code "truncate")
518 if (GET_CODE (op) != TRUNCATE || mode != GET_MODE (op))
521 /* Can't use true_regnum here because copy_cost wants to know about
522 SECONDARY_INPUT_RELOAD_CLASS. */
523 return GET_CODE (op) == REG && FP_REGISTER_P (REGNO (op));
526 ;; TODO: Add a comment here.
528 (define_special_predicate "int_gpr_dest"
529 (match_code "subreg,reg")
531 enum machine_mode op_mode = GET_MODE (op);
533 if (GET_MODE_CLASS (op_mode) != MODE_INT
534 || GET_MODE_SIZE (op_mode) >= UNITS_PER_WORD)
536 if (! reload_completed)
538 return true_regnum (op) <= LAST_GENERAL_REG;
541 ;; TODO: Add a comment here.
543 (define_predicate "less_comparison_operator"
544 (match_code "lt,le,ltu,leu")
546 if (mode != VOIDmode && GET_MODE (op) != mode)
548 switch (GET_CODE (op))
560 ;; Returns 1 if OP is a valid source operand for a logical operation.
562 (define_predicate "logical_operand"
563 (match_code "subreg,reg,const_int")
566 && mode != DImode && GET_CODE (op) == SUBREG
567 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) > 4)
570 if (arith_reg_operand (op, mode))
575 if (GET_CODE (op) == CONST_INT && CONST_OK_FOR_I10 (INTVAL (op)))
580 else if (GET_CODE (op) == CONST_INT && CONST_OK_FOR_K08 (INTVAL (op)))
586 ;; TODO: Add a comment here.
588 (define_predicate "logical_operator"
589 (match_code "and,ior,xor")
591 if (mode != VOIDmode && GET_MODE (op) != mode)
593 switch (GET_CODE (op))
604 ;; Like arith_reg_operand, but for register source operands of narrow
605 ;; logical SHMEDIA operations: forbid subregs of DImode / TImode regs.
607 (define_predicate "logical_reg_operand"
608 (match_code "subreg,reg")
611 && GET_CODE (op) == SUBREG
612 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) > 4
615 return arith_reg_operand (op, mode);
618 ;; TODO: Add a comment here.
620 (define_predicate "mextr_bit_offset"
621 (match_code "const_int")
625 if (GET_CODE (op) != CONST_INT)
628 return i >= 1 * 8 && i <= 7 * 8 && (i & 7) == 0;
631 ;; TODO: Add a comment here.
633 (define_predicate "minuend_operand"
634 (match_code "subreg,reg,truncate,const_int")
636 return op == constm1_rtx || extend_reg_or_0_operand (op, mode);
639 ;; TODO: Add a comment here.
641 (define_predicate "noncommutative_float_operator"
642 (match_code "minus,div")
644 if (GET_MODE (op) != mode)
646 switch (GET_CODE (op))
657 ;; TODO: Add a comment here.
659 (define_predicate "sh_const_vec"
660 (match_code "const_vector")
664 if (GET_CODE (op) != CONST_VECTOR
665 || (GET_MODE (op) != mode && mode != VOIDmode))
667 i = XVECLEN (op, 0) - 1;
669 if (GET_CODE (XVECEXP (op, 0, i)) != CONST_INT)
674 ;; Determine if OP is a constant vector matching MODE with only one
675 ;; element that is not a sign extension. Two byte-sized elements
678 (define_predicate "sh_1el_vec"
679 (match_code "const_vector")
682 int i, last, least, sign_ix;
685 if (GET_CODE (op) != CONST_VECTOR
686 || (GET_MODE (op) != mode && mode != VOIDmode))
688 /* Determine numbers of last and of least significant elements. */
689 last = XVECLEN (op, 0) - 1;
690 least = TARGET_LITTLE_ENDIAN ? 0 : last;
691 if (GET_CODE (XVECEXP (op, 0, least)) != CONST_INT)
694 if (GET_MODE_UNIT_SIZE (mode) == 1)
695 sign_ix = TARGET_LITTLE_ENDIAN ? 1 : last - 1;
696 if (GET_CODE (XVECEXP (op, 0, sign_ix)) != CONST_INT)
698 unit_size = GET_MODE_UNIT_SIZE (GET_MODE (op));
699 sign = (INTVAL (XVECEXP (op, 0, sign_ix)) >> (unit_size * BITS_PER_UNIT - 1)
700 ? constm1_rtx : const0_rtx);
701 i = XVECLEN (op, 0) - 1;
703 if (i != least && i != sign_ix && XVECEXP (op, 0, i) != sign)
709 ;; Like register_operand, but take into account that SHMEDIA can use
710 ;; the constant zero like a general register.
712 (define_predicate "sh_register_operand"
713 (match_code "reg,subreg,const_int")
715 if (op == CONST0_RTX (mode) && TARGET_SHMEDIA)
717 return register_operand (op, mode);
720 ;; TODO: Add a comment here.
722 (define_predicate "sh_rep_vec"
723 (match_code "const_vector")
728 if ((GET_CODE (op) != CONST_VECTOR && GET_CODE (op) != PARALLEL)
729 || (GET_MODE (op) != mode && mode != VOIDmode))
731 i = XVECLEN (op, 0) - 2;
732 x = XVECEXP (op, 0, i + 1);
733 if (GET_MODE_UNIT_SIZE (mode) == 1)
735 y = XVECEXP (op, 0, i);
736 for (i -= 2; i >= 0; i -= 2)
737 if (! rtx_equal_p (XVECEXP (op, 0, i + 1), x)
738 || ! rtx_equal_p (XVECEXP (op, 0, i), y))
743 if (XVECEXP (op, 0, i) != x)
748 ;; TODO: Add a comment here.
750 (define_predicate "shift_count_operand"
751 (match_code "const_int,const_double,const,symbol_ref,label_ref,subreg,reg,zero_extend,sign_extend")
753 return (CONSTANT_P (op)
754 ? (GET_CODE (op) == CONST_INT
755 ? (unsigned) INTVAL (op) < GET_MODE_BITSIZE (mode)
756 : nonmemory_operand (op, mode))
757 : shift_count_reg_operand (op, mode));
760 ;; TODO: Add a comment here.
762 (define_predicate "shift_count_reg_operand"
763 (match_code "subreg,reg,zero_extend,sign_extend")
765 if ((GET_CODE (op) == ZERO_EXTEND || GET_CODE (op) == SIGN_EXTEND
766 || (GET_CODE (op) == SUBREG && SUBREG_BYTE (op) == 0))
767 && (mode == VOIDmode || mode == GET_MODE (op))
768 && GET_MODE_BITSIZE (GET_MODE (XEXP (op, 0))) >= 6
769 && GET_MODE_CLASS (GET_MODE (XEXP (op, 0))) == MODE_INT)
774 while ((GET_CODE (op) == ZERO_EXTEND || GET_CODE (op) == SIGN_EXTEND
775 || GET_CODE (op) == TRUNCATE)
776 && GET_MODE_BITSIZE (GET_MODE (XEXP (op, 0))) >= 6
777 && GET_MODE_CLASS (GET_MODE (XEXP (op, 0))) == MODE_INT);
780 return arith_reg_operand (op, mode);
783 ;; TODO: Add a comment here.
785 (define_predicate "shift_operator"
786 (match_code "ashift,ashiftrt,lshiftrt")
788 if (mode != VOIDmode && GET_MODE (op) != mode)
790 switch (GET_CODE (op))
801 ;; TODO: Add a comment here.
803 (define_predicate "symbol_ref_operand"
804 (match_code "symbol_ref")
806 return (GET_CODE (op) == SYMBOL_REF);
809 ;; Same as target_reg_operand, except that label_refs and symbol_refs
810 ;; are accepted before reload.
812 (define_special_predicate "target_operand"
813 (match_code "subreg,reg,label_ref,symbol_ref,const,unspec")
815 if (mode != VOIDmode && mode != Pmode)
818 if ((GET_MODE (op) == Pmode || GET_MODE (op) == VOIDmode)
819 && EXTRA_CONSTRAINT_Csy (op))
820 return ! reload_completed;
822 return target_reg_operand (op, mode);
825 ;; Accept pseudos and branch target registers.
827 (define_special_predicate "target_reg_operand"
828 (match_code "subreg,reg")
831 ? GET_MODE (op) != Pmode && GET_MODE (op) != PDImode
832 : mode != GET_MODE (op))
835 if (GET_CODE (op) == SUBREG)
838 if (GET_CODE (op) != REG)
841 /* We must protect ourselves from matching pseudos that are virtual
842 register, because they will eventually be replaced with hardware
843 registers that aren't branch-target registers. */
844 if (REGNO (op) > LAST_VIRTUAL_REGISTER
845 || TARGET_REGISTER_P (REGNO (op)))
851 ;; TODO: Add a comment here.
853 (define_special_predicate "trunc_hi_operand"
854 (match_code "subreg,reg,truncate")
856 enum machine_mode op_mode = GET_MODE (op);
858 if (op_mode != SImode && op_mode != DImode
859 && op_mode != V4HImode && op_mode != V2SImode)
861 return extend_reg_operand (op, mode);
864 ;; TODO: Add a comment here.
866 (define_predicate "ua_address_operand"
867 (match_code "subreg,reg,plus")
869 if (GET_CODE (op) == PLUS
870 && (GET_CODE (XEXP (op, 1)) != CONST_INT
871 || ! CONST_OK_FOR_I06 (INTVAL (XEXP (op, 1)))))
873 return address_operand (op, QImode);
876 ;; TODO: Add a comment here.
878 (define_predicate "ua_offset"
879 (match_code "const_int")
881 return GET_CODE (op) == CONST_INT && CONST_OK_FOR_I06 (INTVAL (op));
884 ;; TODO: Add a comment here.
886 (define_predicate "unary_float_operator"
887 (match_code "abs,neg,sqrt")
889 if (GET_MODE (op) != mode)
891 switch (GET_CODE (op))
903 ;; Return 1 if OP is a valid source operand for xor.
905 (define_predicate "xor_operand"
906 (match_code "subreg,reg,const_int")
908 if (GET_CODE (op) == CONST_INT)
909 return (TARGET_SHMEDIA
910 ? (CONST_OK_FOR_I06 (INTVAL (op))
911 || (no_new_pseudos && INTVAL (op) == 0xff))
912 : CONST_OK_FOR_K08 (INTVAL (op)));
914 && mode != DImode && GET_CODE (op) == SUBREG
915 && GET_MODE_SIZE (GET_MODE (SUBREG_REG (op))) > 4)
917 return arith_reg_operand (op, mode);