1 /* Target Code for ft32
2 Copyright (C) 2015 Free Software Foundation
3 Contributed by FTDI <support@ftdi.com>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
23 #include "coretypes.h"
27 #include "hard-reg-set.h"
28 #include "insn-config.h"
29 #include "conditions.h"
30 #include "insn-flags.h"
32 #include "insn-attr.h"
36 #include "diagnostic-core.h"
41 #include "stor-layout.h"
49 #include "langhooks.h"
50 #include "dominance.h"
56 #include "cfgcleanup.h"
58 #include "basic-block.h"
65 #define LOSE_AND_RETURN(msgid, x) \
68 ft32_operand_lossage (msgid, x); \
72 /* Worker function for TARGET_RETURN_IN_MEMORY. */
75 ft32_return_in_memory (const_tree type
, const_tree fntype ATTRIBUTE_UNUSED
)
77 const HOST_WIDE_INT size
= int_size_in_bytes (type
);
78 return (size
== -1 || size
> 2 * UNITS_PER_WORD
);
81 /* Define how to find the value returned by a function.
82 VALTYPE is the data type of the value (as a tree).
83 If the precise function being called is known, FUNC is its
84 FUNCTION_DECL; otherwise, FUNC is 0.
86 We always return values in register $r0 for ft32. */
89 ft32_function_value (const_tree valtype
,
90 const_tree fntype_or_decl ATTRIBUTE_UNUSED
,
91 bool outgoing ATTRIBUTE_UNUSED
)
93 return gen_rtx_REG (TYPE_MODE (valtype
), FT32_R0
);
96 /* Define how to find the value returned by a library function.
98 We always return values in register $r0 for ft32. */
101 ft32_libcall_value (enum machine_mode mode
, const_rtx fun ATTRIBUTE_UNUSED
)
103 return gen_rtx_REG (mode
, FT32_R0
);
106 /* Handle TARGET_FUNCTION_VALUE_REGNO_P.
108 We always return values in register $r0 for ft32. */
111 ft32_function_value_regno_p (const unsigned int regno
)
113 return (regno
== FT32_R0
);
116 /* Emit an error message when we're in an asm, and a fatal error for
117 "normal" insns. Formatted output isn't easily implemented, since we
118 use output_operand_lossage to output the actual message and handle the
119 categorization of the error. */
122 ft32_operand_lossage (const char *msgid
, rtx op
)
125 output_operand_lossage ("%s", msgid
);
128 /* The PRINT_OPERAND_ADDRESS worker. */
131 ft32_print_operand_address (FILE * file
, rtx x
)
133 switch (GET_CODE (x
))
136 fprintf (file
, "%s,0", reg_names
[REGNO (x
)]);
140 switch (GET_CODE (XEXP (x
, 1)))
143 fprintf (file
, "%s,%ld",
144 reg_names
[REGNO (XEXP (x
, 0))], INTVAL (XEXP (x
, 1)));
147 output_addr_const (file
, XEXP (x
, 1));
148 fprintf (file
, "(%s)", reg_names
[REGNO (XEXP (x
, 0))]);
152 rtx plus
= XEXP (XEXP (x
, 1), 0);
153 if (GET_CODE (XEXP (plus
, 0)) == SYMBOL_REF
154 && CONST_INT_P (XEXP (plus
, 1)))
156 output_addr_const (file
, XEXP (plus
, 0));
157 fprintf (file
, "+%ld(%s)", INTVAL (XEXP (plus
, 1)),
158 reg_names
[REGNO (XEXP (x
, 0))]);
170 output_addr_const (file
, x
);
175 /* The PRINT_OPERAND worker. */
178 ft32_print_operand (FILE * file
, rtx x
, int code
)
182 /* New code entries should just be added to the switch below. If
183 handling is finished, just return. If handling was just a
184 modification of the operand, the modified operand should be put in
185 "operand", and then do a break to let default handling
186 (zero-modifier) output the operand. */
191 /* No code, print as usual. */
195 if (GET_CODE (operand
) != REG
)
196 internal_error ("'h' applied to non-register operand");
197 fprintf (file
, "%s", reg_names
[REGNO (operand
) + 1]);
201 fprintf (file
, "%ld", (long) (- INTVAL(x
)));
204 case 'd': // a DW spec, from an integer alignment (for BLKmode insns)
221 internal_error ("bad alignment: %d", i
);
226 fprintf (file
, "%c", dwspec
);
232 int bf
= ft32_as_bitfield (INTVAL (x
));
233 fprintf (file
, "512|(%d<<5)|%d", bf
>> 5, bf
& 31);
239 int bf
= ft32_as_bitfield (0xffffffff ^ INTVAL (x
));
240 fprintf (file
, "(%d<<5)|%d", bf
>> 5, bf
& 31);
246 ft32_print_operand (file
, XEXP (x
, 0), 0);
251 LOSE_AND_RETURN ("invalid operand modifier letter", x
);
254 /* Print an operand as without a modifier letter. */
255 switch (GET_CODE (operand
))
258 fprintf (file
, "%s", reg_names
[REGNO (operand
)]);
262 output_address (XEXP (operand
, 0));
266 /* No need to handle all strange variants, let output_addr_const
268 if (CONSTANT_P (operand
))
270 output_addr_const (file
, operand
);
274 LOSE_AND_RETURN ("unexpected operand", x
);
279 ft32_load_immediate (rtx dst
, int32_t i
)
283 if ((-524288 <= i
) && (i
<= 524287))
285 sprintf (pattern
, "ldk.l %%0,%d", i
);
286 output_asm_insn (pattern
, &dst
);
288 else if ((-536870912 <= i
) && (i
<= 536870911))
290 ft32_load_immediate (dst
, i
>> 10);
291 sprintf (pattern
, "ldl.l %%0,%%0,%d", i
& 1023);
292 output_asm_insn (pattern
, &dst
);
296 int rd
; // rotate distance
298 for (rd
= 1; rd
< 32; rd
++)
300 u
= ((u
>> 31) & 1) | (u
<< 1);
301 if ((-524288 <= (int32_t) u
) && ((int32_t) u
<= 524287))
303 ft32_load_immediate (dst
, (int32_t) u
);
304 sprintf (pattern
, "ror.l %%0,%%0,%d", rd
);
305 output_asm_insn (pattern
, &dst
);
309 ft32_load_immediate (dst
, i
>> 10);
310 sprintf (pattern
, "ldl.l %%0,%%0,%d", i
& 1023);
311 output_asm_insn (pattern
, &dst
);
317 // x is a bit mask, for example:
318 // 00000000000000000000001111111110
319 // If x contains a single bit mask, return the bitfield spec.
320 // in the above case it returns ((9 << 5) | 1)
321 // Otherwise return -1.
324 #define NBITS(n) ((1U << (n)) - 1U)
327 ft32_as_bitfield (unsigned int x
)
334 for (lobit
= 0; lobit
< 32; lobit
++)
335 if (x
& (1 << lobit
))
337 for (hibit
= 31; hibit
>= 0; hibit
--)
338 if (x
& (1 << hibit
))
341 int width
= 1 + hibit
- lobit
;
345 if (x
!= (NBITS (width
) << lobit
))
346 return -1; // not a clean bitfield
348 return ((width
& 15) << 5) | lobit
;
351 /* Per-function machine data. */
352 struct GTY (()) machine_function
354 /* Number of bytes saved on the stack for callee saved registers. */
355 int callee_saved_reg_size
;
357 /* Number of bytes saved on the stack for local variables. */
360 /* The sum of 2 sizes: locals vars and padding byte for saving the
361 * registers. Used in expand_prologue () and expand_epilogue (). */
362 int size_for_adjusting_sp
;
365 /* Zero initialization is OK for all current fields. */
367 static struct machine_function
*
368 ft32_init_machine_status (void)
370 return ggc_cleared_alloc
< machine_function
> ();
373 #include "target-def.h"
376 /* The TARGET_OPTION_OVERRIDE worker.
377 All this curently does is set init_machine_status. */
379 ft32_option_override (void)
381 /* Set the per-function-data initializer. */
382 init_machine_status
= ft32_init_machine_status
;
385 /* Implement targetm.select_section. */
387 ft32_select_section (tree decl
, int reloc
, unsigned HOST_WIDE_INT align
)
389 /* Variables and constants defined in the __ea address space
390 go into a special section named "._ea". */
391 if (TREE_TYPE (decl
) != error_mark_node
392 && TYPE_ADDR_SPACE (TREE_TYPE (decl
)) == ADDR_SPACE_PM
)
394 /* We might get called with string constants, but get_named_section
395 doesn't like them as they are not DECLs. Also, we need to set
396 flags in that case. */
398 return get_section ("._pm", SECTION_WRITE
| SECTION_DEBUG
, NULL
);
400 return get_named_section (decl
, "._pm", reloc
);
403 return default_elf_select_section (decl
, reloc
, align
);
406 /* Compute the size of the local area and the size to be adjusted by the
407 * prologue and epilogue. */
410 ft32_compute_frame (void)
412 /* For aligning the local variables. */
413 int stack_alignment
= STACK_BOUNDARY
/ BITS_PER_UNIT
;
417 /* Padding needed for each element of the frame. */
418 cfun
->machine
->local_vars_size
= get_frame_size ();
420 /* Align to the stack alignment. */
421 padding_locals
= cfun
->machine
->local_vars_size
% stack_alignment
;
423 padding_locals
= stack_alignment
- padding_locals
;
425 cfun
->machine
->local_vars_size
+= padding_locals
;
427 cfun
->machine
->callee_saved_reg_size
= 0;
429 /* Save callee-saved registers. */
430 for (regno
= 0; regno
< FIRST_PSEUDO_REGISTER
; regno
++)
431 if (df_regs_ever_live_p (regno
) && (!call_used_regs
[regno
]))
432 cfun
->machine
->callee_saved_reg_size
+= 4;
434 cfun
->machine
->size_for_adjusting_sp
=
435 crtl
->args
.pretend_args_size
436 + cfun
->machine
->local_vars_size
437 + (ACCUMULATE_OUTGOING_ARGS
? crtl
->outgoing_args_size
: 0);
440 // Must use LINK/UNLINK when...
441 // the frame is bigger than 512 bytes so cannot just "SUB" from SP
442 // the function actually uses $fp
447 int bigframe
= (cfun
->machine
->size_for_adjusting_sp
>= 512);
448 return (bigframe
|| frame_pointer_needed
|| df_regs_ever_live_p (FT32_FP
)
449 || df_regs_ever_live_p (FT32_FP
));
453 ft32_expand_prologue (void)
458 ft32_compute_frame ();
460 if (flag_stack_usage_info
)
461 current_function_static_stack_size
= cfun
->machine
->size_for_adjusting_sp
;
463 if (!must_link () && (cfun
->machine
->callee_saved_reg_size
== 4))
467 (gen_rtx_REG (Pmode
, FT32_R13
),
468 GEN_INT (-cfun
->machine
->size_for_adjusting_sp
)));
469 RTX_FRAME_RELATED_P (insn
) = 1;
472 /* Save callee-saved registers. */
475 for (regno
= FIRST_PSEUDO_REGISTER
; regno
-- > 0;)
477 if (!fixed_regs
[regno
] && !call_used_regs
[regno
]
478 && df_regs_ever_live_p (regno
))
480 rtx preg
= gen_rtx_REG (Pmode
, regno
);
481 emit_insn (gen_call_prolog (preg
));
488 for (regno
= 0; regno
< FIRST_PSEUDO_REGISTER
; regno
++)
490 if (!fixed_regs
[regno
] && df_regs_ever_live_p (regno
)
491 && !call_used_regs
[regno
])
493 insn
= emit_insn (gen_movsi_push (gen_rtx_REG (Pmode
, regno
)));
494 RTX_FRAME_RELATED_P (insn
) = 1;
499 if (65536 <= cfun
->machine
->size_for_adjusting_sp
)
501 error ("stack frame must be smaller than 64K");
508 (gen_rtx_REG (Pmode
, FT32_FP
),
509 GEN_INT (-cfun
->machine
->size_for_adjusting_sp
)));
510 RTX_FRAME_RELATED_P (insn
) = 1;
512 else if (cfun
->machine
->size_for_adjusting_sp
> 0)
514 insn
= emit_insn (gen_addsi3 (gen_rtx_REG (SImode
, FT32_SP
),
515 gen_rtx_REG (SImode
, FT32_SP
),
516 GEN_INT (-(cfun
->machine
->
517 size_for_adjusting_sp
))));
518 RTX_FRAME_RELATED_P (insn
) = 1;
523 ft32_expand_epilogue (void)
528 && (cfun
->machine
->size_for_adjusting_sp
== 24)
529 && (cfun
->machine
->callee_saved_reg_size
== 0))
531 emit_jump_insn (gen_returner24 ());
535 // Set when the epilog code will also add 24 to $sp
536 int epilog24
= (!must_link ()
537 && (cfun
->machine
->size_for_adjusting_sp
== 24)
542 emit_insn (gen_unlink ());
544 else if (!epilog24
&& (cfun
->machine
->size_for_adjusting_sp
> 0))
546 emit_insn (gen_addsi3 (gen_rtx_REG (SImode
, FT32_SP
),
547 gen_rtx_REG (SImode
, FT32_SP
),
548 GEN_INT (cfun
->machine
->size_for_adjusting_sp
)));
551 if (cfun
->machine
->callee_saved_reg_size
!= 0)
553 for (regno
= FIRST_PSEUDO_REGISTER
; regno
-- > 0;)
555 if (!fixed_regs
[regno
] && !call_used_regs
[regno
]
556 && df_regs_ever_live_p (regno
))
558 rtx preg
= gen_rtx_REG (Pmode
, regno
);
562 emit_insn (gen_jump_epilog24 (preg
));
564 emit_insn (gen_jump_epilog (preg
));
567 emit_insn (gen_movsi_pop (preg
));
572 emit_jump_insn (gen_returner ());
575 #undef TARGET_FRAME_POINTER_REQUIRED
576 #define TARGET_FRAME_POINTER_REQUIRED ft32_frame_pointer_required
578 ft32_frame_pointer_required (void)
580 return cfun
->calls_alloca
;
583 #undef TARGET_CAN_ELIMINATE
584 #define TARGET_CAN_ELIMINATE ft32_can_eliminate
586 /* Return true if register FROM can be eliminated via register TO. */
589 ft32_can_eliminate (const int from ATTRIBUTE_UNUSED
, const int to
)
592 return (to
== FRAME_POINTER_REGNUM
) || !ft32_frame_pointer_required ();
595 /* Implements the macro INITIAL_ELIMINATION_OFFSET, return the OFFSET. */
598 ft32_initial_elimination_offset (int from
, int to
)
600 ft32_compute_frame ();
602 if (from
== ARG_POINTER_REGNUM
&& to
== FRAME_POINTER_REGNUM
)
604 return cfun
->machine
->callee_saved_reg_size
+ 2 * UNITS_PER_WORD
;
607 if (from
== ARG_POINTER_REGNUM
&& to
== STACK_POINTER_REGNUM
)
610 arg_offset
= must_link ()? 2 : 1;
611 return ((cfun
->machine
->callee_saved_reg_size
612 + arg_offset
* UNITS_PER_WORD
)
613 + cfun
->machine
->size_for_adjusting_sp
);
616 if ((from
== FRAME_POINTER_REGNUM
) && (to
== STACK_POINTER_REGNUM
))
618 return cfun
->machine
->size_for_adjusting_sp
;
624 /* Worker function for TARGET_SETUP_INCOMING_VARARGS. */
627 ft32_setup_incoming_varargs (cumulative_args_t cum_v
,
628 enum machine_mode mode ATTRIBUTE_UNUSED
,
629 tree type ATTRIBUTE_UNUSED
,
630 int *pretend_size
, int no_rtl
)
632 CUMULATIVE_ARGS
*cum
= get_cumulative_args (cum_v
);
636 *pretend_size
= regs
< 0 ? 0 : GET_MODE_SIZE (SImode
) * regs
;
641 for (regno
= *cum
; regno
< 8; regno
++)
643 rtx reg
= gen_rtx_REG (SImode
, regno
);
644 rtx slot
= gen_rtx_PLUS (Pmode
,
645 gen_rtx_REG (SImode
, ARG_POINTER_REGNUM
),
646 GEN_INT (UNITS_PER_WORD
* (regno
- FT32_R0
)));
648 emit_move_insn (gen_rtx_MEM (SImode
, slot
), reg
);
653 /* Return the fixed registers used for condition codes. */
656 ft32_fixed_condition_code_regs (unsigned int *p1
, unsigned int *p2
)
659 *p2
= INVALID_REGNUM
;
663 /* Return the next register to be used to hold a function argument or
664 NULL_RTX if there's no more space. */
667 ft32_function_arg (cumulative_args_t cum_v
, enum machine_mode mode
,
668 const_tree type ATTRIBUTE_UNUSED
,
669 bool named ATTRIBUTE_UNUSED
)
671 CUMULATIVE_ARGS
*cum
= get_cumulative_args (cum_v
);
674 return gen_rtx_REG (mode
, *cum
);
679 #define FT32_FUNCTION_ARG_SIZE(MODE, TYPE) \
680 ((MODE) != BLKmode ? GET_MODE_SIZE (MODE) \
681 : (unsigned) int_size_in_bytes (TYPE))
684 ft32_function_arg_advance (cumulative_args_t cum_v
, enum machine_mode mode
,
685 const_tree type
, bool named ATTRIBUTE_UNUSED
)
687 CUMULATIVE_ARGS
*cum
= get_cumulative_args (cum_v
);
689 *cum
= (*cum
< FT32_R6
690 ? *cum
+ ((3 + FT32_FUNCTION_ARG_SIZE (mode
, type
)) / 4) : *cum
);
693 /* Return non-zero if the function argument described by TYPE is to be
694 passed by reference. */
697 ft32_pass_by_reference (cumulative_args_t cum ATTRIBUTE_UNUSED
,
698 enum machine_mode mode
, const_tree type
,
699 bool named ATTRIBUTE_UNUSED
)
701 unsigned HOST_WIDE_INT size
;
705 if (AGGREGATE_TYPE_P (type
))
707 size
= int_size_in_bytes (type
);
710 size
= GET_MODE_SIZE (mode
);
715 /* Some function arguments will only partially fit in the registers
716 that hold arguments. Given a new arg, return the number of bytes
717 that fit in argument passing registers. */
720 ft32_arg_partial_bytes (cumulative_args_t cum_v
,
721 enum machine_mode mode
, tree type
, bool named
)
723 CUMULATIVE_ARGS
*cum
= get_cumulative_args (cum_v
);
724 int bytes_left
, size
;
729 if (ft32_pass_by_reference (cum_v
, mode
, type
, named
))
733 if (AGGREGATE_TYPE_P (type
))
735 size
= int_size_in_bytes (type
);
738 size
= GET_MODE_SIZE (mode
);
740 bytes_left
= (4 * 6) - ((*cum
- 2) * 4);
742 if (size
> bytes_left
)
748 /* Used by constraints.md to distinguish between GENERIC and PM
752 ft32_is_mem_pm (rtx o
)
754 if (GET_CODE (o
) != MEM
)
757 return TYPE_ADDR_SPACE (TREE_TYPE (MEM_EXPR (o
))) == ADDR_SPACE_PM
;
759 return MEM_ADDR_SPACE (o
) == ADDR_SPACE_PM
;
762 /* The Global `targetm' Variable. */
764 /* Initialize the GCC target structure. */
766 #undef TARGET_PROMOTE_PROTOTYPES
767 #define TARGET_PROMOTE_PROTOTYPES hook_bool_const_tree_true
769 #undef TARGET_RETURN_IN_MEMORY
770 #define TARGET_RETURN_IN_MEMORY ft32_return_in_memory
771 #undef TARGET_MUST_PASS_IN_STACK
772 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size
773 #undef TARGET_PASS_BY_REFERENCE
774 #define TARGET_PASS_BY_REFERENCE ft32_pass_by_reference
775 #undef TARGET_ARG_PARTIAL_BYTES
776 #define TARGET_ARG_PARTIAL_BYTES ft32_arg_partial_bytes
777 #undef TARGET_FUNCTION_ARG
778 #define TARGET_FUNCTION_ARG ft32_function_arg
779 #undef TARGET_FUNCTION_ARG_ADVANCE
780 #define TARGET_FUNCTION_ARG_ADVANCE ft32_function_arg_advance
783 #undef TARGET_SETUP_INCOMING_VARARGS
784 #define TARGET_SETUP_INCOMING_VARARGS ft32_setup_incoming_varargs
786 #undef TARGET_FIXED_CONDITION_CODE_REGS
787 #define TARGET_FIXED_CONDITION_CODE_REGS ft32_fixed_condition_code_regs
789 /* Define this to return an RTX representing the place where a
790 function returns or receives a value of data type RET_TYPE, a tree
791 node node representing a data type. */
792 #undef TARGET_FUNCTION_VALUE
793 #define TARGET_FUNCTION_VALUE ft32_function_value
794 #undef TARGET_LIBCALL_VALUE
795 #define TARGET_LIBCALL_VALUE ft32_libcall_value
796 #undef TARGET_FUNCTION_VALUE_REGNO_P
797 #define TARGET_FUNCTION_VALUE_REGNO_P ft32_function_value_regno_p
799 #undef TARGET_OPTION_OVERRIDE
800 #define TARGET_OPTION_OVERRIDE ft32_option_override
802 #undef TARGET_ASM_SELECT_SECTION
803 #define TARGET_ASM_SELECT_SECTION ft32_select_section
805 #undef TARGET_VALID_POINTER_MODE
806 #define TARGET_VALID_POINTER_MODE ft32_valid_pointer_mode
808 ft32_valid_pointer_mode (enum machine_mode mode
)
815 #undef TARGET_ADDR_SPACE_POINTER_MODE
816 #define TARGET_ADDR_SPACE_POINTER_MODE ft32_addr_space_pointer_mode
817 static enum machine_mode
818 ft32_addr_space_pointer_mode (addr_space_t addrspace ATTRIBUTE_UNUSED
)
823 #undef TARGET_ADDR_SPACE_ADDRESS_MODE
824 #define TARGET_ADDR_SPACE_ADDRESS_MODE ft32_addr_space_address_mode
825 static enum machine_mode
826 ft32_addr_space_address_mode (addr_space_t addrspace ATTRIBUTE_UNUSED
)
831 #undef TARGET_ADDR_SPACE_SUBSET_P
832 #define TARGET_ADDR_SPACE_SUBSET_P ft32_addr_space_subset_p
834 ft32_addr_space_subset_p (addr_space_t subset ATTRIBUTE_UNUSED
,
835 addr_space_t superset ATTRIBUTE_UNUSED
)
840 #undef TARGET_CASE_VALUES_THRESHOLD
841 #define TARGET_CASE_VALUES_THRESHOLD ft32_target_case_values_threshold
844 ft32_target_case_values_threshold (void)
849 #undef TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P
850 #define TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P \
851 ft32_addr_space_legitimate_address_p
854 // Enabling LRA gives the infamous
855 // internal compiler error: Max. number of generated reload insns per insn is achieved (90)
856 // errors e.g. when compiling sieve.c
861 return ft32_lra_flag
;
865 #define TARGET_LRA_P ft32_lra_p
868 reg_ok_for_base_p (rtx r
, bool strict
)
872 return (HARD_REGNO_OK_FOR_BASE_P (NUM
)
873 || HARD_REGNO_OK_FOR_BASE_P (reg_renumber
[(NUM
)]));
875 return ((NUM
) >= FIRST_PSEUDO_REGISTER
|| HARD_REGNO_OK_FOR_BASE_P (NUM
));
879 ft32_addr_space_legitimate_address_p (enum machine_mode mode
, rtx x
,
881 addr_space_t as ATTRIBUTE_UNUSED
)
885 if (GET_CODE (x
) == PLUS
)
890 if (GET_CODE (op1
) == REG
892 && INTVAL (op2
) >= -128
893 && INTVAL (op2
) < 128 && reg_ok_for_base_p (op1
, strict
))
895 if (GET_CODE (op1
) == SYMBOL_REF
&& CONST_INT_P (op2
))
898 if (REG_P (x
) && reg_ok_for_base_p (x
, strict
))
900 if (GET_CODE (x
) == SYMBOL_REF
901 || GET_CODE (x
) == LABEL_REF
|| CONST_INT_P (x
))
906 if (REG_P (x
) && reg_ok_for_base_p (x
, strict
))
915 struct gcc_target targetm
= TARGET_INITIALIZER
;