Remove case sensitivity in register names.
[deliverable/binutils-gdb.git] / gas / config / m68k-parse.h
index 128944cf5fd1b9399218f131de9daab110e68ff9..6482007504a42044f795f91a90f289f7be5bba03 100644 (file)
@@ -1,5 +1,6 @@
 /* m68k-parse.h -- header file for m68k assembler
-   Copyright (C) 1987, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
+   Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000
+   Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -38,7 +39,6 @@
 #define DATA DATA0
 #define ADDR ADDR0
 #define SP ADDR7
-#define COPNUM  COP0
 #define BAD BAD0
 #define BAC BAC0
 
@@ -71,10 +71,7 @@ enum m68k_register
   FP6,
   FP7,
 
-  /* Note that COP0==processor #1 -- COP0+7==#8, which stores as 000 */
-  /* I think. . .  */
-
-  COP0,                                /* Co-processor #1-#8 */
+  COP0,                                /* Co-processor #0-#7 */
   COP1,
   COP2,
   COP3,
@@ -87,8 +84,11 @@ enum m68k_register
   ZPC,                         /* Hack for Program space, but 0 addressing */
   SR,                          /* Status Reg */
   CCR,                         /* Condition code Reg */
+  ACC,                         /* Accumulator Reg */
+  MACSR,                       /* MAC Status Reg */
+  MASK,                                /* Modulus Reg */
 
-  /* These have to be grouped together for the movec instruction to work. */
+  /* These have to be grouped together for the movec instruction to work.  */
   USP,                         /*  User Stack Pointer */
   ISP,                         /*  Interrupt stack pointer */
   SFC,
@@ -107,7 +107,11 @@ enum m68k_register
   URP,
   BUSCR,                       /* 68060 added these */
   PCR,
-#define last_movec_reg PCR
+  ROMBAR,                      /* mcf5200 added these */
+  RAMBAR0,
+  RAMBAR1,
+  MBAR,
+#define last_movec_reg MBAR
   /* end of movec ordering constraints */
 
   FPI,
@@ -165,6 +169,44 @@ enum m68k_register
   ZADDR5,
   ZADDR6,
   ZADDR7,
+
+  /* Upper and lower half of data and address registers.  Order *must*
+     be DATAxL, ADDRxL, DATAxU, ADDRxU.  */
+  DATA0L,                      /* lower half of data registers */
+  DATA1L,
+  DATA2L,
+  DATA3L,
+  DATA4L,
+  DATA5L,
+  DATA6L,
+  DATA7L,
+
+  ADDR0L,                      /* lower half of address registers */
+  ADDR1L,
+  ADDR2L,
+  ADDR3L,
+  ADDR4L,
+  ADDR5L,
+  ADDR6L,
+  ADDR7L,
+
+  DATA0U,                      /* upper half of data registers */
+  DATA1U,
+  DATA2U,
+  DATA3U,
+  DATA4U,
+  DATA5U,
+  DATA6U,
+  DATA7U,
+
+  ADDR0U,                      /* upper half of address registers */
+  ADDR1U,
+  ADDR2U,
+  ADDR3U,
+  ADDR4U,
+  ADDR5U,
+  ADDR6U,
+  ADDR7U,
 };
 
 /* Size information.  */
@@ -198,6 +240,19 @@ struct m68k_indexreg
   int scale;
 };
 
+#ifdef OBJ_ELF
+/* The type of a PIC expression.  */
+
+enum pic_relocation
+{
+  pic_none,                    /* not pic */
+  pic_plt_pcrel,               /* @PLTPC */
+  pic_got_pcrel,               /* @GOTPC */
+  pic_plt_off,                 /* @PLT */
+  pic_got_off                  /* @GOT */
+};
+#endif
+
 /* The structure used to hold information about an expression.  */
 
 struct m68k_exp
@@ -205,24 +260,15 @@ struct m68k_exp
   /* The size to use.  */
   enum m68k_size size;
 
+#ifdef OBJ_ELF
+  /* The type of pic relocation if any.  */
+  enum pic_relocation pic_reloc;
+#endif
+
   /* The expression itself.  */
   expressionS exp;
 };
 
-/* See whether an expression is a signed eight bit value.  */
-
-#define expr8(ex)                              \
-  ((ex)->exp.X_op == O_constant                        \
-   && (ex)->exp.X_add_number >= -0x80          \
-   && (ex)->exp.X_add_number < 0x80)
-
-/* See whether an expression is a signed sixteen bit value.  */
-
-#define expr16(ex)                             \
-  ((ex)->exp.X_op == O_constant                        \
-   && (ex)->exp.X_add_number >= -0x8000                \
-   && (ex)->exp.X_add_number < 0x8000)
-
 /* The operand modes.  */
 
 enum m68k_operand_type
This page took 0.02538 seconds and 4 git commands to generate.