Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/opcodes/m32r-opc.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    33THIS FILE IS MACHINE GENERATED WITH CGEN.
    44
    5 Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
     5Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    66
    77This file is part of the GNU Binutils and/or GDB, the GNU debugger.
     
    4141/* Instruction formats.  */
    4242
    43 #define F(f) & m32r_cgen_ifld_table[CONCAT2 (M32R_,f)]
    44 
     43#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     44#define F(f) & m32r_cgen_ifld_table[M32R_##f]
     45#else
     46#define F(f) & m32r_cgen_ifld_table[M32R_/**/f]
     47#endif
    4548static const CGEN_IFMT ifmt_empty = {
    4649  0, 0, 0x0, { { 0 } }
     
    173176#undef F
    174177
    175 #define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
     178#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     179#define A(a) (1 << CGEN_INSN_##a)
     180#else
     181#define A(a) (1 << CGEN_INSN_/**/a)
     182#endif
     183#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     184#define OPERAND(op) M32R_OPERAND_##op
     185#else
     186#define OPERAND(op) M32R_OPERAND_/**/op
     187#endif
    176188#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
    177 #define OPERAND(op) CONCAT2 (M32R_OPERAND_,op)
    178189#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
    179190
     
    9931004
    9941005#undef A
     1006#undef OPERAND
    9951007#undef MNEM
    996 #undef OPERAND
    9971008#undef OP
    9981009
    9991010/* Formats for ALIAS macro-insns.  */
    10001011
    1001 #define F(f) & m32r_cgen_ifld_table[CONCAT2 (M32R_,f)]
    1002 
     1012#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     1013#define F(f) & m32r_cgen_ifld_table[M32R_##f]
     1014#else
     1015#define F(f) & m32r_cgen_ifld_table[M32R_/**/f]
     1016#endif
    10031017static const CGEN_IFMT ifmt_bc8r = {
    10041018  16, 16, 0xff00, { { F (F_OP1) }, { F (F_R1) }, { F (F_DISP8) }, { 0 } }
     
    11491163/* Each non-simple macro entry points to an array of expansion possibilities.  */
    11501164
    1151 #define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
     1165#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     1166#define A(a) (1 << CGEN_INSN_##a)
     1167#else
     1168#define A(a) (1 << CGEN_INSN_/**/a)
     1169#endif
     1170#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     1171#define OPERAND(op) M32R_OPERAND_##op
     1172#else
     1173#define OPERAND(op) M32R_OPERAND_/**/op
     1174#endif
    11521175#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
    1153 #define OPERAND(op) CONCAT2 (M32R_OPERAND_,op)
    11541176#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
    11551177
     
    15631585
    15641586#undef A
     1587#undef OPERAND
    15651588#undef MNEM
    1566 #undef OPERAND
    15671589#undef OP
    15681590
     
    15801602static int
    15811603asm_hash_insn_p (insn)
    1582      const CGEN_INSN *insn;
     1604     const CGEN_INSN *insn ATTRIBUTE_UNUSED;
    15831605{
    15841606  return CGEN_ASM_HASH_P (insn);
     
    16301652static unsigned int
    16311653dis_hash_insn (buf, value)
    1632      const char * buf;
    1633      CGEN_INSN_INT value;
     1654     const char * buf ATTRIBUTE_UNUSED;
     1655     CGEN_INSN_INT value ATTRIBUTE_UNUSED;
    16341656{
    16351657  return CGEN_DIS_HASH (buf, value);
    16361658}
     1659
     1660static void set_fields_bitsize PARAMS ((CGEN_FIELDS *, int));
    16371661
    16381662/* Set the recorded length of the insn in the CGEN_FIELDS struct.  */
     
    16641688      insns[i].base = &ib[i];
    16651689      insns[i].opcode = &oc[i];
     1690      m32r_cgen_build_insn_regex (& insns[i]);
    16661691    }
    16671692  cd->macro_insn_table.init_entries = insns;
     
    16721697  insns = (CGEN_INSN *) cd->insn_table.init_entries;
    16731698  for (i = 0; i < MAX_INSNS; ++i)
    1674     insns[i].opcode = &oc[i];
     1699    {
     1700      insns[i].opcode = &oc[i];
     1701      m32r_cgen_build_insn_regex (& insns[i]);
     1702    }
    16751703
    16761704  cd->sizeof_fields = sizeof (CGEN_FIELDS);
Note: See TracChangeset for help on using the changeset viewer.