📄 we32k.h
字号:
#define NOTICE_UPDATE_CC(EXP, INSN) \{ \ { CC_STATUS_INIT; } \}/* Control the assembler format that we output. *//* Use crt1.o as a startup file and crtn.o as a closing file. */#define STARTFILE_SPEC "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"#define ENDFILE_SPEC "crtn.o%s"/* The .file command should always begin the output. */#define ASM_FILE_START(FILE) output_file_directive ((FILE), main_input_filename)/* 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 code. */#define TEXT_SECTION_ASM_OP ".text"/* Output before writable data. */#define DATA_SECTION_ASM_OP ".data"/* Read-only data goes in the data section because AT&T's assembler doesn't guarantee the proper alignment of data in the text section even if an align statement is used. */#define READONLY_DATA_SECTION() data_section()/* 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", "fp", "ap", "psw", "sp", "pcbp", "isp", "pc" }/* How to renumber registers for dbx and gdb. */#define DBX_REGISTER_NUMBER(REGNO) (REGNO)/* Output SDB debugging info in response to the -g option. */#define SDB_DEBUGGING_INFO/* 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)/* The prefix to add to user-visible assembler symbols. */#define USER_LABEL_PREFIX ""/* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ fprintf (FILE, ".%s%d:\n", PREFIX, NUM)/* This is how to store into the string LABEL the symbol_ref name of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. This is suitable for output with `assemble_name'. */#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ sprintf (LABEL, ".%s%d", PREFIX, NUM)/* This is how to output an internal numbered label which labels a jump table. */#define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLE) \ do { \ ASM_OUTPUT_ALIGN (FILE, 2); \ ASM_OUTPUT_INTERNAL_LABEL (FILE, PREFIX, NUM); \ } while (0)/* Assembler pseudo to introduce byte constants. */#define ASM_BYTE_OP "\t.byte"/* This is how to output an assembler line defining a `double' constant. *//* This is how to output an assembler line defining a `float' constant. *//* AT&T's assembler can't handle floating constants written as floating. However, when cross-compiling, always use that in case format differs. */#ifdef CROSS_COMPILER#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \ fprintf (FILE, "\t.double 0r%.20g\n", (VALUE))#define ASM_OUTPUT_FLOAT(FILE,VALUE) \ fprintf (FILE, "\t.float 0r%.10g\n", (VALUE))#else#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \do { union { double d; long l[2];} tem; \ tem.d = (VALUE); \ fprintf (FILE, "\t.word 0x%x, 0x%x\n", tem.l[0], tem.l[1]);\ } while (0)#define ASM_OUTPUT_FLOAT(FILE,VALUE) \do { union { float f; long l;} tem; \ tem.f = (VALUE); \ fprintf (FILE, "\t.word 0x%x\n", tem.l); \ } while (0)#endif /* not CROSS_COMPILER *//* This is how to output an assembler line defining an `int' constant. */#define ASM_OUTPUT_INT(FILE,VALUE) \( fprintf (FILE, "\t.word "), \ output_addr_const (FILE, (VALUE)), \ fprintf (FILE, "\n"))/* Likewise for `char' and `short' constants. */#define ASM_OUTPUT_SHORT(FILE,VALUE) \( fprintf (FILE, "\t.half "), \ 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))#define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \do { \ unsigned char *s; \ int i; \ for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ { \ if ((i % 8) == 0) \ fprintf ((FILE),"%s\t.byte\t",(i?"\n":"")); \ fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \ } \ fputs ("\n", (FILE)); \} while (0)/* 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, "\tpushw %s\n", 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, "\tPOPW %s\n", 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.word .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 to a multiple of 2**LOG bytes. */#define ASM_OUTPUT_ALIGN(FILE,LOG) \ if ((LOG) != 0) \ fprintf (FILE, "\t.align %d\n", 1 << (LOG))/* This is how to output an assembler line that says to advance the location counter by SIZE bytes. *//* The `space' pseudo in the text segment outputs nop insns rather than 0s, so we must output 0s explicitly in the text segment. */#define ASM_OUTPUT_SKIP(FILE,SIZE) \ if (in_text_section ()) \ { \ int i; \ for (i = 0; i < (SIZE) - 20; i += 20) \ fprintf (FILE, "\t.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\n"); \ if (i < (SIZE)) \ { \ fprintf (FILE, "\t.byte 0"); \ i++; \ for (; i < (SIZE); i++) \ fprintf (FILE, ",0"); \ fprintf (FILE, "\n"); \ } \ } \ else \ fprintf ((FILE), "\t.set .,.+%u\n", (SIZE))/* This says how to output an assembler line to define a global common symbol. */#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \ do { \ data_section(); \ fputs ("\t.comm ", (FILE)); \ assemble_name ((FILE), (NAME)); \ fprintf ((FILE), ",%u\n", (SIZE)); \ } while (0)/* This says how to output an assembler line to define a local common symbol. */#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \ do { \ data_section(); \ ASM_OUTPUT_ALIGN ((FILE), 2); \ ASM_OUTPUT_LABEL ((FILE), (NAME)); \ fprintf ((FILE), "\t.zero %u\n", (SIZE)); \ } while (0)/* 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)))/* Output #ident as a .ident. */#define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME)/* 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 operand X (an rtx) in assembler syntax to file FILE. CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified. For `%' followed by punctuation, CODE is the punctuation and X is null. */#define PRINT_OPERAND_PUNCT_VALID_P(CODE) 0#define PRINT_OPERAND(FILE, X, CODE) \{ int i; \ if (GET_CODE (X) == REG) \ fprintf (FILE, "%%%s", reg_names[REGNO (X)]); \ else if (GET_CODE (X) == MEM) \ output_address (XEXP (X, 0)); \ else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) == SFmode) \ { \ union { double d; long l[2]; } dtem; \ union { float f; long l; } ftem; \ \ dtem.l[0] = CONST_DOUBLE_LOW (X); \ dtem.l[1] = CONST_DOUBLE_HIGH (X); \ ftem.f = dtem.d; \ fprintf(FILE, "&0x%lx", ftem.l); \ } \ else { putc ('&', FILE); output_addr_const (FILE, X); }}#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \{ register rtx Addr = ADDR; \ rtx offset; \ rtx reg; \ if (GET_CODE (Addr) == MEM) { \ putc ('*', FILE); \ Addr = XEXP (Addr, 0); \ if (GET_CODE (Addr) == REG) \ putc ('0', FILE); \ } \ switch (GET_CODE (Addr)) \ { \ case REG: \ fprintf (FILE, "(%%%s)", reg_names[REGNO (Addr)]); \ break; \ \ case PLUS: \ offset = NULL; \ if (CONSTANT_ADDRESS_P (XEXP (Addr, 0))) \ { \ offset = XEXP (Addr, 0); \ Addr = XEXP (Addr, 1); \ } \ else if (CONSTANT_ADDRESS_P (XEXP (Addr, 1))) \ { \ offset = XEXP (Addr, 1); \ Addr = XEXP (Addr, 0); \ } \ else \ abort(); \ if (REG_P (Addr)) \ reg = Addr; \ else \ abort(); \ output_addr_const(FILE, offset); \ fprintf(FILE, "(%%%s)", reg_names[REGNO(reg)]); \ break; \ \ default: \ if ( !CONSTANT_ADDRESS_P(Addr)) \ abort(); \ output_addr_const (FILE, Addr); \ }}/*Local variables:version-control: tEnd:*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -