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

📄 ns32k.h

📁 gcc编译工具没有什么特别
💻 H
📖 第 1 页 / 共 5 页
字号:
#if 0#define SECONDARY_MEMORY_NEEDED(CLASS1, CLASS2, M)			\     secondary_memory_needed(CLASS1, CLASS2, M)#endif/* SMALL_REGISTER_CLASSES is true only if we have said we are using the * multiply-add instructions. */#define SMALL_REGISTER_CLASSES (target_flags & 512)/* 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 definition won't do because class LONG_FLOAT_REG0 has two   registers which are always acessed as a pair */#define CLASS_LIKELY_SPILLED_P(CLASS) \  (reg_class_size[(int) (CLASS)] == 1 || (CLASS) == LONG_FLOAT_REG0)/* 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/* 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) < F0_REGNUM || REGNO (X) >= FIRST_PSEUDO_REGISTER)/* Nonzero if X is a hard reg that can be used as a base reg   of if it is a pseudo reg.  */#define REG_OK_FOR_BASE_P(X) (REGNO (X) < F0_REGNUM || REGNO (X) >= FRAME_POINTER_REGNUM)/* Nonzero if X is a floating point reg or a pseudo reg.  */#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.   The other macros defined here are used only in GO_IF_LEGITIMATE_ADDRESS.  *//* 1 if X is an address that we could indirect through.  *//***** NOTE ***** There is a bug in the Sequent assembler which fails to fixup addressing information for symbols used as offsets from registers which are not FP or SP (or SB or PC).  This makes _x(fp) valid, while _x(r0) is invalid.  */#define INDIRECTABLE_1_ADDRESS_P(X)  \  (CONSTANT_ADDRESS_P (X)						\   || (GET_CODE (X) == REG && REG_OK_FOR_BASE_P (X))			\   || (GET_CODE (X) == PLUS						\       && GET_CODE (XEXP (X, 0)) == REG					\       && REG_OK_FOR_BASE_P (XEXP (X, 0))				\       && ((flag_pic || TARGET_HIMEM) ? 				\	     CONSTANT_ADDRESS_NO_LABEL_P (XEXP (X, 1))	 		\	   :								\	     CONSTANT_ADDRESS_P (XEXP (X, 1))) 				\       && (GET_CODE (X) != CONST_INT || NS32K_DISPLACEMENT_P (INTVAL (X)))))/* 1 if integer I will fit in a 4 byte displacement field.   Strictly speaking, we can't be sure that a symbol will fit this range.   But, in practice, it always will.  *//* idall@eleceng.adelaide.edu.au says that the 32016 and 32032   can handle the full range of displacements--it is only the addresses   that have a limited range.  So the following was deleted: (((i) <= 16777215 && (i) >= -16777216)  || ((TARGET_32532 || TARGET_32332) && ...))  */#define NS32K_DISPLACEMENT_P(i) 				\  ((i) < (1 << 29) && (i) >= - (1 << 29))/* Check for frame pointer or stack pointer.  */#define MEM_REG(X) \  (GET_CODE (X) == REG && (REGNO (X) == FRAME_POINTER_REGNUM  \			   || REGNO(X) == STACK_POINTER_REGNUM))/* A memory ref whose address is the FP or SP, with optional integer offset,   or (on certain machines) a constant address.  */#define INDIRECTABLE_2_ADDRESS_P(X)  \  (GET_CODE (X) == MEM							\   && (((xfoo0 = XEXP (X, 0), MEM_REG (xfoo0))				\       || (GET_CODE (xfoo0) == PLUS					\	   && MEM_REG (XEXP (xfoo0, 0))					\	   && CONSTANT_ADDRESS_NO_LABEL_P (XEXP (xfoo0, 1))))		\       || (TARGET_SB && CONSTANT_ADDRESS_P (xfoo0))))/* Go to ADDR if X is a valid address not using indexing.   (This much is the easy part.)  */#define GO_IF_NONINDEXED_ADDRESS(X, ADDR)  \{ register rtx xfoob = (X);						\  if (INDIRECTABLE_1_ADDRESS_P (X)) goto ADDR;				\  if (INDIRECTABLE_2_ADDRESS_P (X)) goto ADDR;				\  if (GET_CODE (X) == PLUS)						\    if (CONSTANT_ADDRESS_NO_LABEL_P (XEXP (X, 1)))			\      if (INDIRECTABLE_2_ADDRESS_P (XEXP (X, 0)))			\	goto ADDR;							\}/* Go to ADDR if X is a valid address not using indexing.   (This much is the easy part.)  */#define GO_IF_INDEXING(X, MODE, ADDR)  \{ register rtx xfoob = (X);						\  if (GET_CODE (xfoob) == PLUS && INDEX_TERM_P (XEXP (xfoob, 0), MODE))	\    GO_IF_INDEXABLE_ADDRESS (XEXP (xfoob, 1), ADDR);			\  if (GET_CODE (xfoob) == PLUS && INDEX_TERM_P (XEXP (xfoob, 1), MODE))	\    GO_IF_INDEXABLE_ADDRESS (XEXP (xfoob, 0), ADDR); }			\#define GO_IF_INDEXABLE_ADDRESS(X, ADDR) \{ if (GET_CODE (X) == REG && REG_OK_FOR_BASE_P (X)) goto ADDR;		\  if (INDIRECTABLE_2_ADDRESS_P (X)) goto ADDR;				\  if (INDIRECTABLE_1_ADDRESS_P (X)) goto ADDR;				\}/* 1 if PROD is either a reg times size of mode MODE   or just a reg, if MODE is just one byte. Actually, on the ns32k,   since the index mode is independent of the operand size,   we can match more stuff...   This macro's expansion uses the temporary variables xfoo0, xfoo1   and xfoo2 that must be declared in the surrounding context.  */#define INDEX_TERM_P(PROD, MODE)   \((GET_CODE (PROD) == REG && REG_OK_FOR_INDEX_P (PROD))			\ || (GET_CODE (PROD) == MULT						\     &&	(xfoo0 = XEXP (PROD, 0), xfoo1 = XEXP (PROD, 1),		\	 (GET_CODE (xfoo1) == CONST_INT					\	  && GET_CODE (xfoo0) == REG					\	  && FITS_INDEX_RANGE (INTVAL (xfoo1))				\	  && REG_OK_FOR_INDEX_P (xfoo0)))))#define FITS_INDEX_RANGE(X)  \  ((xfoo2 = (unsigned)(X)-1),						\   ((xfoo2 < 4 && xfoo2 != 2) || xfoo2 == 7))/* Note that xfoo0, xfoo1, xfoo2 are used in some of the submacros above.  */#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR) \{ register rtx xfooy, xfoo0, xfoo1;					\  unsigned xfoo2;							\  extern int current_function_uses_pic_offset_table, flag_pic;		\  xfooy = X;								\  if (flag_pic && ! current_function_uses_pic_offset_table		\      && global_symbolic_reference_mentioned_p (X, 1))			\    current_function_uses_pic_offset_table = 1;				\  GO_IF_NONINDEXED_ADDRESS (xfooy, ADDR);				\  if (GET_CODE (xfooy) == PLUS)						\    {									\      if (CONSTANT_ADDRESS_NO_LABEL_P (XEXP (xfooy, 1))			\	  && GET_CODE (XEXP (xfooy, 0)) == PLUS)			\	xfooy = XEXP (xfooy, 0);					\      else if (CONSTANT_ADDRESS_NO_LABEL_P (XEXP (xfooy, 0))		\	  && GET_CODE (XEXP (xfooy, 1)) == PLUS)			\	xfooy = XEXP (xfooy, 1);					\      GO_IF_INDEXING (xfooy, MODE, ADDR);				\    }									\  else if (INDEX_TERM_P (xfooy, MODE))					\    goto ADDR;								\  else if (GET_CODE (xfooy) == PRE_DEC)					\    if (REGNO (XEXP (xfooy, 0)) == STACK_POINTER_REGNUM) goto ADDR;	\  else abort ();							\}/* 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 ns32k, we do nothing */#define LEGITIMIZE_ADDRESS(X,OLDX,MODE,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.  */extern int current_function_uses_pic_offset_table, flag_pic;#define LEGITIMATE_PIC_OPERAND_P(X) \  (((! current_function_uses_pic_offset_table			\     && symbolic_reference_mentioned_p (X))?			\      (current_function_uses_pic_offset_table = 1):0		\   ), (! SYMBOLIC_CONST (X)					\   || GET_CODE (X) == SYMBOL_REF || GET_CODE (X) == LABEL_REF))#define SYMBOLIC_CONST(X)	\(GET_CODE (X) == SYMBOL_REF						\ || GET_CODE (X) == LABEL_REF						\ || (GET_CODE (X) == CONST && symbolic_reference_mentioned_p (X)))/* 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 the ns32k, if using PIC, mark a SYMBOL_REF for a non-global   symbol or a code symbol. These symbols are referenced via pc   and not via sb. */#define ENCODE_SECTION_INFO(DECL) \do									\  {									\    extern int flag_pic;						\    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)/* Go to LABEL if ADDR (a legitimate address expression)   has an effect that depends on the machine mode it is used for.   On the ns32k, only predecrement 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) == PRE_DEC)	\     goto LABEL;}/* 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) \  (ns32k_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) \  (ns32k_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) \  (ns32k_comp_type_attributes (TYPE1, TYPE2))/* If defined, a C statement that assigns default attributes to newly   defined TYPE.  *//* #define SET_DEFAULT_TYPE_ATTRIBUTES (TYPE) *//* Specify the machine mode that this machine uses   for the index in the tablejump instruction.   HI mode is more efficient but the range is not wide enough for   all programs. */#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/* Specify the tree operation to be used to convert reals to integers.  */#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/* The number of scalar move insns which should be generated instead   of a string move insn or a library call.      We have a smart movstrsi insn */#define MOVE_RATIO 0/* Define this if zero-extension is slow (more than one real instruction).  *//* #define SLOW_ZERO_EXTEND *//* Nonzero if access to memory by bytes is slow and undesirable.  */#define SLOW_BYTE_ACCESS 0/* Define if shifts truncate the shift count   which implies one can omit a sign-extension or zero-extension   of a shift count.  *//* #define SHIFT_COUNT_TRUNCATED *//* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits   is done just by pretending it is already truncated.  */#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1/* We assume that the store-condition-codes instructions store 0 for false   and some other value for true.  This is the value stored for true.  */#define STORE_FLAG_VALUE 1/* Specify the machine mode that pointers have.   After generation of rtl, the compiler makes no further distinction   between pointers and any other objects of this machine mode.  */#define Pmode SImode/* A function address in a call instruction   is a byte address (for indexing purposes)   so give the MEM rtx a byte's mode.  */#define FUNCTION_MODE QImode/* Compute the cost of address ADDRESS. */#define ADDRESS_COST(RTX) calc_address_cost (RTX)/* Compute the cost of computing a constant rtl expression RTX

⌨️ 快捷键说明

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