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

📄 pa.h

📁 gcc库的原代码,对编程有很大帮助.
💻 H
📖 第 1 页 / 共 5 页
字号:
   && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))/* Set this nonzero if move instructions will actually fail to work   when given unaligned data.  */#define STRICT_ALIGNMENT 1/* Generate calls to memcpy, memcmp and memset.  */#define TARGET_MEM_FUNCTIONS/* Standard register usage.  *//* Number of actual hardware registers.   The hardware registers are assigned numbers for the compiler   from 0 to just below FIRST_PSEUDO_REGISTER.   All registers that the compiler knows about must be given numbers,   even those that are not normally considered general registers.   HP-PA 1.0 has 32 fullword registers and 16 floating point   registers. The floating point registers hold either word or double   word values.   16 additional registers are reserved.   HP-PA 1.1 has 32 fullword registers and 32 floating point   registers. However, the floating point registers behave   differently: the left and right halves of registers are addressable   as 32 bit registers. So, we will set things up like the 68k which   has different fp units: define separate register sets for the 1.0   and 1.1 fp units. */#define FIRST_PSEUDO_REGISTER 89  /* 32 general regs + 56 fp regs +				     + 1 shift reg *//* 1 for registers that have pervasive standard uses   and are not available for the register allocator.   On the HP-PA, these are:   Reg 0	= 0 (hardware). However, 0 is used for condition code,                  so is not fixed.   Reg 1	= ADDIL target/Temporary (hardware).   Reg 2	= Return Pointer   Reg 3	= Frame Pointer   Reg 4	= Frame Pointer (>8k varying frame with HP compilers only)   Reg 4-18	= Preserved Registers   Reg 19	= Linkage Table Register in HPUX 8.0 shared library scheme.   Reg 20-22	= Temporary Registers   Reg 23-26	= Temporary/Parameter Registers   Reg 27	= Global Data Pointer (hp)   Reg 28	= Temporary/???/Return Value register   Reg 29	= Temporary/Static Chain/Return Value register #2   Reg 30	= stack pointer   Reg 31	= Temporary/Millicode Return Pointer (hp)   Freg 0-3	= Status Registers	 -- Not known to the compiler.   Freg 4-7	= Arguments/Return Value   Freg 8-11	= Temporary Registers   Freg 12-15	= Preserved Registers   Freg 16-31	= Reserved   On the Snake, fp regs are   Freg 0-3	= Status Registers	-- Not known to the compiler.   Freg 4L-7R	= Arguments/Return Value   Freg 8L-11R	= Temporary Registers   Freg 12L-21R	= Preserved Registers   Freg 22L-31R = Temporary Registers*/#define FIXED_REGISTERS  \ {0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 1, 0, 0, 1, 0, \  /* fp registers */	  \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0}/* 1 for registers not available across function calls.   These must include the FIXED_REGISTERS and also any   registers that can be used without being saved.   The latter must include the registers where values are returned   and the register where structure-value addresses are passed.   Aside from that, you can include as many other registers as you like.  */#define CALL_USED_REGISTERS  \ {1, 1, 1, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 1, 1, 1, 1, 1, \  1, 1, 1, 1, 1, 1, 1, 1, \  /* fp registers */	  \  1, 1, 1, 1, 1, 1, 1, 1, \  1, 1, 1, 1, 1, 1, 1, 1, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 1, 1, 1, 1, \  1, 1, 1, 1, 1, 1, 1, 1, \  1, 1, 1, 1, 1, 1, 1, 1, \  1}#define CONDITIONAL_REGISTER_USAGE \{						\  if (!TARGET_SNAKE)				\    {						\      for (i = 56; i < 88; i++) 		\	fixed_regs[i] = call_used_regs[i] = 1; 	\      for (i = 33; i < 88; i += 2) 		\	fixed_regs[i] = call_used_regs[i] = 1; 	\    }						\  if (TARGET_DISABLE_FPREGS || TARGET_SOFT_FLOAT)\    {						\      for (i = 32; i < 88; i++) 		\	fixed_regs[i] = call_used_regs[i] = 1; 	\    }						\  if (flag_pic)					\    {						\      fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1;	\      fixed_regs[PIC_OFFSET_TABLE_REGNUM_SAVED] = 1;\    }						\}/* Allocate the call used registers first.  This should minimize   the number of registers that need to be saved (as call used   registers will generally not be allocated across a call).   Experimentation has shown slightly better results by allocating   FP registers first.  */#define REG_ALLOC_ORDER \ {					\  /* caller-saved fp regs.  */		\  40, 41, 42, 43, 44, 45, 46, 47,	\  68, 69, 70, 71, 72, 73, 74, 75,	\  76, 77, 78, 79, 80, 81, 82, 83,	\  84, 85, 86, 87,			\  32, 33, 34, 35, 36, 37, 38, 39,	\  /* caller-saved general regs.  */	\  19, 20, 21, 22, 23, 24, 25, 26,	\  27, 28, 29, 31,  2,			\  /* callee-saved fp regs.  */		\  48, 49, 50, 51, 52, 53, 54, 55,	\  56, 57, 58, 59, 60, 61, 62, 63,	\  64, 65, 66, 67,			\  /* callee-saved general regs.  */	\   3,  4,  5,  6,  7,  8,  9, 10, 	\  11, 12, 13, 14, 15, 16, 17, 18,	\  /* special registers.  */		\   1, 30,  0, 88}/* True if register is floating-point.  */#define FP_REGNO_P(N) ((N) >= 32 && (N) <= 87)/* 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.   On the HP-PA, ordinary registers hold 32 bits worth;   The floating point registers are 64 bits wide. Snake fp regs are 32   bits wide */#define HARD_REGNO_NREGS(REGNO, MODE)					\  (!TARGET_SNAKE && FP_REGNO_P (REGNO) ? 1				\   : ((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.   On the HP-PA, the cpu registers can hold any mode.  We   force this to be an even register is it cannot hold the full mode.  */#define HARD_REGNO_MODE_OK(REGNO, MODE) \  ((REGNO) == 0 ? (MODE) == CCmode || (MODE) == CCFPmode		\   /* On 1.0 machines, don't allow wide non-fp modes in fp regs. */	\   : !TARGET_SNAKE && FP_REGNO_P (REGNO)				\     ? GET_MODE_SIZE (MODE) <= 4 || GET_MODE_CLASS (MODE) == MODE_FLOAT	\   /* Make wide modes be in aligned registers. */			\   : GET_MODE_SIZE (MODE) <= 4 || ((REGNO) & 1) == 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) \  (GET_MODE_CLASS (MODE1) == GET_MODE_CLASS (MODE2))/* Specify the registers used for certain standard purposes.   The values of these macros are register numbers.  *//* The HP-PA pc isn't overloaded on a register that the compiler knows about.  *//* #define PC_REGNUM  *//* Register to use for pushing function arguments.  */#define STACK_POINTER_REGNUM 30/* Base register for access to local variables of the function.  */#define FRAME_POINTER_REGNUM 3/* Value should be nonzero if functions must have frame pointers. */#define FRAME_POINTER_REQUIRED (current_function_calls_alloca)/* C statement to store the difference between the frame pointer   and the stack pointer values immediately after the function prologue.   Note, we always pretend that this is a leaf function because if   it's not, there's no point in trying to eliminate the   frame pointer.  If it is a leaf function, we guessed right!  */#define INITIAL_FRAME_POINTER_OFFSET(VAR) \  do {(VAR) = - compute_frame_size (get_frame_size (), 0);} while (0)/* Base register for access to arguments of the function.  */#define ARG_POINTER_REGNUM 3/* Register in which static-chain is passed to a function.  *//* ??? */#define STATIC_CHAIN_REGNUM 29/* Register which holds offset table for position-independent   data references.  */#define PIC_OFFSET_TABLE_REGNUM 19#define PIC_OFFSET_TABLE_REG_CALL_CLOBBERED 1/* Register into which we save the PIC_OFFEST_TABLE_REGNUM so that it   can be restore across function calls.  */#define PIC_OFFSET_TABLE_REGNUM_SAVED 4/* SOM ABI says that objects larger than 64 bits are returned in memory.  */#define DEFAULT_PCC_STRUCT_RETURN 0#define RETURN_IN_MEMORY(TYPE)	\  (int_size_in_bytes (TYPE) > 8 || TREE_ADDRESSABLE (TYPE))/* Register in which address to store a structure value   is passed to a function.  */#define STRUCT_VALUE_REGNUM 28/* 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.  */  /* The HP-PA has four kinds of registers: general regs, 1.0 fp regs,     1.1 fp regs, and the high 1.1 fp regs, to which the operands of     fmpyadd and fmpysub are restricted.  */enum reg_class { NO_REGS, R1_REGS, GENERAL_REGS, FP_REGS, GENERAL_OR_FP_REGS,  SHIFT_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", "R1_REGS", "GENERAL_REGS", "FP_REGS",			\   "GENERAL_OR_FP_REGS", "SHIFT_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. Register 0, the "condition code" register,   is in no class. */#define REG_CLASS_CONTENTS	\ {{0x00000000, 0x00000000, 0x00000000},	/* NO_REGS */			\  {0x00000002, 0x00000000, 0x00000000},	/* R1_REGS */			\  {0xfffffffe, 0x00000000, 0x00000000},	/* GENERAL_REGS */		\  {0x00000000, 0xffffffff, 0x00ffffff},	/* FP_REGS */			\  {0xfffffffe, 0xffffffff, 0x00ffffff},	/* GENERAL_OR_FP_REGS */	\  {0x00000000, 0x00000000, 0x01000000},	/* SHIFT_REGS */		\  {0xfffffffe, 0xffffffff, 0x01ffffff}}	/* 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)						\  ((REGNO) == 0 ? NO_REGS 						\   : (REGNO) == 1 ? R1_REGS						\   : (REGNO) < 32 ? GENERAL_REGS					\   : (REGNO) < 88 ? FP_REGS						\   : SHIFT_REGS)/* The class value for index registers, and the one for base regs.  */#define INDEX_REG_CLASS GENERAL_REGS#define BASE_REG_CLASS GENERAL_REGS#define FP_REG_CLASS_P(CLASS) \  ((CLASS) == FP_REGS)/* Get reg_class from a letter such as appears in the machine description.  *//* Keep 'x' for backward compatibility with user asm.   */#define REG_CLASS_FROM_LETTER(C) \  ((C) == 'f' ? FP_REGS :					\   (C) == 'x' ? FP_REGS :					\   (C) == 'q' ? SHIFT_REGS :					\   (C) == 'a' ? R1_REGS :					\   (C) == 'Z' ? ALL_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.   `I' is used for the 11 bit constants.   `J' is used for the 14 bit constants.   `K' is used for values that can be moved with a zdepi insn.   `L' is used for the 5 bit constants.   `M' is used for 0.   `N' is used for values with the least significant 11 bits equal to zero.   `O' is used for numbers n such that n+1 is a power of 2.   */#define CONST_OK_FOR_LETTER_P(VALUE, C)  \  ((C) == 'I' ? VAL_11_BITS_P (VALUE)				\   : (C) == 'J' ? VAL_14_BITS_P (VALUE)				\   : (C) == 'K' ? zdepi_cint_p (VALUE)				\   : (C) == 'L' ? VAL_5_BITS_P (VALUE)				\   : (C) == 'M' ? (VALUE) == 0					\   : (C) == 'N' ? ((VALUE) & 0x7ff) == 0			\   : (C) == 'O' ? (((VALUE) & ((VALUE) + 1)) == 0)		\   : (C) == 'P' ? and_mask_p (VALUE)				\   : 0)/* Similar, but for floating or large integer constants, and defining letters   G and H.   Here VALUE is the CONST_DOUBLE rtx itself.   For PA, `G' is the floating-point constant zero.  `H' is undefined.  */#define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C)  			\  ((C) == 'G' ? (GET_MODE_CLASS (GET_MODE (VALUE)) == MODE_FLOAT	\

⌨️ 快捷键说明

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