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

📄 i386.h

📁 linux下编程用 编译软件
💻 H
📖 第 1 页 / 共 5 页
字号:
   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.  */#define CLASS_LIKELY_SPILLED_P(CLASS)					\  (((CLASS) == AREG)							\   || ((CLASS) == DREG)							\   || ((CLASS) == CREG)							\   || ((CLASS) == BREG)							\   || ((CLASS) == AD_REGS)						\   || ((CLASS) == SIREG)						\   || ((CLASS) == DIREG)						\   || ((CLASS) == FP_TOP_REG)						\   || ((CLASS) == FP_SECOND_REG))/* Return a class of registers that cannot change FROM mode to TO mode.  */#define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS) \  ix86_cannot_change_mode_class (FROM, TO, CLASS)/* 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 to nonzero 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 1/* 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/* If we generate an insn to push BYTES bytes,   this says how many the stack pointer really advances by.   On 386, we have pushw instruction that decrements by exactly 2 no   matter what the position was, there is no pushb.   But as CIE data alignment factor on this arch is -4, we need to make   sure all stack pointer adjustments are in multiple of 4.   For 64bit ABI we round up to 8 bytes. */#define PUSH_ROUNDING(BYTES) \  (TARGET_64BIT		     \   ? (((BYTES) + 7) & (-8))  \   : (((BYTES) + 3) & (-4)))/* If defined, the maximum amount of space required for outgoing arguments will   be computed and placed into the variable   `current_function_outgoing_args_size'.  No space will be pushed onto the   stack for each call; instead, the function prologue should increase the stack   frame size by this amount.  */#define ACCUMULATE_OUTGOING_ARGS TARGET_ACCUMULATE_OUTGOING_ARGS/* If defined, a C expression whose value is nonzero when we want to use PUSH   instructions to pass outgoing arguments.  */#define PUSH_ARGS (TARGET_PUSH_ARGS && !ACCUMULATE_OUTGOING_ARGS)/* We want the stack and args grow in opposite directions, even if   PUSH_ARGS is 0.  */#define PUSH_ARGS_REVERSED 1/* Offset of first parameter from the argument pointer register value.  */#define FIRST_PARM_OFFSET(FNDECL) 0/* Define this macro if functions should assume that stack space has been   allocated for arguments even when their values are passed in registers.   The value of this macro is the size, in bytes, of the area reserved for   arguments passed in registers for the function represented by FNDECL.   This space can be allocated by the caller, or be a part of the   machine-dependent stack frame: `OUTGOING_REG_PARM_STACK_SPACE' says   which.  */#define REG_PARM_STACK_SPACE(FNDECL) 0/* 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.   On the 80386, the RTD insn may be used to pop them if the number     of args is fixed, but if the number is variable then the caller     must pop them all.  RTD can't be used for library calls now     because the library is compiled with the Unix compiler.   Use of RTD is a selectable option, since it is incompatible with   standard Unix calling sequences.  If the option is not selected,   the caller must always pop the args.   The attribute stdcall is equivalent to RTD on a per module basis.  */#define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, SIZE) \  ix86_return_pops_args ((FUNDECL), (FUNTYPE), (SIZE))#define FUNCTION_VALUE_REGNO_P(N) \  ix86_function_value_regno_p (N)/* Define how to find the value returned by a library function   assuming the value has mode MODE.  */#define LIBCALL_VALUE(MODE) \  ix86_libcall_value (MODE)/* Define the size of the result block used for communication between   untyped_call and untyped_return.  The block contains a DImode value   followed by the block used by fnsave and frstor.  */#define APPLY_RESULT_SIZE (8+108)/* 1 if N is a possible register number for function argument passing.  */#define FUNCTION_ARG_REGNO_P(N) ix86_function_arg_regno_p (N)/* 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.  */typedef struct ix86_args {  int words;			/* # words passed so far */  int nregs;			/* # registers available for passing */  int regno;			/* next available register number */  int fastcall;			/* fastcall calling convention is used */  int sse_words;		/* # sse words passed so far */  int sse_nregs;		/* # sse registers available for passing */  int warn_sse;			/* True when we want to warn about SSE ABI.  */  int warn_mmx;			/* True when we want to warn about MMX ABI.  */  int sse_regno;		/* next available sse register number */  int mmx_words;		/* # mmx words passed so far */  int mmx_nregs;		/* # mmx registers available for passing */  int mmx_regno;		/* next available mmx register number */  int maybe_vaarg;		/* true for calls to possibly vardic fncts.  */  int float_in_sse;		/* 1 if in 32-bit mode SFmode (2 for DFmode) should				   be passed in SSE registers.  Otherwise 0.  */} CUMULATIVE_ARGS;/* 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, FNDECL, N_NAMED_ARGS) \  init_cumulative_args (&(CUM), (FNTYPE), (LIBNAME), (FNDECL))/* 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) \  function_arg_advance (&(CUM), (MODE), (TYPE), (NAMED))/* 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))/* Implement `va_start' for varargs and stdarg.  */#define EXPAND_BUILTIN_VA_START(VALIST, NEXTARG) \  ix86_va_start (VALIST, NEXTARG)#define TARGET_ASM_FILE_END ix86_file_end#define NEED_INDICATE_EXEC_STACK 0/* Output assembler code to FILE to increment profiler label # LABELNO   for profiling a function entry.  */#define FUNCTION_PROFILER(FILE, LABELNO) x86_function_profiler (FILE, LABELNO)#define MCOUNT_NAME "_mcount"#define PROFILE_COUNT_REGISTER "edx"/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,   the stack pointer does not matter.  The value is tested only in   functions that have frame pointers.   No definition is equivalent to always zero.  *//* Note on the 386 it might be more efficient not to define this since   we have to restore it ourselves from the frame pointer, in order to   use pop */#define EXIT_IGNORE_STACK 1/* Output assembler code for a block containing the constant parts   of a trampoline, leaving space for the variable parts.  *//* On the 386, the trampoline contains two instructions:     mov #STATIC,ecx     jmp FUNCTION   The trampoline is generated entirely at runtime.  The operand of JMP   is the address of FUNCTION relative to the instruction following the   JMP (which is 5 bytes long).  *//* Length in units of the trampoline for entering a nested function.  */#define TRAMPOLINE_SIZE (TARGET_64BIT ? 23 : 10)/* 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) \  x86_initialize_trampoline ((TRAMP), (FNADDR), (CXT))/* 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.   There are two registers that can always be eliminated on the i386.   The frame pointer and the arg pointer can be replaced by either the   hard frame pointer or to the stack pointer, depending upon the   circumstances.  The hard frame pointer is not used before reload and   so it is not eligible for elimination.  */#define ELIMINABLE_REGS					\{{ ARG_POINTER_REGNUM, STACK_POINTER_REGNUM},		\ { ARG_POINTER_REGNUM, HARD_FRAME_POINTER_REGNUM},	\ { FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM},		\ { FRAME_POINTER_REGNUM, HARD_FRAME_POINTER_REGNUM}}	\/* Given FROM and TO register numbers, say whether this elimination is   allowed.  Frame pointer elimination is automatically handled.   All other eliminations are valid.  */#define CAN_ELIMINATE(FROM, TO) \  ((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) \  ((OFFSET) = ix86_initial_elimination_offset ((FROM), (TO)))/* Addressing modes, and classification of registers for them.  *//* 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 					\   || (REGNO >= FIRST_REX_INT_REG					\       && (REGNO) <= LAST_REX_INT_REG)					\   || ((unsigned) reg_renumber[(REGNO)] >= FIRST_REX_INT_REG		\       && (unsigned) reg_renumber[(REGNO)] <= LAST_REX_INT_REG)		\   || (unsigned) reg_renumber[(REGNO)] < STACK_POINTER_REGNUM)#define REGNO_OK_FOR_BASE_P(REGNO) 					\  ((REGNO) <= STACK_POINTER_REGNUM 					\   || (REGNO) == ARG_POINTER_REGNUM 					\   || (REGNO) == FRAME_POINTER_REGNUM 					\   || (REGNO >= FIRST_REX_INT_REG					\       && (REGNO) <= LAST_REX_INT_REG)					\   || ((unsigned) reg_renumber[(REGNO)] >= FIRST_REX_INT_REG		\       && (unsigned) reg_renumber[(REGNO)] <= LAST_REX_INT_REG)		\   || (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_REX_INT_REG					\       && REGNO (X) <= LAST_REX_INT_REG)				\   || 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) == FRAME_POINTER_REGNUM 				\   || (REGNO (X) >= FIRST_REX_INT_REG					\       && REGNO (X) <= LAST_REX_INT_REG)				\   || 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))#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)#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

⌨️ 快捷键说明

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