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

📄 clipper.h

📁 gcc编译工具没有什么特别
💻 H
📖 第 1 页 / 共 3 页
字号:
/* 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 clipper, nothing needs to be done.  */#define LEGITIMIZE_ADDRESS(X,OLDX,MODE,WIN)  {}/* Go to LABEL if ADDR (a legitimate address expression)   has an effect that depends on the machine mode it is used for. */#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 if the case instruction drops through after the table   when the index is out of range.  Don't define it if the case insn   jumps to the default label instead.  *//* #define CASE_DROPS_THROUGH *//* Define if operations between registers always perform the operation   on the full register even if a narrower mode is specified.  */#define WORD_REGISTER_OPERATIONS/* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD   will either zero-extend or sign-extend.  The value of this macro should   be the code that says which one of the two operations is implicitly   done, NIL if none.  */#define LOAD_EXTEND_OP(MODE) SIGN_EXTEND/* 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/* This flag, if defined, says the same insns that convert to a signed fixnum   also convert validly to an unsigned one.  */#define FIXUNS_TRUNC_LIKE_FIX_TRUNC/* Max number of bytes we can move from memory to memory   in one reasonably fast instruction.  */#define MOVE_MAX 4/* If a memory-to-memory move would take MOVE_RATIO or more simple   move-instruction pairs, we will do a movstr or libcall instead.   Make this large on clipper, since the block move is very   inefficient with small blocks, and the hard register needs of the   block move require much reload work. */#define MOVE_RATIO 20/* 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/* 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/* This machine uses IEEE floats.  */#define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT/* Check a `double' value for validity for a particular machine mode.   This is defined to avoid crashes outputting certain constants.   Since we output the number in hex, the assembler won't choke on it.  *//* #define CHECK_FLOAT_VALUE(MODE,VALUE) *//* Compute the cost of computing a constant rtl expression RTX   whose rtx-code is CODE.  The body of this macro is a portion   of a switch statement.  If the code is computed here,   return it with a return statement.  Otherwise, break from the switch.  *//* On a Clipper, constants from 0..15 are cheap because they can use the   'quick' mode. */#define CONST_COSTS(RTX,CODE,OUTER_CODE) \  case CONST_INT:						\    if (0 <= INTVAL (RTX) && INTVAL(RTX) <= 15 ) return 0;	\      return 1;							\  case CONST:							\  case LABEL_REF:						\  case SYMBOL_REF:						\    return 3;							\  case CONST_DOUBLE:						\    return 5;/* Provide the costs of a rtl expression.  This is in the body of a   switch on CODE.  */#define RTX_COSTS(X,CODE,OUTER_CODE)			\  case MULT:						\    return COSTS_N_INSNS (4);				\  case DIV:						\  case UDIV:						\  case MOD:						\  case UMOD:						\    return COSTS_N_INSNS (40);				\  case ASHIFT:						\  case LSHIFTRT:					\  case ASHIFTRT:					\    return COSTS_N_INSNS (2);				\ case SIGN_EXTEND:					\    return (GET_CODE (XEXP (X,0)) == REG ? COSTS_N_INSNS (3) : 4);/* Specify the cost of a branch insn; roughly the number of extra insns that   should be added to avoid a branch *//* #define BRANCH_COST 0 *//* Tell final.c how to eliminate redundant test instructions.  *//* Here we define machine-dependent flags and fields in cc_status   (see `conditions.h').  No extra ones are needed for the clipper.  *//* Store in cc_status the expressions   that the condition codes will describe   after execution of an instruction whose pattern is EXP.   Do not alter them if the instruction would not alter the cc's.  */#define NOTICE_UPDATE_CC(EXP, INSN) \{									      \  enum attr_cc cc = get_attr_cc (INSN);					      \  rtx dest = SET_DEST (EXP);						      \  switch (cc)								      \    {									      \    case CC_CHANGE0:							      \      if (GET_CODE (EXP) == PARALLEL) abort();				      \      if (cc_status.value1 && rtx_equal_p (dest, cc_status.value1) ||	      \	  cc_status.value2 && rtx_equal_p (dest, cc_status.value2))	      \	CC_STATUS_INIT;							      \      break;								      \									      \    case CC_SET1:							      \      if (GET_CODE (EXP) == PARALLEL) abort();				      \      cc_status.flags = 0;						      \      cc_status.value1 = dest;						      \      cc_status.value2 = 0;						      \      break;								      \									      \    case CC_SET2:							      \      if (GET_CODE (EXP) == PARALLEL) abort();				      \      cc_status.flags = 0;						      \      cc_status.value1 = dest;						      \      cc_status.value2 = SET_SRC (EXP);					      \      break;								      \									      \    case CC_UNCHANGED:							      \      break;								      \									      \    case CC_CLOBBER:							      \      CC_STATUS_INIT;							      \      break;								      \									      \    default:								      \      abort ();								      \    }									      \}/* Control the assembler format that we output.  *//* Output at beginning of assembler file.  */#define ASM_FILE_START(FILE) fprintf (FILE, "#NO_APP\n");/* Output to assembler file text saying following lines   may contain character constants, extra white space, comments, etc.  */#define ASM_APP_ON "#APP\n"/* Output to assembler file text saying following lines   no longer contain unusual constructs.  */#define ASM_APP_OFF "#NO_APP\n"/* Output before read-only data.  */#define TEXT_SECTION_ASM_OP ".text"/* Output before writable data.  */#define DATA_SECTION_ASM_OP ".data"/* How to refer to registers in assembler output.   This sequence is indexed by compiler's hard-register-number (see above).  */#define REGISTER_NAMES \{"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", \ "r9", "r10", "r11", "r12", "r13", "fp", "sp", \ "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", \ "f9", "f10", "f11", "f12", "f13", "f14", "f15" }/* How to renumber registers for dbx and gdb.   Clipper needs no change in the numeration.  */#define DBX_REGISTER_NUMBER(REGNO) (REGNO)/* This is how to output the definition of a user-level label named NAME,   such as the label on a static function or variable NAME.  */#define ASM_OUTPUT_LABEL(FILE,NAME)	\  do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)/* This is how to output a command to make the user-level label named NAME   defined for reference from other files.  */#define ASM_GLOBALIZE_LABEL(FILE,NAME)	\  do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0)/* This is how to output an assembler line defining an `int' constant.  */#define ASM_OUTPUT_INT(FILE,VALUE)  \( fprintf (FILE, "\t.long "),			\  output_addr_const (FILE, (VALUE)),		\  fprintf (FILE, "\n"))/* Likewise for `char' and `short' constants.  */#define ASM_OUTPUT_SHORT(FILE,VALUE)  \( fprintf (FILE, "\t.word "),			\  output_addr_const (FILE, (VALUE)),		\  fprintf (FILE, "\n"))#define ASM_OUTPUT_CHAR(FILE,VALUE)  \( fprintf (FILE, "\t.byte "),			\  output_addr_const (FILE, (VALUE)),		\  fprintf (FILE, "\n"))/* This is how to output an assembler line for a numeric constant byte.  */#define ASM_OUTPUT_BYTE(FILE,VALUE)  \  fprintf (FILE, "\t.byte 0x%x\n", (VALUE))/* This is how to output an insn to push a register on the stack.   It need not be very fast code.  */#define ASM_OUTPUT_REG_PUSH(FILE,REGNO)  \  fprintf (FILE, "\tsubq   $8,sp\n\t%s  %s,(sp)\n",	\	   (REGNO) < 16 ? "storw" : "stord", reg_names[REGNO])/* This is how to output an insn to pop a register from the stack.   It need not be very fast code.  */#define ASM_OUTPUT_REG_POP(FILE,REGNO)  \  fprintf (FILE, "\t%s  (sp),%s\n\t\addq  $8,sp\n",	\	   (REGNO) < 16 ? "loadw" : "loadd", reg_names[REGNO])/* This is how to output an element of a case-vector that is absolute */#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE)  \  fprintf (FILE, "\t.long .L%d\n", VALUE)/* This is how to output an element of a case-vector that is relative.  */#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL)  \  fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL)/* This is how to output an assembler line   that says to advance the location counter by SIZE bytes.  */#define ASM_OUTPUT_SKIP(FILE,SIZE)  \  fprintf (FILE, "\t.space %u\n", (SIZE))/* This says how to output an assembler line   to define a local common symbol.  *//* ??? The use of .bss here seems odd.  */#define ASM_OUTPUT_ALIGNED_LOCAL(FILE,NAME,SIZE,ALIGN)	\( data_section (),					\  fputs ("\t.bss\t", (FILE)),				\  assemble_name ((FILE), (NAME)),			\  fprintf ((FILE), ",%u,%u\n", (SIZE), (ALIGN)/BITS_PER_UNIT))/* Store in OUTPUT a string (made with alloca) containing   an assembler-name for a local static variable named NAME.   LABELNO is an integer which is different for each call.  */#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO)	\( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 10),	\  sprintf ((OUTPUT), "%s.%d", (NAME), (LABELNO)))/* Define the parentheses used to group arithmetic operations   in assembler code.  */#define ASM_OPEN_PAREN "("#define ASM_CLOSE_PAREN ")"/* Define results of standard character escape sequences.  */#define TARGET_BELL 007#define TARGET_BS 010#define TARGET_TAB 011#define TARGET_NEWLINE 012#define TARGET_VT 013#define TARGET_FF 014#define TARGET_CR 015/* Print an instruction operand X on file FILE.   CODE is the code from the %-spec that requested printing this operand;   if `%z3' was used to print operand 3, then CODE is 'z'.Clipper operand formatting codes: letter	   print   C	reverse branch condition*/#define PRINT_OPERAND_PUNCT_VALID_P(CODE)				\  ((CODE) == 'C')#define PRINT_OPERAND(FILE, X, CODE)  \{ extern char *rev_cond_name ();					\  if (CODE == 'C')							\    fputs (rev_cond_name (X), FILE);					\  else if (GET_CODE (X) == REG)						\    fprintf (FILE, "%s", reg_names[REGNO (X)]);				\  else if (GET_CODE (X) == MEM)						\    output_address (XEXP (X, 0));					\  else { putc ('$', FILE); output_addr_const (FILE, X); }}/* Print a memory operand whose address is X, on file FILE.   This uses a function in output-clipper.c.  */#define PRINT_OPERAND_ADDRESS(FILE, ADDR)  \ print_operand_address (FILE, ADDR)/* Define the codes that are matched by predicates in clipper.c */#define PREDICATE_CODES \  {"int_reg_operand", {SUBREG, REG}},	\  {"fp_reg_operand", {SUBREG, REG}},

⌨️ 快捷键说明

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