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

📄 i960.h

📁 linux下的gcc编译器
💻 H
📖 第 1 页 / 共 4 页
字号:
   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.   The i960 has a 64 byte register save area, plus possibly some extra   bytes allocated for varargs functions.  */#define STARTING_FRAME_OFFSET 64/* If we generate an insn to push BYTES bytes,   this says how many the stack pointer really advances by.   On 80960, don't define this because there are no push insns.  *//* #define PUSH_ROUNDING(BYTES) BYTES *//* Offset of first parameter from the argument pointer register value.  */#define FIRST_PARM_OFFSET(FNDECL) 0/* When a parameter is passed in a register, no stack space is   allocated for it.  However, when args are passed in the   stack, space is allocated for every register parameter.  */#define MAYBE_REG_PARM_STACK_SPACE 48#define FINAL_REG_PARM_STACK_SPACE(CONST_SIZE, VAR_SIZE)	\  i960_final_reg_parm_stack_space (CONST_SIZE, VAR_SIZE);#define REG_PARM_STACK_SPACE(DECL) i960_reg_parm_stack_space (DECL)#define OUTGOING_REG_PARM_STACK_SPACE/* Keep the stack pointer constant throughout the function.  */#define ACCUMULATE_OUTGOING_ARGS 1/* Value is 1 if returning from a function call automatically   pops the arguments described by the number-of-args field in the 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.  */#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) 0/* Define how to find the value returned by a library function   assuming the value has mode MODE.  */#define LIBCALL_VALUE(MODE) gen_rtx_REG ((MODE), 0)/* 1 if N is a possible register number for a function value   as seen by the caller.   On 80960, returns are in g0..g3 */#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)/* 1 if N is a possible register number for function argument passing.   On 80960, parameters are passed in g0..g11 */#define FUNCTION_ARG_REGNO_P(N) ((N) < 12)/* Perform any needed actions needed for a function that is receiving a   variable number of arguments.    CUM is as above.   MODE and TYPE are the mode and type of the current parameter.   PRETEND_SIZE is a variable that should be set to the amount of stack   that must be pushed by the prolog to pretend that our caller pushed   it.   Normally, this macro will push all remaining incoming registers on the   stack and set PRETEND_SIZE to the length of the registers pushed.  */#define SETUP_INCOMING_VARARGS(CUM,MODE,TYPE,PRETEND_SIZE,NO_RTL) \  i960_setup_incoming_varargs(&CUM,MODE,TYPE,&PRETEND_SIZE,NO_RTL)/* Define the `__builtin_va_list' type for the ABI.  */#define BUILD_VA_LIST_TYPE(VALIST) \  (VALIST) = i960_build_va_list ()/* Implement `va_start' for varargs and stdarg.  */#define EXPAND_BUILTIN_VA_START(valist, nextarg) \  i960_va_start (valist, nextarg)/* Implement `va_arg'.  */#define EXPAND_BUILTIN_VA_ARG(valist, type) \  i960_va_arg (valist, type)/* 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.   On 80960, this is two integers, which count the number of register   parameters and the number of stack parameters seen so far.  */struct cum_args { int ca_nregparms; int ca_nstackparms; };#define CUMULATIVE_ARGS struct cum_args/* Define the number of registers that can hold parameters.   This macro is used only in macro definitions below and/or i960.c.  */#define NPARM_REGS 12/* Define how to round to the next parameter boundary.   This macro is used only in macro definitions below and/or i960.c.  */#define ROUND_PARM(X, MULTIPLE_OF)	\  ((((X) + (MULTIPLE_OF) - 1) / (MULTIPLE_OF)) * MULTIPLE_OF)/* 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.   On 80960, the offset always starts at 0; the first parm reg is g0.  */#define INIT_CUMULATIVE_ARGS(CUM,FNTYPE,LIBNAME,INDIRECT)	\  ((CUM).ca_nregparms = 0, (CUM).ca_nstackparms = 0)/* Update the data in CUM to advance over an argument   of mode MODE and data type TYPE.   CUM should be advanced to align with the data type accessed and   also the size of that data type in # of regs.   (TYPE is null for libcalls where that information may not be available.)  */#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)	\  i960_function_arg_advance(&CUM, MODE, TYPE, NAMED)/* Indicate the alignment boundary for an argument of the specified mode and   type.  */#define FUNCTION_ARG_BOUNDARY(MODE, TYPE)				\  (((TYPE) != 0)							\   ? ((TYPE_ALIGN (TYPE) <= PARM_BOUNDARY)				\      ? PARM_BOUNDARY							\      : TYPE_ALIGN (TYPE))						\   : ((GET_MODE_ALIGNMENT (MODE) <= PARM_BOUNDARY)			\      ? PARM_BOUNDARY							\      : GET_MODE_ALIGNMENT (MODE)))/* Determine where to put an argument 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)	\  i960_function_arg(&CUM, MODE, TYPE, NAMED)/* Define how to find the value returned by a function.   VALTYPE is the data type of the value (as a tree).   If the precise function being called is known, FUNC is its FUNCTION_DECL;   otherwise, FUNC is 0.  */#define FUNCTION_VALUE(TYPE, FUNC) \  gen_rtx_REG (TYPE_MODE (TYPE), 0)/* Force aggregates and objects larger than 16 bytes to be returned in memory,   since we only have 4 registers available for return values.  */#define RETURN_IN_MEMORY(TYPE) \  (TYPE_MODE (TYPE) == BLKmode || int_size_in_bytes (TYPE) > 16)/* Don't default to pcc-struct-return, because we have already specified   exactly how to return structures in the RETURN_IN_MEMORY macro.  */#define DEFAULT_PCC_STRUCT_RETURN 0/* For an arg passed partly in registers and partly in memory,   this is the number of registers used.   This never happens on 80960.  */#define FUNCTION_ARG_PARTIAL_NREGS(CUM, MODE, TYPE, NAMED) 0/* Output the label for a function definition.  This handles leaf functions and a few other things for the i960.  */#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)	\  i960_function_name_declare (FILE, NAME, DECL)/* Output assembler code to FILE to increment profiler label # LABELNO   for profiling a function entry.  */#define FUNCTION_PROFILER(FILE, LABELNO)	\  output_function_profiler ((FILE), (LABELNO));/* 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.  */#define	EXIT_IGNORE_STACK 1/* Addressing modes, and classification of registers for them.  *//* #define HAVE_POST_INCREMENT 0 *//* #define HAVE_POST_DECREMENT 0 *//* #define HAVE_PRE_DECREMENT 0 *//* #define HAVE_PRE_INCREMENT 0 *//* 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) < 32 || (unsigned) reg_renumber[REGNO] < 32)#define REGNO_OK_FOR_BASE_P(REGNO) \  ((REGNO) < 32 || (unsigned) reg_renumber[REGNO] < 32)#define REGNO_OK_FOR_FP_P(REGNO) \  ((REGNO) < 36 || (unsigned) reg_renumber[REGNO] < 36)/* Now macros that check whether X is a register and also,   strictly, whether it is in a specified class.   These macros are specific to the 960, and may be used only   in code for printing assembler insns and in conditions for   define_optimization.  *//* 1 if X is an fp register.  */#define FP_REG_P(X) (REGNO (X) >= 32 && REGNO (X) < 36)/* Maximum number of registers that can appear in a valid memory address.  */#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)/* LEGITIMATE_CONSTANT_P is nonzero if the constant value X   is a legitimate general operand.   It is given that X satisfies CONSTANT_P.   Anything but a CONST_DOUBLE can be made to work, excepting 0.0 and 1.0.   ??? This probably should be defined to 1.  */#define LEGITIMATE_CONSTANT_P(X) \  ((GET_CODE (X) != CONST_DOUBLE) || fp_literal ((X), GET_MODE (X)))/* 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.  */#ifndef REG_OK_STRICT/* Nonzero if X is a hard reg that can be used as an index   or if it is a pseudo reg.  */#define REG_OK_FOR_INDEX_P(X) \  (REGNO (X) < 32 || REGNO (X) >= FIRST_PSEUDO_REGISTER)/* Nonzero if X is a hard reg that can be used as a base reg   or if it is a pseudo reg.  */#define REG_OK_FOR_BASE_P(X) \  (REGNO (X) < 32 || REGNO (X) >= FIRST_PSEUDO_REGISTER)#define REG_OK_FOR_INDEX_P_STRICT(X) REGNO_OK_FOR_INDEX_P (REGNO (X))#define REG_OK_FOR_BASE_P_STRICT(X) REGNO_OK_FOR_BASE_P (REGNO (X))#else/* Nonzero if X is a hard reg that can be used as an index.  */#define REG_OK_FOR_INDEX_P(X) REGNO_OK_FOR_INDEX_P (REGNO (X))/* Nonzero if X is a hard reg that can be used as a base reg.  */#define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P (REGNO (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.	On 80960, legitimate addresses are:		base				ld	(g0),r0		disp	(12 or 32 bit)		ld	foo,r0		base + index			ld	(g0)[g1*1],r0		base + displ			ld	0xf00(g0),r0		base + index*scale + displ	ld	0xf00(g0)[g1*4],r0		index*scale + base		ld	(g0)[g1*4],r0		index*scale + displ		ld	0xf00[g1*4],r0		index*scale			ld	[g1*4],r0		index + base + displ		ld	0xf00(g0)[g1*1],r0	In each case, scale can be 1, 2, 4, 8, or 16.  *//* Returns 1 if the scale factor of an index term is valid.  */#define SCALE_TERM_P(X)							\  (GET_CODE (X) == CONST_INT						\   && (INTVAL (X) == 1 || INTVAL (X) == 2 || INTVAL (X) == 4 		\       || INTVAL(X) == 8 || INTVAL (X) == 16))#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.  *//* On 80960, convert non-canonical addresses to canonical form.  */#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)	\{ rtx orig_x = (X);				\  (X) = legitimize_address (X, OLDX, MODE);	\  if ((X) != orig_x && memory_address_p (MODE, X)) \    goto WIN; }/* Go to LABEL if ADDR (a legitimate address expression)   has an effect that depends on the machine mode it is used for.   On the 960 this is never true.  */#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR,LABEL)/* Specify the machine mode that this machine uses   for the index in the tablejump instruction.  */#define CASE_VECTOR_MODE SImode/* Define as C expression which evaluates to nonzero 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 1 *//* Define this as 1 if `char' should by default be signed; else as 0.  */#define DEFAULT_SIGNED_CHAR 0/* Max number of bytes we can move from memory to memory   in one reasonably fast instruction.  */#define MOVE_MAX 16/* Define if operations between registers always perform the operation   on the full register even if a narrower mode is specified.  */#define WORD_REGISTER_OPERATIONS

⌨️ 快捷键说明

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