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

📄 i386.h

📁 GUN开源阻止下的编译器GCC
💻 H
📖 第 1 页 / 共 5 页
字号:
  ASM_OUTPUT_SHORT (FILE, const0_rtx);			\  ASM_OUTPUT_SHORT (FILE, const0_rtx);			\  ASM_OUTPUT_CHAR (FILE, GEN_INT (0xb8));		\  ASM_OUTPUT_SHORT (FILE, const0_rtx);			\  ASM_OUTPUT_SHORT (FILE, const0_rtx);			\  ASM_OUTPUT_CHAR (FILE, GEN_INT (0xff));		\  ASM_OUTPUT_CHAR (FILE, GEN_INT (0xe0));		\}/* Length in units of the trampoline for entering a nested function.  */#define TRAMPOLINE_SIZE 12/* Emit RTL insns to initialize the variable parts of a trampoline.   FNADDR is an RTX for the address of the function's pure code.   CXT is an RTX for the static chain value for the function.  */#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)			\{									\  emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 1)), CXT); \  emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 6)), FNADDR); \}/* Definitions for register eliminations.   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.   We have two registers that can be eliminated on the i386.  First, the   frame pointer register can often be eliminated in favor of the stack   pointer register.  Secondly, the argument pointer register can always be   eliminated; it is replaced with either the stack or frame pointer. */#define ELIMINABLE_REGS				\{{ ARG_POINTER_REGNUM, STACK_POINTER_REGNUM},	\ { ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM},   \ { FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}/* Given FROM and TO register numbers, say whether this elimination is allowed.   Frame pointer elimination is automatically handled.   For the i386, if frame pointer elimination is being done, we would like to   convert ap into sp, not fp.   All other eliminations are valid.  */#define CAN_ELIMINATE(FROM, TO)					\ ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM	\  ? ! frame_pointer_needed					\  : 1)/* Define the offset between two registers, one to be eliminated, and the other   its replacement, at the start of a routine.  */#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET)			\{									\  if ((FROM) == ARG_POINTER_REGNUM && (TO) == FRAME_POINTER_REGNUM)	\    (OFFSET) = 8;	/* Skip saved PC and previous frame pointer */	\  else									\    {									\      int regno;							\      int offset = 0;							\									\      for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)		\	if ((regs_ever_live[regno] && ! call_used_regs[regno])		\	    || (current_function_uses_pic_offset_table			\		&& regno == PIC_OFFSET_TABLE_REGNUM))			\	  offset += 4;							\									\      (OFFSET) = offset + get_frame_size ();				\									\      if ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM)	\	(OFFSET) += 4;	/* Skip saved PC */				\    }									\}/* Addressing modes, and classification of registers for them.  *//* #define HAVE_POST_INCREMENT *//* #define HAVE_POST_DECREMENT *//* #define HAVE_PRE_DECREMENT *//* #define HAVE_PRE_INCREMENT *//* 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_INDEX_P(REGNO) \  ((REGNO) < STACK_POINTER_REGNUM \   || (unsigned) reg_renumber[REGNO] < STACK_POINTER_REGNUM)#define REGNO_OK_FOR_BASE_P(REGNO) \  ((REGNO) <= STACK_POINTER_REGNUM \   || (REGNO) == ARG_POINTER_REGNUM \   || (unsigned) reg_renumber[REGNO] <= STACK_POINTER_REGNUM)#define REGNO_OK_FOR_SIREG_P(REGNO) ((REGNO) == 4 || reg_renumber[REGNO] == 4)#define REGNO_OK_FOR_DIREG_P(REGNO) ((REGNO) == 5 || reg_renumber[REGNO] == 5)/* The macros REG_OK_FOR..._P assume that the arg is a REG rtx   and check its validity for a certain class.   We have two alternate definitions for each of them.   The usual definition accepts all pseudo regs; the other rejects   them unless they have been allocated suitable hard regs.   The symbol REG_OK_STRICT causes the latter definition to be used.   Most source files want to accept pseudo regs in the hope that   they will get allocated to the class that the insn wants them to be in.   Source files for reload pass need to be strict.   After reload, it makes no difference, since pseudo regs have   been eliminated by then.  *//* Non strict versions, pseudos are ok */#define REG_OK_FOR_INDEX_NONSTRICT_P(X)					\  (REGNO (X) < STACK_POINTER_REGNUM					\   || REGNO (X) >= FIRST_PSEUDO_REGISTER)#define REG_OK_FOR_BASE_NONSTRICT_P(X)					\  (REGNO (X) <= STACK_POINTER_REGNUM					\   || REGNO (X) == ARG_POINTER_REGNUM					\   || REGNO (X) >= FIRST_PSEUDO_REGISTER)#define REG_OK_FOR_STRREG_NONSTRICT_P(X)				\  (REGNO (X) == 4 || REGNO (X) == 5 || REGNO (X) >= FIRST_PSEUDO_REGISTER)/* Strict versions, hard registers only */#define REG_OK_FOR_INDEX_STRICT_P(X) REGNO_OK_FOR_INDEX_P (REGNO (X))#define REG_OK_FOR_BASE_STRICT_P(X)  REGNO_OK_FOR_BASE_P (REGNO (X))#define REG_OK_FOR_STRREG_STRICT_P(X)					\  (REGNO_OK_FOR_DIREG_P (REGNO (X)) || REGNO_OK_FOR_SIREG_P (REGNO (X)))#ifndef REG_OK_STRICT#define REG_OK_FOR_INDEX_P(X)  REG_OK_FOR_INDEX_NONSTRICT_P(X)#define REG_OK_FOR_BASE_P(X)   REG_OK_FOR_BASE_NONSTRICT_P(X)#define REG_OK_FOR_STRREG_P(X) REG_OK_FOR_STRREG_NONSTRICT_P(X)#else#define REG_OK_FOR_INDEX_P(X)  REG_OK_FOR_INDEX_STRICT_P(X)#define REG_OK_FOR_BASE_P(X)   REG_OK_FOR_BASE_STRICT_P(X)#define REG_OK_FOR_STRREG_P(X) REG_OK_FOR_STRREG_STRICT_P(X)#endif/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression   that is a valid memory address for an instruction.   The MODE argument is the machine mode for the MEM expression   that wants to use this address.   The other macros defined here are used only in GO_IF_LEGITIMATE_ADDRESS,   except for CONSTANT_ADDRESS_P which is usually machine-independent.   See legitimize_pic_address in i386.c for details as to what   constitutes a legitimate address when -fpic is used.  */#define MAX_REGS_PER_ADDRESS 2#define CONSTANT_ADDRESS_P(X)   \  (GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF		\   || GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST		\   || GET_CODE (X) == HIGH)/* Nonzero if the constant value X is a legitimate general operand.   It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.  */#define LEGITIMATE_CONSTANT_P(X) 1#ifdef REG_OK_STRICT#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR)				\{									\  if (legitimate_address_p (MODE, X, 1))				\    goto ADDR;								\}#else#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR)				\{									\  if (legitimate_address_p (MODE, X, 0))				\    goto ADDR;								\}#endif/* Try machine-dependent ways of modifying an illegitimate address   to be legitimate.  If we find one, return the new, valid address.   This macro is used in only one place: `memory_address' in explow.c.   OLDX is the address as it was before break_out_memory_refs was called.   In some cases it is useful to look at this to decide what needs to be done.   MODE and WIN are passed so that this macro can use   GO_IF_LEGITIMATE_ADDRESS.   It is always safe for this macro to do nothing.  It exists to recognize   opportunities to optimize the output.   For the 80386, we handle X+REG by loading X into a register R and   using R+REG.  R will go in a general reg and indexing will be used.   However, if REG is a broken-out memory address or multiplication,   nothing needs to be done because REG can certainly go in a general reg.   When -fpic is used, special handling is needed for symbolic references.   See comments by legitimize_pic_address in i386.c for details.  */#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)				\{									\  rtx orig_x = (X);							\  (X) = legitimize_address (X, OLDX, MODE);				\  if (memory_address_p (MODE, X))					\    goto WIN;								\}/* Nonzero if the constant value X is a legitimate general operand   when generating PIC code.  It is given that flag_pic is on and    that X satisfies CONSTANT_P or is a CONST_DOUBLE.  */#define LEGITIMATE_PIC_OPERAND_P(X) \  (! SYMBOLIC_CONST (X)							\   || (GET_CODE (X) == SYMBOL_REF && CONSTANT_POOL_ADDRESS_P (X)))#define SYMBOLIC_CONST(X)	\(GET_CODE (X) == SYMBOL_REF						\ || GET_CODE (X) == LABEL_REF						\ || (GET_CODE (X) == CONST && symbolic_reference_mentioned_p (X)))/* Go to LABEL if ADDR (a legitimate address expression)   has an effect that depends on the machine mode it is used for.   On the 80386, only postdecrement and postincrement address depend thus   (the amount of decrement or increment being the length of the operand).  */#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR,LABEL)	\ if (GET_CODE (ADDR) == POST_INC || GET_CODE (ADDR) == POST_DEC) goto LABEL/* 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 i386, 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));		\	SYMBOL_REF_FLAG (XEXP (rtl, 0))					\	  = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd'			\	     || ! TREE_PUBLIC (DECL));					\      }									\  }									\while (0)/* Initialize data used by insn expanders.  This is called from   init_emit, once for each function, before code is generated.   For 386, clear stack slot assignments remembered from previous   functions. */#define INIT_EXPANDERS clear_386_stack_locals ()/* The `FINALIZE_PIC' macro serves as a hook to emit these special   codes once the function is being compiled into assembly code, but   not before.  (It is not done before, because in the case of   compiling an inline function, it would lead to multiple PIC   prologues being included in functions which used inline functions   and were compiled to assembly language.)  */#define FINALIZE_PIC							\do									\  {									\    extern int current_function_uses_pic_offset_table;			\									\    current_function_uses_pic_offset_table |= profile_flag | profile_block_flag; \  }									\while (0)/* If defined, a C expression whose value is nonzero if IDENTIFIER   with arguments ARGS is a valid machine specific attribute for DECL.   The attributes in ATTRIBUTES have previously been assigned to DECL.  */#define VALID_MACHINE_DECL_ATTRIBUTE(DECL, ATTRIBUTES, NAME, ARGS) \  (i386_valid_decl_attribute_p (DECL, ATTRIBUTES, NAME, ARGS))/* If defined, a C expression whose value is nonzero if IDENTIFIER   with arguments ARGS is a valid machine specific attribute for TYPE.   The attributes in ATTRIBUTES have previously been assigned to TYPE.  */#define VALID_MACHINE_TYPE_ATTRIBUTE(TYPE, ATTRIBUTES, NAME, ARGS) \  (i386_valid_type_attribute_p (TYPE, ATTRIBUTES, NAME, ARGS))/* If defined, a C expression whose value is zero if the attributes on   TYPE1 and TYPE2 are incompatible, one if they are compatible, and   two if they are nearly compatible (which causes a warning to be   generated).  */#define COMP_TYPE_ATTRIBUTES(TYPE1, TYPE2) \  (i386_comp_type_attributes (TYPE1, TYPE2))/* If defined, a C statement that assigns default attributes to newly   defined TYPE.  *//* #define SET_DEFAULT_TYPE_ATTRIBUTES (TYPE) *//* Max number of args passed in registers.  If this is more than 3, we will   have problems with ebx (register #4), since it is a caller save register and   is also used as the pic register in ELF.  So for now, don't allow more than   3 registers to be passed in registers.  */#define REGPARM_MAX 3/* Specify the machine mode that this machine uses   for the index in the tablejump instruction.  */#define CASE_VECTOR_MODE Pmode/* Define this if the tablejump instruction expects the table   to contain offsets from the address of the table.   Do not define this if the table should contain absolute addresses.  *//* #define CASE_VECTOR_PC_RELATIVE *//* Specify the tree operation to be used to convert reals to integers.   This should be changed to take advantage of fist --wfs ?? */#define IMPLICIT_FIX_EXPR FIX_ROUND_EXPR/* This is the kind of divide that is easiest to do in the general case.  */#define EASY_DIV_EXPR TRUNC_DIV_EXPR/* Define this as 1 if `char' should by default be signed; else as 0.  */#define DEFAULT_SIGNED_CHAR 1/* Max number of bytes we can move from memory to memory   in one reasonably fast instruction.  */#define MOVE_MAX 4/* MOVE_RATIO is the number of move instructions that is better than a

⌨️ 快捷键说明

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