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

📄 s390.h

📁 gcc3.2.1源代码
💻 H
📖 第 1 页 / 共 4 页
字号:
#define ARG_POINTER_REGNUM 32#define CC_REGNUM 33/* We use the register %r0 to pass the static chain to a nested function.     Note: It is assumed that this register is call-clobbered!         We can't use any of the function-argument registers either,         and register 1 is needed by the trampoline code, so we have         no other choice but using this one ...  */#define STATIC_CHAIN_REGNUM 0/* 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)                           \  (FLOAT_REGNO_P(REGNO)?                                        \    (GET_MODE_CLASS(MODE) == MODE_COMPLEX_FLOAT ? 2 : 1) :      \   INT_REGNO_P(REGNO)?                                          \    ((GET_MODE_SIZE(MODE)+UNITS_PER_WORD-1) / UNITS_PER_WORD) : \   1)/* Value is 1 if hard register REGNO can hold a value of machine-mode MODE.   The gprs can hold QI, HI, SI, SF, DF, SC and DC.   Even gprs can hold DI.   The floating point registers can hold DF, SF, DC and SC.  */#define HARD_REGNO_MODE_OK(REGNO, MODE)                             \  (FLOAT_REGNO_P(REGNO)?                                            \   (GET_MODE_CLASS(MODE) == MODE_FLOAT ||                           \    GET_MODE_CLASS(MODE) == MODE_COMPLEX_FLOAT ||                   \    (MODE) == SImode || (MODE) == DImode) :                         \   INT_REGNO_P(REGNO)?                                              \    (HARD_REGNO_NREGS(REGNO, MODE) == 1 || !((REGNO) & 1)) :        \   CC_REGNO_P(REGNO)?                                               \     GET_MODE_CLASS (MODE) == MODE_CC :                             \   0)/* 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) == SFmode || (MODE1) == DFmode)	\   == ((MODE2) == SFmode || (MODE2) == DFmode))/* If defined, gives a class of registers that cannot be used as the   operand of a SUBREG that changes the mode of the object illegally.  */#define CLASS_CANNOT_CHANGE_MODE FP_REGS/* Defines illegal mode changes for CLASS_CANNOT_CHANGE_MODE.  */#define CLASS_CANNOT_CHANGE_MODE_P(FROM,TO) \  (GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO))/* Define this macro if references to a symbol must be treated   differently depending on something about the variable or   function named by the symbol (such as what section it is in).   On s390, if using PIC, mark a SYMBOL_REF for a non-global symbol   so that we may access it directly in the GOT.  */#define ENCODE_SECTION_INFO(DECL)                               \do                                                              \  {                                                             \    if (flag_pic)                                               \      {                                                         \        rtx rtl = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd'    \                   ? TREE_CST_RTL (DECL) : DECL_RTL (DECL));    \                                                                \        if (GET_CODE (rtl) == MEM)                              \          {                                                     \            SYMBOL_REF_FLAG (XEXP (rtl, 0))                     \              = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd'      \                 || ! TREE_PUBLIC (DECL));                      \          }                                                     \      }                                                         \  }                                                             \while (0)  /* This is an array of structures.  Each structure initializes one pair   of eliminable registers.  The "from" register number is given first,   followed by "to".  Eliminations of the same "from" register are listed   in order of preference.  */#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}}  #define CAN_ELIMINATE(FROM, TO) (1)#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) 			  \{ if ((FROM) == FRAME_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM) 	  \  { (OFFSET) = 0; }     						  \  else  if ((FROM) == FRAME_POINTER_REGNUM                                \	    && (TO) == HARD_FRAME_POINTER_REGNUM)                	  \  { (OFFSET) = 0; }     						  \  else if ((FROM) == ARG_POINTER_REGNUM                                   \            && (TO) == HARD_FRAME_POINTER_REGNUM)                         \  { (OFFSET) = s390_arg_frame_offset (); }     				  \  else if ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM)  \  { (OFFSET) = s390_arg_frame_offset (); }     				  \  else									  \    abort();								  \}#define CAN_DEBUG_WITHOUT_FP/* 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/* 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.  *//*#define SMALL_REGISTER_CLASSES 1*/enum reg_class{  NO_REGS, ADDR_REGS, GENERAL_REGS,  FP_REGS, ADDR_FP_REGS, GENERAL_FP_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", "ADDR_REGS", "GENERAL_REGS", 				\  "FP_REGS", "ADDR_FP_REGS", "GENERAL_FP_REGS", "ALL_REGS" }/* Define which registers fit in which classes.  This is an initializer for   a vector of HARD_REG_SET of length N_REG_CLASSES.   G5 and latter have 16 register and support IEEE floating point operations.  */#define REG_CLASS_CONTENTS \{				       			\  { 0x00000000, 0x00000000 },	/* NO_REGS */		\  { 0x0000fffe, 0x00000005 },	/* ADDR_REGS */		\  { 0x0000ffff, 0x00000005 },	/* GENERAL_REGS */	\  { 0xffff0000, 0x00000000 },	/* FP_REGS */		\  { 0xfffffffe, 0x00000005 },	/* ADDR_FP_REGS */	\  { 0xffffffff, 0x00000005 },	/* GENERAL_FP_REGS */	\  { 0xffffffff, 0x00000007 },	/* 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) (regclass_map[REGNO])extern enum reg_class regclass_map[FIRST_PSEUDO_REGISTER]; /* smalled class containing REGNO   *//* The class value for index registers, and the one for base regs.  */#define INDEX_REG_CLASS ADDR_REGS#define BASE_REG_CLASS ADDR_REGS/* Get reg_class from a letter such as appears in the machine description.  */#define REG_CLASS_FROM_LETTER(C)                                        \  ((C) == 'a' ? ADDR_REGS :                                             \   (C) == 'd' ? GENERAL_REGS :                                          \   (C) == 'f' ? FP_REGS : NO_REGS)/* The letters I, J, K, L and M 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 CONST_OK_FOR_LETTER_P(VALUE, C)                                 \  ((C) == 'I' ? (unsigned long) (VALUE) < 256 :                         \   (C) == 'J' ? (unsigned long) (VALUE) < 4096 :                        \   (C) == 'K' ? (VALUE) >= -32768 && (VALUE) < 32768 :                  \   (C) == 'L' ? (unsigned long) (VALUE) < 65536 : 0)/* Similar, but for floating constants, and defining letters G and H.   Here VALUE is the CONST_DOUBLE rtx itself.  */#define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C)  1/* 'Q' means a memory-reference for a S-type operand.  */#define EXTRA_CONSTRAINT(OP, C)                               	\     ((C) == 'Q' ?  s_operand (OP, GET_MODE (OP)) : 		\      (C) == 'S' ?  larl_operand (OP, GET_MODE (OP)) : 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)	\	s390_preferred_reload_class ((X), (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)   					\     ((CLASS) == FP_REGS ? 						\      (GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT ? 2 : 1) :  		\      (GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)/* We need a secondary reload when loading a PLUS which is    not a valid operand for LOAD ADDRESS.  */#define SECONDARY_INPUT_RELOAD_CLASS(CLASS, MODE, IN)	\	s390_secondary_input_reload_class ((CLASS), (MODE), (IN))/* If we are copying between FP registers and anything else, we need a memory   location.  */#define SECONDARY_MEMORY_NEEDED(CLASS1, CLASS2, MODE) \ ((CLASS1) != (CLASS2) && ((CLASS1) == FP_REGS || (CLASS2) == FP_REGS))/* Get_secondary_mem widens its argument to BITS_PER_WORD which loses on 64bit   because the movsi and movsf patterns don't handle r/f moves.  */#define SECONDARY_MEMORY_NEEDED_MODE(MODE)		\ (GET_MODE_BITSIZE (MODE) < 32				\  ? mode_for_size (32, GET_MODE_CLASS (MODE), 0)	\  : MODE)/* A C expression whose value is nonzero if pseudos that have been   assigned to registers of class CLASS would likely be spilled   because registers of CLASS are needed for spill registers.   The default value of this macro returns 1 if CLASS has exactly one   register and zero otherwise.  On most machines, this default   should be used.  Only define this macro to some other expression   if pseudo allocated by `local-alloc.c' end up in memory because   their hard registers were needed for spill registers.  If this   macro returns nonzero for those classes, those pseudos will only   be allocated by `global.c', which knows how to reallocate the   pseudo to another register.  If there would not be another   register available for reallocation, you should not change the   definition of this macro since the only effect of such a   definition would be to slow down register allocation.  *//* Stack layout; function entry, exit and calling.  *//* The return address of the current frame is retrieved    from the initial value of register RETURN_REGNUM.   For frames farther back, we use the stack slot where   the corresponding RETURN_REGNUM register was saved.  */#define DYNAMIC_CHAIN_ADDRESS(FRAME)						\  ((FRAME) != hard_frame_pointer_rtx ? (FRAME) :				\   plus_constant (arg_pointer_rtx, -STACK_POINTER_OFFSET))     #define RETURN_ADDR_RTX(COUNT, FRAME)						\  ((COUNT) == 0 ? get_hard_reg_initial_val (Pmode, RETURN_REGNUM) :		\   gen_rtx_MEM (Pmode,								\                memory_address (Pmode, 						\                                plus_constant (DYNAMIC_CHAIN_ADDRESS ((FRAME)),	\                                               RETURN_REGNUM * UNITS_PER_WORD))))/* The following macros will turn on dwarf2 exception hndling   Other code location for this exception handling are    in s390.md (eh_return insn) and in linux.c in the prologue.  */#define INCOMING_RETURN_ADDR_RTX  gen_rtx_REG (Pmode, RETURN_REGNUM)/* We have 31 bit mode.  */#define MASK_RETURN_ADDR (TARGET_64BIT ? GEN_INT (-1) : GEN_INT (0x7fffffff))/* The offset from the incoming value of %sp to the top of the stack frame   for the current function.  */#define INCOMING_FRAME_SP_OFFSET STACK_POINTER_OFFSET/* Location, from where return address to load.  */#define DWARF_FRAME_RETURN_COLUMN  14/* Describe how we implement __builtin_eh_return.  */#define EH_RETURN_DATA_REGNO(N) ((N) < 4 ? (N) + 6 : INVALID_REGNUM)#define EH_RETURN_STACKADJ_RTX  gen_rtx_REG (Pmode, 10)#define EH_RETURN_HANDLER_RTX \  gen_rtx_MEM (Pmode, plus_constant (arg_pointer_rtx, \                                     TARGET_64BIT? -48 : -40))/* 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 from stack-pointer to first location of outgoing args.  */#define STACK_POINTER_OFFSET (TARGET_64BIT ? 160 : 96)/* 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 \     (STACK_POINTER_OFFSET + current_function_outgoing_args_size)#define INITIAL_FRAME_POINTER_OFFSET(DEPTH) (DEPTH) = 0/* If we generate an insn to push BYTES bytes, this says how many the stack   pointer really advances by.  On S/390, we have no push instruction.  *//* #define PUSH_ROUNDING(BYTES) *//* Accumulate the outgoing argument count so we can request the right

⌨️ 快捷键说明

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