Changeset 609 for branches/GNU/src/binutils/opcodes/fr30-opc.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/opcodes/fr30-opc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 3 3 THIS FILE IS MACHINE GENERATED WITH CGEN. 4 4 5 Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.5 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 6 6 7 7 This file is part of the GNU Binutils and/or GDB, the GNU debugger. … … 41 41 /* Instruction formats. */ 42 42 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 45 48 static const CGEN_IFMT ifmt_empty = { 46 49 0, 0, 0x0, { { 0 } } … … 165 168 #undef F 166 169 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 168 180 #define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */ 169 #define OPERAND(op) CONCAT2 (FR30_OPERAND_,op)170 181 #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field)) 171 182 … … 1171 1182 1172 1183 #undef A 1184 #undef OPERAND 1173 1185 #undef MNEM 1174 #undef OPERAND1175 1186 #undef OP 1176 1187 1177 1188 /* Formats for ALIAS macro-insns. */ 1178 1189 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 1181 1195 static const CGEN_IFMT ifmt_ldi8m = { 1182 1196 16, 16, 0xf000, { { F (F_OP1) }, { F (F_I8) }, { F (F_RI) }, { 0 } } … … 1195 1209 /* Each non-simple macro entry points to an array of expansion possibilities. */ 1196 1210 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 1198 1221 #define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */ 1199 #define OPERAND(op) CONCAT2 (FR30_OPERAND_,op)1200 1222 #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field)) 1201 1223 … … 1246 1268 1247 1269 #undef A 1270 #undef OPERAND 1248 1271 #undef MNEM 1249 #undef OPERAND1250 1272 #undef OP 1251 1273 … … 1263 1285 static int 1264 1286 asm_hash_insn_p (insn) 1265 const CGEN_INSN *insn ;1287 const CGEN_INSN *insn ATTRIBUTE_UNUSED; 1266 1288 { 1267 1289 return CGEN_ASM_HASH_P (insn); … … 1313 1335 static unsigned int 1314 1336 dis_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; 1317 1339 { 1318 1340 return CGEN_DIS_HASH (buf, value); 1319 1341 } 1342 1343 static void set_fields_bitsize PARAMS ((CGEN_FIELDS *, int)); 1320 1344 1321 1345 /* Set the recorded length of the insn in the CGEN_FIELDS struct. */ … … 1347 1371 insns[i].base = &ib[i]; 1348 1372 insns[i].opcode = &oc[i]; 1373 fr30_cgen_build_insn_regex (& insns[i]); 1349 1374 } 1350 1375 cd->macro_insn_table.init_entries = insns; … … 1355 1380 insns = (CGEN_INSN *) cd->insn_table.init_entries; 1356 1381 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 } 1358 1386 1359 1387 cd->sizeof_fields = sizeof (CGEN_FIELDS); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.