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

📄 stormy16.h

📁 Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* The number of the hard register that is used to return a scalar value from a   function call.  */#define RETURN_VALUE_REGNUM	FIRST_ARGUMENT_REGISTER     #define FUNCTION_VALUE(VALTYPE, FUNC) \  xstormy16_function_value (VALTYPE, FUNC)#define LIBCALL_VALUE(MODE) gen_rtx_REG (MODE, RETURN_VALUE_REGNUM)#define FUNCTION_VALUE_REGNO_P(REGNO) ((REGNO) == RETURN_VALUE_REGNUM)/* Function Entry and Exit */#define EPILOGUE_USES(REGNO) \  xstormy16_epilogue_uses (REGNO)/* Generating Code for Profiling.  *//* This declaration must be present, but it can be an abort if profiling is   not implemented.  */     #define FUNCTION_PROFILER(FILE, LABELNO) xstormy16_function_profiler ()/* If the target has particular reasons why a function cannot be inlined,   it may define the TARGET_CANNOT_INLINE_P.  This macro takes one argument,   the DECL describing the function.  The function should NULL if the function   *can* be inlined.  Otherwise it should return a pointer to a string containing   a message describing why the function could not be inlined.  The message will   displayed if the '-Winline' command line switch has been given.  If the message   contains a '%s' sequence, this will be replaced by the name of the function.  *//* #define TARGET_CANNOT_INLINE_P(FN_DECL) xstormy16_cannot_inline_p (FN_DECL) *//* Implementing the Varargs Macros.  *//* Implement the stdarg/varargs va_start macro.  STDARG_P is nonzero if this   is stdarg.h instead of varargs.h.  VALIST is the tree of the va_list   variable to initialize.  NEXTARG is the machine independent notion of the   'next' argument after the variable arguments.  If not defined, a standard   implementation will be defined that works for arguments passed on the stack.  */#define EXPAND_BUILTIN_VA_START(VALIST, NEXTARG) \  xstormy16_expand_builtin_va_start (VALIST, NEXTARG)/* Trampolines for Nested Functions.  */#define TRAMPOLINE_SIZE 8#define TRAMPOLINE_ALIGNMENT 16#define INITIALIZE_TRAMPOLINE(ADDR, FNADDR, STATIC_CHAIN) \  xstormy16_initialize_trampoline (ADDR, FNADDR, STATIC_CHAIN)/* Define this macro to override the type used by the library routines to pick   up arguments of type `float'.  (By default, they use a union of `float' and   `int'.)   The obvious choice would be `float'--but that won't work with traditional C   compilers that expect all arguments declared as `float' to arrive as   `double'.  To avoid this conversion, the library routines ask for the value   as some other type and then treat it as a `float'.  *//* #define FLOAT_ARG_TYPE *//* Define this macro to override the way library routines redesignate a `float'   argument as a `float' instead of the type it was passed as.  The default is   an expression which takes the `float' field of the union.  *//* #define FLOATIFY(PASSED_VALUE) *//* Define this macro to override the type used by the library routines to   return values that ought to have type `float'.  (By default, they use   `int'.)   The obvious choice would be `float'--but that won't work with traditional C   compilers gratuitously convert values declared as `float' into `double'.  *//* #define FLOAT_VALUE_TYPE *//* Define this macro to override the way the value of a `float'-returning   library routine should be packaged in order to return it.  These functions   are actually declared to return type `FLOAT_VALUE_TYPE' (normally `int').   These values can't be returned as type `float' because traditional C   compilers would gratuitously convert the value to a `double'.   A local variable named `intify' is always available when the macro `INTIFY'   is used.  It is a union of a `float' field named `f' and a field named `i'   whose type is `FLOAT_VALUE_TYPE' or `int'.   If you don't define this macro, the default definition works by copying the   value through that union.  *//* #define INTIFY(FLOAT_VALUE) *//* Define this macro as the name of the data type corresponding to `SImode' in   the system's own C compiler.   You need not define this macro if that type is `long int', as it usually is.  *//* #define nongcc_SI_type *//* Define this macro as the name of the data type corresponding to the   word_mode in the system's own C compiler.   You need not define this macro if that type is `long int', as it usually is.  *//* #define nongcc_word_type *//* Define these macros to supply explicit C statements to carry out various   arithmetic operations on types `float' and `double' in the library routines   in `libgcc1.c'.  See that file for a full list of these macros and their   arguments.   On most machines, you don't need to define any of these macros, because the   C compiler that comes with the system takes care of doing them.  *//* #define perform_...  *//* Addressing Modes */#define HAVE_POST_INCREMENT 1#define HAVE_PRE_DECREMENT 1#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)#define MAX_REGS_PER_ADDRESS 1#ifdef REG_OK_STRICT#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, LABEL)	\do {							\  if (xstormy16_legitimate_address_p (MODE, X, 1))	\    goto LABEL;						\} while (0)#else#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, LABEL)	\do {							\  if (xstormy16_legitimate_address_p (MODE, X, 0))	\    goto LABEL;						\} while (0)#endif#ifdef REG_OK_STRICT#define REG_OK_FOR_BASE_P(X) 						   \  (REGNO_OK_FOR_BASE_P (REGNO (X)) && (REGNO (X) < FIRST_PSEUDO_REGISTER))#else#define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P (REGNO (X))#endif#define REG_OK_FOR_INDEX_P(X) REG_OK_FOR_BASE_P (X)/* On this chip, this is true if the address is valid with an offset   of 0 but not of 6, because in that case it cannot be used as an   address for DImode or DFmode, or if the address is a post-increment   or pre-decrement address.*/#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR,LABEL)			\  if (xstormy16_mode_dependent_address_p (ADDR))				\    goto LABEL#define LEGITIMATE_CONSTANT_P(X) 1/* Describing Relative Costs of Operations */#define REGISTER_MOVE_COST(MODE, FROM, TO) 2#define MEMORY_MOVE_COST(M,C,I) (5 + memory_move_secondary_cost (M, C, I))#define BRANCH_COST 5#define SLOW_BYTE_ACCESS 0#define NO_FUNCTION_CSE/* Dividing the output into sections.  */#define TEXT_SECTION_ASM_OP ".text"#define DATA_SECTION_ASM_OP ".data"#define BSS_SECTION_ASM_OP "\t.section\t.bss"/* Define the pseudo-ops used to switch to the .ctors and .dtors sections.   There are no shared libraries on this target so these sections need   not be writable.   Defined in elfos.h.  */#undef CTORS_SECTION_ASM_OP#undef DTORS_SECTION_ASM_OP#define CTORS_SECTION_ASM_OP	"\t.section\t.ctors,\"a\""#define DTORS_SECTION_ASM_OP	"\t.section\t.dtors,\"a\""#define EXTRA_SECTIONS in_bss100/* We define the function body in a separate macro so that if we ever   add another section, we can just add an entry to   EXTRA_SECTION_FUNCTIONS without making it difficult to read.  It is   not used anywhere else.  */#define XSTORMY16_SECTION_FUNCTION(name, in, string, bits) 			  \  void										  \  name ()									  \  { 										  \    if (in_section != in)							  \      { 									  \	fprintf (asm_out_file, "\t.section %s,\"aw\",@%sbits\n", string, bits);   \	in_section = in;							  \      }										  \  }#undef  EXTRA_SECTION_FUNCTIONS#define EXTRA_SECTION_FUNCTIONS		\  XSTORMY16_SECTION_FUNCTION (bss100_section, in_bss100, ".bss_below100", "no")#define JUMP_TABLES_IN_TEXT_SECTION 1/* The Overall Framework of an Assembler File.  */#define ASM_COMMENT_START ";"#define ASM_APP_ON "#APP\n"#define ASM_APP_OFF "#NO_APP\n"/* Output of Data.  */#define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == '|')#define ASM_OUTPUT_ALIGNED_DECL_COMMON(STREAM, DECL, NAME, SIZE, ALIGNMENT) \  xstormy16_asm_output_aligned_common(STREAM, DECL, NAME, SIZE, ALIGNMENT, 1)#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(STREAM, DECL, NAME, SIZE, ALIGNMENT) \  xstormy16_asm_output_aligned_common(STREAM, DECL, NAME, SIZE, ALIGNMENT, 0)/* Output and Generation of Labels.  */#define ASM_OUTPUT_SYMBOL_REF(STREAM, SYMBOL)				\  do {									\    const char *rn = XSTR (SYMBOL, 0);					\    if (rn[0] == '@' && rn[2] == '.')					\      rn += 3;								\    if (SYMBOL_REF_FUNCTION_P (SYMBOL))					\      ASM_OUTPUT_LABEL_REF ((STREAM), rn);				\    else								\      assemble_name (STREAM, rn);					\  } while (0)#define ASM_OUTPUT_LABEL_REF(STREAM, NAME)	\do  {						\  fputs ("@fptr(", STREAM);			\  assemble_name (STREAM, NAME);			\  fputc (')', STREAM);				\} while (0)#define ASM_OUTPUT_LABELREF(STREAM, NAME)	\  asm_fprintf ((STREAM), "%U%s", xstormy16_strip_name_encoding (NAME));/* Globalizing directive for a label.  */#define GLOBAL_ASM_OP "\t.globl "/* Macros Controlling Initialization Routines.  *//* When you are using special sections for   initialization and termination functions, this macro also controls how   `crtstuff.c' and `libgcc2.c' arrange to run the initialization functions.   Defined in svr4.h.  *//* #define INIT_SECTION_ASM_OP *//* Define this macro as a C statement to output on the stream STREAM the   assembler code to arrange to call the function named NAME at initialization   time.   Assume that NAME is the name of a C function generated automatically by the   compiler.  This function takes no arguments.  Use the function   `assemble_name' to output the name NAME; this performs any system-specific   syntactic transformations such as adding an underscore.   If you don't define this macro, nothing special is output to arrange to call   the function.  This is correct when the function will be called in some   other manner--for example, by means of the `collect2' program, which looks   through the symbol table to find these functions by their names.   Defined in svr4.h.  *//* #define ASM_OUTPUT_CONSTRUCTOR(STREAM, NAME) *//* This is like `ASM_OUTPUT_CONSTRUCTOR' but used for termination functions   rather than initialization functions.   Defined in svr4.h.  *//* #define ASM_OUTPUT_DESTRUCTOR(STREAM, NAME) *//* Define this macro if the system uses ELF format object files.   Defined in svr4.h.  *//* #define OBJECT_FORMAT_ELF *//* Output of Assembler Instructions.  */#define REGISTER_NAMES							\{ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10",	\  "r11", "r12", "r13", "psw", "sp", "carry", "fp", "ap" }#define ADDITIONAL_REGISTER_NAMES		\  { { "r14", 14 },				\    { "r15", 15 } }#define PRINT_OPERAND(STREAM, X, CODE) xstormy16_print_operand (STREAM, X, CODE)#define PRINT_OPERAND_ADDRESS(STREAM, X) xstormy16_print_operand_address (STREAM, X)/* USER_LABEL_PREFIX is defined in svr4.h.  */#define REGISTER_PREFIX ""#define LOCAL_LABEL_PREFIX "."#define USER_LABEL_PREFIX ""#define IMMEDIATE_PREFIX "#"#define ASM_OUTPUT_REG_PUSH(STREAM, REGNO) \  fprintf (STREAM, "\tpush %d\n", REGNO)#define ASM_OUTPUT_REG_POP(STREAM, REGNO) \  fprintf (STREAM, "\tpop %d\n", REGNO)/* Output of dispatch tables.  *//* This port does not use the ASM_OUTPUT_ADDR_VEC_ELT macro, because   this could cause label alignment to appear between the 'br' and the table,   which would be bad.  Instead, it controls the output of the table   itself.  */#define ASM_OUTPUT_ADDR_VEC(LABEL, BODY) \  xstormy16_output_addr_vec (file, LABEL, BODY)/* Alignment for ADDR_VECs is the same as for code.  */#define ADDR_VEC_ALIGN(ADDR_VEC) 1/* Assembler Commands for Exception Regions.  */#define DWARF2_UNWIND_INFO 0/* Don't use __builtin_setjmp for unwinding, since it's tricky to get   at the high 16 bits of an address.  */#define DONT_USE_BUILTIN_SETJMP#define JMP_BUF_SIZE  8/* Assembler Commands for Alignment.  */#define ASM_OUTPUT_ALIGN(STREAM, POWER) \  fprintf ((STREAM), "\t.p2align %d\n", (POWER))/* Macros Affecting all Debug Formats.  *//* Defined in svr4.h.  */#undef PREFERRED_DEBUGGING_TYPE#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG/* Macros for SDB and Dwarf Output.  *//* Define this macro if addresses in Dwarf 2 debugging info should not   be the same size as pointers on the target architecture.  The   macro's value should be the size, in bytes, to use for addresses in   the debugging info.   Some architectures use word addresses to refer to code locations,   but Dwarf 2 info always uses byte addresses.  On such machines,   Dwarf 2 addresses need to be larger than the architecture's   pointers.  */#define DWARF2_ADDR_SIZE 4/* Miscellaneous Parameters.  */#define PREDICATE_CODES					\  {"shift_operator", {ASHIFT, ASHIFTRT, LSHIFTRT }},	\  {"equality_operator", {EQ, NE }},			\  {"inequality_operator", {GE, GT, LE, LT, GEU, GTU, LEU, LTU }}, \  {"xstormy16_ineqsi_operator", {LT, GE, LTU, GEU }}, \  {"xstormy16_below100_operand", {MEM }}, \  {"xstormy16_below100_or_register", {MEM, REG }}, \  {"xstormy16_splittable_below100_or_register", {MEM, REG }}, \  {"xstormy16_onebit_clr_operand", {CONST_INT }}, \  {"xstormy16_onebit_set_operand", {CONST_INT }}, \  {"nonimmediate_nonstack_operand", {REG, MEM}},#define CASE_VECTOR_MODE SImode#define WORD_REGISTER_OPERATIONS#define LOAD_EXTEND_OP(MODE) ZERO_EXTEND#define MOVE_MAX 2#define SHIFT_COUNT_TRUNCATED 1#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1#define Pmode HImode#define FUNCTION_MODE HImode#define NO_IMPLICIT_EXTERN_C/* Defined in svr4.h.  */#define HANDLE_SYSV_PRAGMA 1/* Define this if the target system supports the function `atexit' from the   ANSI C standard.  If this is not defined, and `INIT_SECTION_ASM_OP' is not   defined, a default `exit' function will be provided to support C++.   Defined by svr4.h *//* #define HAVE_ATEXIT *//* A C statement which is executed by the Haifa scheduler after it has scheduled   an insn from the ready list.  FILE is either a null pointer, or a stdio stream   to write any debug output to.  VERBOSE is the verbose level provided by   -fsched-verbose-<n>.  INSN is the instruction that was scheduled.  MORE is the   number of instructions that can be issued in the current cycle.  This macro   is responsible for updating the value of MORE (typically by (MORE)--).  *//* #define MD_SCHED_VARIABLE_ISSUE (FILE, VERBOSE, INSN, MORE) *//* Define the information needed to generate branch and scc insns.  This is   stored from the compare operation.  Note that we can't use "rtx" here   since it hasn't been defined!  */extern struct rtx_def *xstormy16_compare_op0, *xstormy16_compare_op1;/* End of xstormy16.h */

⌨️ 快捷键说明

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