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

📄 m68k.h

📁 linux下的gcc编译器
💻 H
📖 第 1 页 / 共 5 页
字号:
   boundaries, but cpus with 32 bit busses get better performance   aligned on 32 bit boundaries.  Coldfires without a misalignment   module require 32 bit alignment.  */#define BIGGEST_ALIGNMENT (TARGET_ALIGN_INT ? 32 : 16)/* Set this nonzero if move instructions will actually fail to work   when given unaligned data.  */#define STRICT_ALIGNMENT (TARGET_STRICT_ALIGNMENT)/* Maximum power of 2 that code can be aligned to.  */#define MAX_CODE_ALIGN	2			/* 4 byte alignment *//* Align loop starts for optimal branching.  */#define LOOP_ALIGN(LABEL) (m68k_align_loops)/* This is how to align an instruction for optimal branching.  */#define LABEL_ALIGN_AFTER_BARRIER(LABEL) (m68k_align_jumps)/* Define number of bits in most basic integer type.   (If undefined, default is BITS_PER_WORD).  */#define INT_TYPE_SIZE (TARGET_SHORT ? 16 : 32)/* Define these to avoid dependence on meaning of `int'.  */ #define WCHAR_TYPE "long int"#define WCHAR_TYPE_SIZE 32/* Standard register usage.  *//* Number of actual hardware registers.   The hardware registers are assigned numbers for the compiler   from 0 to just below FIRST_PSEUDO_REGISTER.   All registers that the compiler knows about must be given numbers,   even those that are not normally considered general registers.   For the 68000, we give the data registers numbers 0-7,   the address registers numbers 010-017,   and the 68881 floating point registers numbers 020-027.  */#ifndef SUPPORT_SUN_FPA#define FIRST_PSEUDO_REGISTER 24#else#define FIRST_PSEUDO_REGISTER 56#endif/* This defines the register which is used to hold the offset table for PIC.  */#define PIC_OFFSET_TABLE_REGNUM (flag_pic ? 13 : INVALID_REGNUM)#ifndef SUPPORT_SUN_FPA/* 1 for registers that have pervasive standard uses   and are not available for the register allocator.   On the 68000, only the stack pointer is such.  */#define FIXED_REGISTERS        \ {/* Data registers.  */       \  0, 0, 0, 0, 0, 0, 0, 0,      \                               \  /* Address registers.  */    \  0, 0, 0, 0, 0, 0, 0, 1,      \                               \  /* Floating point registers  \     (if available).  */       \  0, 0, 0, 0, 0, 0, 0, 0 }/* 1 for registers not available across function calls.   These must include the FIXED_REGISTERS and also any   registers that can be used without being saved.   The latter must include the registers where values are returned   and the register where structure-value addresses are passed.   Aside from that, you can include as many other registers as you like.  */#define CALL_USED_REGISTERS \ {1, 1, 0, 0, 0, 0, 0, 0,   \  1, 1, 0, 0, 0, 0, 0, 1,   \  1, 1, 0, 0, 0, 0, 0, 0 }#else /* SUPPORT_SUN_FPA *//* 1 for registers that have pervasive standard uses   and are not available for the register allocator.   On the 68000, only the stack pointer is such.  *//* fpa0 is also reserved so that it can be used to move data back and   forth between high fpa regs and everything else.  */#define FIXED_REGISTERS        \ {/* Data registers.  */       \  0, 0, 0, 0, 0, 0, 0, 0,      \                               \  /* Address registers.  */    \  0, 0, 0, 0, 0, 0, 0, 1,      \                               \  /* Floating point registers  \     (if available).  */       \  0, 0, 0, 0, 0, 0, 0, 0,      \                               \  /* Sun3 FPA registers.  */   \  1, 0, 0, 0, 0, 0, 0, 0,      \  0, 0, 0, 0, 0, 0, 0, 0,      \  0, 0, 0, 0, 0, 0, 0, 0,      \  0, 0, 0, 0, 0, 0, 0, 0 }/* 1 for registers not available across function calls.   These must include the FIXED_REGISTERS and also any   registers that can be used without being saved.   The latter must include the registers where values are returned   and the register where structure-value addresses are passed.   Aside from that, you can include as many other registers as you like.  */#define CALL_USED_REGISTERS \ {1, 1, 0, 0, 0, 0, 0, 0, \  1, 1, 0, 0, 0, 0, 0, 1, \  1, 1, 0, 0, 0, 0, 0, 0, \  /* FPA registers.  */   \  1, 1, 1, 1, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0, \  0, 0, 0, 0, 0, 0, 0, 0  }#endif /* defined SUPPORT_SUN_FPA *//* Make sure everything's fine if we *don't* have a given processor.   This assumes that putting a register in fixed_regs will keep the   compiler's mitts completely off it.  We don't bother to zero it out   of register classes.  */#ifdef SUPPORT_SUN_FPA#define CONDITIONAL_REGISTER_USAGE				\{ 								\  int i; 							\  HARD_REG_SET x; 						\  if (! TARGET_FPA)						\    { 								\      COPY_HARD_REG_SET (x, reg_class_contents[(int)FPA_REGS]);	\      for (i = 0; i < FIRST_PSEUDO_REGISTER; i++ )		\       if (TEST_HARD_REG_BIT (x, i)) 				\	fixed_regs[i] = call_used_regs[i] = 1; 			\    } 								\  if (! TARGET_68881)						\    { 								\      COPY_HARD_REG_SET (x, reg_class_contents[(int)FP_REGS]);	\      for (i = 0; i < FIRST_PSEUDO_REGISTER; i++ )		\       if (TEST_HARD_REG_BIT (x, i)) 				\	fixed_regs[i] = call_used_regs[i] = 1; 			\    } 								\  if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)		\    fixed_regs[PIC_OFFSET_TABLE_REGNUM]				\      = call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1;		\}#else#define CONDITIONAL_REGISTER_USAGE				\{ 								\  int i; 							\  HARD_REG_SET x; 						\  if (! TARGET_68881)						\    { 								\      COPY_HARD_REG_SET (x, reg_class_contents[(int)FP_REGS]);	\      for (i = 0; i < FIRST_PSEUDO_REGISTER; i++ )		\       if (TEST_HARD_REG_BIT (x, i)) 				\	fixed_regs[i] = call_used_regs[i] = 1; 			\    } 								\  if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)		\    fixed_regs[PIC_OFFSET_TABLE_REGNUM]				\      = call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1;		\}#endif /* defined SUPPORT_SUN_FPA *//* Return number of consecutive hard regs needed starting at reg REGNO   to hold something of mode MODE.   This is ordinarily the length in words of a value of mode MODE   but can be less for certain modes in special long registers.   On the 68000, ordinary registers hold 32 bits worth;   for the 68881 registers, a single register is always enough for   anything that can be stored in them at all.  */#define HARD_REGNO_NREGS(REGNO, MODE)   \  ((REGNO) >= 16 ? GET_MODE_NUNITS (MODE)	\   : ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD))#ifndef SUPPORT_SUN_FPA/* Value is 1 if hard register REGNO can hold a value of machine-mode MODE.   On the 68000, the cpu registers can hold any mode but the 68881 registers   can hold only SFmode or DFmode.  */#define HARD_REGNO_MODE_OK(REGNO, MODE) \  (((REGNO) < 16					\    && !((REGNO) < 8 && (REGNO) + GET_MODE_SIZE (MODE) / 4 > 8))	\   || ((REGNO) >= 16 && (REGNO) < 24				        \       && (GET_MODE_CLASS (MODE) == MODE_FLOAT		\	   || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT)		\       && GET_MODE_UNIT_SIZE (MODE) <= 12))#else /* defined SUPPORT_SUN_FPA *//* Value is 1 if hard register REGNO can hold a value of machine-mode MODE.   On the 68000, the cpu registers can hold any mode but the 68881 registers   can hold only SFmode or DFmode.  However, the Sun FPA register can   (apparently) hold whatever you feel like putting in them.   If using the fpa, don't put a double in d7/a0.  *//* ??? This is confused.  The check to prohibit d7/a0 overlaps should always   be enabled regardless of whether TARGET_FPA is specified.  It isn't clear   what the other d/a register checks are for.  Every check using REGNO   actually needs to use a range, e.g. 24>=X<56 not <56.  There is probably   no one using this code anymore.     This code used to be used to suppress register usage for the 68881 by   saying that the 68881 registers couldn't hold values of any mode if there   was no 68881.  This was wrong, because reload (etc.) will still try   to save and restore call-saved registers during, for instance, non-local   goto.  */#define HARD_REGNO_MODE_OK(REGNO, MODE) \(((REGNO) < 16								\  && !(TARGET_FPA							\       && GET_MODE_CLASS ((MODE)) != MODE_INT				\       && GET_MODE_UNIT_SIZE ((MODE)) > 4				\       && (REGNO) < 8 && (REGNO) + GET_MODE_SIZE ((MODE)) / 4 > 8	\       && (REGNO) % (GET_MODE_UNIT_SIZE ((MODE)) / 4) != 0))		\ || ((REGNO) >= 16 && (REGNO) < 24					\     ? ((GET_MODE_CLASS (MODE) == MODE_FLOAT				\	 || GET_MODE_CLASS (MODE) == MODE_COMPLEX_FLOAT)		\	&& GET_MODE_UNIT_SIZE (MODE) <= 12)				\     : ((REGNO) < 56 ? TARGET_FPA && GET_MODE_UNIT_SIZE (MODE) <= 8 : 0)))#endif /* defined SUPPORT_SUN_FPA *//* Value is 1 if it is a good idea to tie two pseudo registers   when one has mode MODE1 and one has mode MODE2.   If HARD_REGNO_MODE_OK could produce different values for MODE1 and MODE2,   for any hard reg, then this must be 0 for correct output.  */#define MODES_TIEABLE_P(MODE1, MODE2)			\  (! TARGET_68881					\   || ((GET_MODE_CLASS (MODE1) == MODE_FLOAT		\	|| GET_MODE_CLASS (MODE1) == MODE_COMPLEX_FLOAT)	\       == (GET_MODE_CLASS (MODE2) == MODE_FLOAT		\	   || GET_MODE_CLASS (MODE2) == MODE_COMPLEX_FLOAT)))/* Specify the registers used for certain standard purposes.   The values of these macros are register numbers.  *//* m68000 pc isn't overloaded on a register.  *//* #define PC_REGNUM  *//* Register to use for pushing function arguments.  */#define STACK_POINTER_REGNUM 15/* Base register for access to local variables of the function.  */#define FRAME_POINTER_REGNUM 14/* Value should be nonzero if functions must have frame pointers.   Zero means the frame pointer need not be set up (and parms   may be accessed via the stack pointer) in functions that seem suitable.   This is computed in `reload', in reload1.c.  */#define FRAME_POINTER_REQUIRED 0/* Base register for access to arguments of the function.  */#define ARG_POINTER_REGNUM 14/* Register in which static-chain is passed to a function.  */#define STATIC_CHAIN_REGNUM 8/* Register in which address to store a structure value   is passed to a function.  */#define STRUCT_VALUE_REGNUM 9/* Define the classes of registers for register constraints in the   machine description.  Also define ranges of constants.   One of the classes must always be named ALL_REGS and include all hard regs.   If there is more than one class, another class must be named NO_REGS   and contain no registers.   The name GENERAL_REGS must be the name of a class (or an alias for   another name such as ALL_REGS).  This is the class of registers   that is allowed by "g" or "r" in a register constraint.   Also, registers outside this class are allocated only when   instructions express preferences for them.   The classes must be numbered in nondecreasing order; that is,   a larger-numbered class must never be contained completely   in a smaller-numbered class.   For any two classes, it is very desirable that there be another   class that represents their union.  *//* The 68000 has three kinds of registers, so eight classes would be   a complete set.  One of them is not needed.  */#ifndef SUPPORT_SUN_FPAenum reg_class {  NO_REGS, DATA_REGS,  ADDR_REGS, FP_REGS,  GENERAL_REGS, DATA_OR_FP_REGS,  ADDR_OR_FP_REGS, ALL_REGS,  LIM_REG_CLASSES };#define N_REG_CLASSES (int) LIM_REG_CLASSES/* Give names of register classes as strings for dump file.  */#define REG_CLASS_NAMES \ { "NO_REGS", "DATA_REGS",              \   "ADDR_REGS", "FP_REGS",              \   "GENERAL_REGS", "DATA_OR_FP_REGS",   \   "ADDR_OR_FP_REGS", "ALL_REGS" }/* Define which registers fit in which classes.   This is an initializer for a vector of HARD_REG_SET   of length N_REG_CLASSES.  */#define REG_CLASS_CONTENTS \{					\  {0x00000000},  /* NO_REGS */		\  {0x000000ff},  /* DATA_REGS */	\  {0x0000ff00},  /* ADDR_REGS */	\  {0x00ff0000},  /* FP_REGS */		\  {0x0000ffff},  /* GENERAL_REGS */	\  {0x00ff00ff},  /* DATA_OR_FP_REGS */	\  {0x00ffff00},  /* ADDR_OR_FP_REGS */	\  {0x00ffffff},  /* ALL_REGS */		\}/* The same information, inverted:   Return the class number of the smallest class containing   reg number REGNO.  This could be a conditional expression   or could index an array.  */#define REGNO_REG_CLASS(REGNO) (((REGNO)>>3)+1)

⌨️ 快捷键说明

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