⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v850.h

📁 linux下的gcc编译器
💻 H
📖 第 1 页 / 共 4 页
字号:
   the pool of fixed registers. See PR 14505. */#define CONDITIONAL_REGISTER_USAGE  \{                                                       \  if (TARGET_NO_APP_REGS)                               \    {                                                   \     fixed_regs[2] = 1;  call_used_regs[2] = 1;         \     fixed_regs[5] = 1;  call_used_regs[5] = 1;         \    }                                                   \}/* Return number of consecutive hard regs needed starting at reg REGNO   to hold something of mode MODE.   This is ordinarily the length in words of a value of mode MODE   but can be less for certain modes in special long registers.  */#define HARD_REGNO_NREGS(REGNO, MODE)   \  ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)/* Value is 1 if hard register REGNO can hold a value of machine-mode   MODE.  */#define HARD_REGNO_MODE_OK(REGNO, MODE) \ ((((REGNO) & 1) == 0) || (GET_MODE_SIZE (MODE) <= 4))/* Value is 1 if it is a good idea to tie two pseudo registers   when one has mode MODE1 and one has mode MODE2.   If HARD_REGNO_MODE_OK could produce different values for MODE1 and MODE2,   for any hard reg, then this must be 0 for correct output.  */#define MODES_TIEABLE_P(MODE1, MODE2) \  (MODE1 == MODE2 || (GET_MODE_SIZE (MODE1) <= 4 && GET_MODE_SIZE (MODE2) <= 4))/* Define the classes of registers for register constraints in the   machine description.  Also define ranges of constants.   One of the classes must always be named ALL_REGS and include all hard regs.   If there is more than one class, another class must be named NO_REGS   and contain no registers.   The name GENERAL_REGS must be the name of a class (or an alias for   another name such as ALL_REGS).  This is the class of registers   that is allowed by "g" or "r" in a register constraint.   Also, registers outside this class are allocated only when   instructions express preferences for them.   The classes must be numbered in nondecreasing order; that is,   a larger-numbered class must never be contained completely   in a smaller-numbered class.   For any two classes, it is very desirable that there be another   class that represents their union.  */   enum reg_class{  NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES};#define N_REG_CLASSES (int) LIM_REG_CLASSES/* Give names of register classes as strings for dump file.   */#define REG_CLASS_NAMES \{ "NO_REGS", "GENERAL_REGS", "ALL_REGS", "LIM_REGS" }/* Define which registers fit in which classes.   This is an initializer for a vector of HARD_REG_SET   of length N_REG_CLASSES.  */#define REG_CLASS_CONTENTS  		\{					\  { 0x00000000 }, /* NO_REGS      */	\  { 0xffffffff }, /* GENERAL_REGS */   	\  { 0xffffffff }, /* ALL_REGS 	*/	\}/* The same information, inverted:   Return the class number of the smallest class containing   reg number REGNO.  This could be a conditional expression   or could index an array.  */#define REGNO_REG_CLASS(REGNO)  GENERAL_REGS/* The class value for index registers, and the one for base regs.  */#define INDEX_REG_CLASS NO_REGS#define BASE_REG_CLASS  GENERAL_REGS/* Get reg_class from a letter such as appears in the machine description.  */#define REG_CLASS_FROM_LETTER(C) (NO_REGS)/* Macros to check register numbers against specific register classes.  *//* These assume that REGNO is a hard or pseudo reg number.   They give nonzero only if REGNO is a hard reg of the suitable class   or a pseudo reg currently allocated to a suitable hard reg.   Since they use reg_renumber, they are safe only once reg_renumber   has been allocated, which happens in local-alloc.c.  */ #define REGNO_OK_FOR_BASE_P(regno) \  ((regno) < FIRST_PSEUDO_REGISTER || reg_renumber[regno] >= 0)#define REGNO_OK_FOR_INDEX_P(regno) 0/* Given an rtx X being reloaded into a reg required to be   in class CLASS, return the class of reg to actually use.   In general this is just CLASS; but on some machines   in some cases it is preferable to use a more restrictive class.  */#define PREFERRED_RELOAD_CLASS(X,CLASS)  (CLASS)/* Return the maximum number of consecutive registers   needed to represent mode MODE in a register of class CLASS.  */#define CLASS_MAX_NREGS(CLASS, MODE)	\  ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)/* The letters I, J, K, L, M, N, O, P in a register constraint string   can be used to stand for particular ranges of immediate operands.   This macro defines what the ranges are.   C is the letter, and VALUE is a constant value.   Return 1 if VALUE is in the range specified by C.  */#define INT_7_BITS(VALUE) ((unsigned) (VALUE) + 0x40 < 0x80)#define INT_8_BITS(VALUE) ((unsigned) (VALUE) + 0x80 < 0x100)/* zero */#define CONST_OK_FOR_I(VALUE) ((VALUE) == 0)/* 5 bit signed immediate */#define CONST_OK_FOR_J(VALUE) ((unsigned) (VALUE) + 0x10 < 0x20)/* 16 bit signed immediate */#define CONST_OK_FOR_K(VALUE) ((unsigned) (VALUE) + 0x8000 < 0x10000)/* valid constant for movhi instruction.  */#define CONST_OK_FOR_L(VALUE) \  (((unsigned) ((int) (VALUE) >> 16) + 0x8000 < 0x10000) \   && CONST_OK_FOR_I ((VALUE & 0xffff)))/* 16 bit unsigned immediate */#define CONST_OK_FOR_M(VALUE) ((unsigned)(VALUE) < 0x10000)/* 5 bit unsigned immediate in shift instructions */#define CONST_OK_FOR_N(VALUE) ((unsigned) (VALUE) <= 31)/* 9 bit signed immediate for word multiply instruction.  */#define CONST_OK_FOR_O(VALUE) ((unsigned) (VALUE) + 0x100 < 0x200)#define CONST_OK_FOR_P(VALUE) 0#define CONST_OK_FOR_LETTER_P(VALUE, C)  \  ((C) == 'I' ? CONST_OK_FOR_I (VALUE) : \   (C) == 'J' ? CONST_OK_FOR_J (VALUE) : \   (C) == 'K' ? CONST_OK_FOR_K (VALUE) : \   (C) == 'L' ? CONST_OK_FOR_L (VALUE) : \   (C) == 'M' ? CONST_OK_FOR_M (VALUE) : \   (C) == 'N' ? CONST_OK_FOR_N (VALUE) : \   (C) == 'O' ? CONST_OK_FOR_O (VALUE) : \   (C) == 'P' ? CONST_OK_FOR_P (VALUE) : \   0)/* Similar, but for floating constants, and defining letters G and H.   Here VALUE is the CONST_DOUBLE rtx itself.        `G' is a zero of some form.  */#define CONST_DOUBLE_OK_FOR_G(VALUE)					\  ((GET_MODE_CLASS (GET_MODE (VALUE)) == MODE_FLOAT			\    && (VALUE) == CONST0_RTX (GET_MODE (VALUE)))			\   || (GET_MODE_CLASS (GET_MODE (VALUE)) == MODE_INT			\       && CONST_DOUBLE_LOW (VALUE) == 0					\       && CONST_DOUBLE_HIGH (VALUE) == 0))#define CONST_DOUBLE_OK_FOR_H(VALUE) 0#define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C)				\  ((C) == 'G'   ? CONST_DOUBLE_OK_FOR_G (VALUE)				\   : (C) == 'H' ? CONST_DOUBLE_OK_FOR_H (VALUE)				\   : 0)/* Stack layout; function entry, exit and calling.  *//* Define this if pushing a word on the stack   makes the stack pointer a smaller address.  */#define STACK_GROWS_DOWNWARD/* Define this if the nominal address of the stack frame   is at the high-address end of the local variables;   that is, each additional local variable allocated   goes at a more negative offset in the frame.  */#define FRAME_GROWS_DOWNWARD/* Offset within stack frame to start allocating local variables at.   If FRAME_GROWS_DOWNWARD, this is the offset to the END of the   first local allocated.  Otherwise, it is the offset to the BEGINNING   of the first local allocated.  */#define STARTING_FRAME_OFFSET 0/* Offset of first parameter from the argument pointer register value.  *//* Is equal to the size of the saved fp + pc, even if an fp isn't   saved since the value is used before we know.  */#define FIRST_PARM_OFFSET(FNDECL) 0/* Specify the registers used for certain standard purposes.   The values of these macros are register numbers.  *//* Register to use for pushing function arguments.  */#define STACK_POINTER_REGNUM 3/* Base register for access to local variables of the function.  */#define FRAME_POINTER_REGNUM 32/* Register containing return address from latest function call.  */#define LINK_POINTER_REGNUM 31     /* On some machines the offset between the frame pointer and starting   offset of the automatic variables is not known until after register   allocation has been done (for example, because the saved registers   are between these two locations).  On those machines, define   `FRAME_POINTER_REGNUM' the number of a special, fixed register to   be used internally until the offset is known, and define   `HARD_FRAME_POINTER_REGNUM' to be actual the hard register number   used for the frame pointer.   You should define this macro only in the very rare circumstances   when it is not possible to calculate the offset between the frame   pointer and the automatic variables until after register   allocation has been completed.  When this macro is defined, you   must also indicate in your definition of `ELIMINABLE_REGS' how to   eliminate `FRAME_POINTER_REGNUM' into either   `HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'.   Do not define this macro if it would be the same as   `FRAME_POINTER_REGNUM'. */#undef  HARD_FRAME_POINTER_REGNUM #define HARD_FRAME_POINTER_REGNUM 29/* Base register for access to arguments of the function.  */#define ARG_POINTER_REGNUM 33/* Register in which static-chain is passed to a function.  */#define STATIC_CHAIN_REGNUM 20/* Value should be nonzero if functions must have frame pointers.   Zero means the frame pointer need not be set up (and parms   may be accessed via the stack pointer) in functions that seem suitable.   This is computed in `reload', in reload1.c.  */#define FRAME_POINTER_REQUIRED 0/* If defined, this macro specifies a table of register pairs used to   eliminate unneeded registers that point into the stack frame.  If   it is not defined, the only elimination attempted by the compiler   is to replace references to the frame pointer with references to   the stack pointer.   The definition of this macro is a list of structure   initializations, each of which specifies an original and   replacement register.   On some machines, the position of the argument pointer is not   known until the compilation is completed.  In such a case, a   separate hard register must be used for the argument pointer.   This register can be eliminated by replacing it with either the   frame pointer or the argument pointer, depending on whether or not   the frame pointer has been eliminated.   In this case, you might specify:        #define ELIMINABLE_REGS  \        {{ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \         {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \         {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}   Note that the elimination of the argument pointer with the stack   pointer is specified first since that is the preferred elimination. */#define ELIMINABLE_REGS							\{{ FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM },			\ { FRAME_POINTER_REGNUM, HARD_FRAME_POINTER_REGNUM },			\ { ARG_POINTER_REGNUM,	 STACK_POINTER_REGNUM },			\ { ARG_POINTER_REGNUM,   HARD_FRAME_POINTER_REGNUM }}			\/* A C expression that returns nonzero if the compiler is allowed to   try to replace register number FROM-REG with register number   TO-REG.  This macro need only be defined if `ELIMINABLE_REGS' is   defined, and will usually be the constant 1, since most of the   cases preventing register elimination are things that the compiler   already knows about. */#define CAN_ELIMINATE(FROM, TO) \ ((TO) == STACK_POINTER_REGNUM ? ! frame_pointer_needed : 1)/* This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'.  It   specifies the initial difference between the specified pair of   registers.  This macro must be defined if `ELIMINABLE_REGS' is   defined. */#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET)			\{									\  if ((FROM) == FRAME_POINTER_REGNUM)					\    (OFFSET) = get_frame_size () + current_function_outgoing_args_size;	\  else if ((FROM) == ARG_POINTER_REGNUM)				\   (OFFSET) = compute_frame_size (get_frame_size (), (long *)0);	\  else									\    abort ();								\}/* A guess for the V850.  */#define PROMOTE_PROTOTYPES 1/* Keep the stack pointer constant throughout the function.  */#define ACCUMULATE_OUTGOING_ARGS 1/* Value is the number of bytes of arguments automatically   popped when returning from a subroutine call.   FUNDECL is the declaration node of the function (as a tree),   FUNTYPE is the data type of the function (as a tree),   or for a library call it is an identifier node for the subroutine name.   SIZE is the number of bytes of arguments passed on the stack.  */#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) 0#define RETURN_ADDR_RTX(COUNT, FP) v850_return_addr (COUNT)/* Define a data type for recording info about an argument list   during the scan of that argument list.  This data type should   hold all necessary information about the function itself   and about the args processed so far, enough to enable macros   such as FUNCTION_ARG to determine where the next arg should go.  */#define CUMULATIVE_ARGS struct cum_argstruct cum_arg { int nbytes; int anonymous_args; };/* Define where to put the arguments to a function.   Value is zero to push the argument on the stack,   or a hard register in which to store the argument.   MODE is the argument's machine mode.   TYPE is the data type of the argument (as a tree).    This is null for libcalls where that information may    not be available.   CUM is a variable of type CUMULATIVE_ARGS which gives info about    the preceding args and about the function being called.   NAMED is nonzero if this argument is a named parameter    (otherwise it is an extra parameter matching an ellipsis).  */#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \  function_arg (&CUM, MODE, TYPE, NAMED)#define FUNCTION_ARG_PARTIAL_NREGS(CUM, MODE, TYPE, NAMED) \  function_arg_partial_nregs (&CUM, MODE, TYPE, NAMED)/* Initialize a variable CUM of type CUMULATIVE_ARGS   for a call to a function whose data type is FNTYPE.   For a library call, FNTYPE is 0.  */#define INIT_CUMULATIVE_ARGS(CUM,FNTYPE,LIBNAME,INDIRECT)	\ ((CUM).nbytes = 0, (CUM).anonymous_args = 0)/* Update the data in CUM to advance over an argument   of mode MODE and data type TYPE.   (TYPE is null for libcalls where that information may not be available.)  */#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)	\ ((CUM).nbytes += ((MODE) != BLKmode			\  ? (GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) & -UNITS_PER_WORD	\  : (int_size_in_bytes (TYPE) + UNITS_PER_WORD - 1) & -UNITS_PER_WORD))/* When a parameter is passed in a register, stack space is still   allocated for it.  */#define REG_PARM_STACK_SPACE(DECL) (!TARGET_GHS ? 16 : 0)/* Define this if the above stack space is to be considered part of the   space allocated by the caller.  */#define OUTGOING_REG_PARM_STACK_SPACE/* Do any setup necessary for varargs/stdargs functions.  */#define SETUP_INCOMING_VARARGS(CUM, MODE, TYPE, PAS, SECOND) \  (CUM).anonymous_args = (!TARGET_GHS ? 1 : 0);/* Implement `va_arg'.  */#define EXPAND_BUILTIN_VA_ARG(valist, type) \  v850_va_arg (valist, type)#define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED)		\  ((TYPE) && int_size_in_bytes (TYPE) > 8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -