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/fr30-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) & fr30_cgen_ifld_table[CONCAT2 (FR30_,f)]
    44 
     43#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     44#define F(f) & fr30_cgen_ifld_table[FR30_##f]
     45#else
     46#define F(f) & fr30_cgen_ifld_table[FR30_/**/f]
     47#endif
    4548static const CGEN_IFMT ifmt_empty = {
    4649  0, 0, 0x0, { { 0 } }
     
    165168#undef F
    166169
    167 #define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
     170#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     171#define A(a) (1 << CGEN_INSN_##a)
     172#else
     173#define A(a) (1 << CGEN_INSN_/**/a)
     174#endif
     175#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     176#define OPERAND(op) FR30_OPERAND_##op
     177#else
     178#define OPERAND(op) FR30_OPERAND_/**/op
     179#endif
    168180#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
    169 #define OPERAND(op) CONCAT2 (FR30_OPERAND_,op)
    170181#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
    171182
     
    11711182
    11721183#undef A
     1184#undef OPERAND
    11731185#undef MNEM
    1174 #undef OPERAND
    11751186#undef OP
    11761187
    11771188/* Formats for ALIAS macro-insns.  */
    11781189
    1179 #define F(f) & fr30_cgen_ifld_table[CONCAT2 (FR30_,f)]
    1180 
     1190#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     1191#define F(f) & fr30_cgen_ifld_table[FR30_##f]
     1192#else
     1193#define F(f) & fr30_cgen_ifld_table[FR30_/**/f]
     1194#endif
    11811195static const CGEN_IFMT ifmt_ldi8m = {
    11821196  16, 16, 0xf000, { { F (F_OP1) }, { F (F_I8) }, { F (F_RI) }, { 0 } }
     
    11951209/* Each non-simple macro entry points to an array of expansion possibilities.  */
    11961210
    1197 #define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
     1211#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     1212#define A(a) (1 << CGEN_INSN_##a)
     1213#else
     1214#define A(a) (1 << CGEN_INSN_/**/a)
     1215#endif
     1216#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
     1217#define OPERAND(op) FR30_OPERAND_##op
     1218#else
     1219#define OPERAND(op) FR30_OPERAND_/**/op
     1220#endif
    11981221#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
    1199 #define OPERAND(op) CONCAT2 (FR30_OPERAND_,op)
    12001222#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
    12011223
     
    12461268
    12471269#undef A
     1270#undef OPERAND
    12481271#undef MNEM
    1249 #undef OPERAND
    12501272#undef OP
    12511273
     
    12631285static int
    12641286asm_hash_insn_p (insn)
    1265      const CGEN_INSN *insn;
     1287     const CGEN_INSN *insn ATTRIBUTE_UNUSED;
    12661288{
    12671289  return CGEN_ASM_HASH_P (insn);
     
    13131335static unsigned int
    13141336dis_hash_insn (buf, value)
    1315      const char * buf;
    1316      CGEN_INSN_INT value;
     1337     const char * buf ATTRIBUTE_UNUSED;
     1338     CGEN_INSN_INT value ATTRIBUTE_UNUSED;
    13171339{
    13181340  return CGEN_DIS_HASH (buf, value);
    13191341}
     1342
     1343static void set_fields_bitsize PARAMS ((CGEN_FIELDS *, int));
    13201344
    13211345/* Set the recorded length of the insn in the CGEN_FIELDS struct.  */
     
    13471371      insns[i].base = &ib[i];
    13481372      insns[i].opcode = &oc[i];
     1373      fr30_cgen_build_insn_regex (& insns[i]);
    13491374    }
    13501375  cd->macro_insn_table.init_entries = insns;
     
    13551380  insns = (CGEN_INSN *) cd->insn_table.init_entries;
    13561381  for (i = 0; i < MAX_INSNS; ++i)
    1357     insns[i].opcode = &oc[i];
     1382    {
     1383      insns[i].opcode = &oc[i];
     1384      fr30_cgen_build_insn_regex (& insns[i]);
     1385    }
    13581386
    13591387  cd->sizeof_fields = sizeof (CGEN_FIELDS);
Note: See TracChangeset for help on using the changeset viewer.