--statistics print various measured statistics from execution\n\
--version print assembler version number and exit\n\
-W suppress warnings\n\
--t,--itbl INSTTBL extend instruction set to include instrictions\n\
+-t,--itbl INSTTBL extend instruction set to include instructions\n\
matching the specifications defined in file INSTTBL\n\
-w ignored\n\
-X ignored\n\
'v',
#endif
'w', 'X',
- /* New option for extending instruction set (see also --itbl below) */
- 't',
+ /* New option for extending instruction set (see also --itbl below) */
+ 't',
'\0'
};
struct option *longopts;
{"defsym", required_argument, NULL, OPTION_DEFSYM},
#define OPTION_INSTTBL (OPTION_STD_BASE + 8)
/* New option for extending instruction set (see also -t above).
- * The "-t file" or "--itbl file" option extends the basic set
- * of valid instructions by reading "file", a text file containing
- * a list of instruction formats. The additional opcodes and their
- * formats are added to the built-in set of instructions, and
- * mnemonics for new registers may also be defined. */
+ The "-t file" or "--itbl file" option extends the basic set of
+ valid instructions by reading "file", a text file containing a
+ list of instruction formats. The additional opcodes and their
+ formats are added to the built-in set of instructions, and
+ mnemonics for new registers may also be defined. */
{"itbl", required_argument, NULL, OPTION_INSTTBL}
};
information from this table gets appended onto the existing
internal table. */
itbl_files->name = xstrdup (optarg);
- if (itbl_parse(itbl_files->name) != 0)
- {
- fprintf (stderr, "Failed to read instruction table %s\n",
- itbl_files->name);
- exit (EXIT_SUCCESS);
- }
+ if (itbl_parse (itbl_files->name) != 0)
+ {
+ fprintf (stderr, "Failed to read instruction table %s\n",
+ itbl_files->name);
+ exit (EXIT_SUCCESS);
+ }
}
break;
mips16_ip (str, &insn);
else
{
- mips_ip (str, &insn);
+ mips_ip (str, &insn);
DBG(("returned from mips_ip(%s) insn_opcode = 0x%x\n",
str, insn.insn_opcode));
}
s = "cop3";
copz:
/* For now we just do C (same as Cz). */
- macro_build ((char *) NULL, &icnt, &offset_expr, s, "C");
+ macro_build ((char *) NULL, &icnt, &offset_expr, s, "C");
return;
#ifdef LOSING_COMPILER
symbols, etc.
Would it be more efficient to use mask (id) here? */
if (itbl_have_entries
- && immed_expr = itbl_assemble(ip->insn_mo->name, ""), immed_expr)
+ && (immed_expr = itbl_assemble (ip->insn_mo->name, "")))
{
s = ip->insn_mo->name;
s2 = "cop3";
- coproc = ITBL_DECODE_PNUM(immed_expr);;
+ coproc = ITBL_DECODE_PNUM (immed_expr);;
macro_build ((char *) NULL, &icnt, &immed_expr, s, "C");
return;
}
break;
default:
- /* FIXME: Check if this is one of the itbl macros, since they are
- added dynamically. */
+ /* FIXME: Check if this is one of the itbl macros, since they
+ are added dynamically. */
as_bad ("Macro %s not implemented yet", ip->insn_mo->name);
break;
}
int r;
p = s+1; /* advance past '$' */
- n = itbl_get_field(&p); /* n is name */
+ n = itbl_get_field (&p); /* n is name */
/* See if this is a register defined in an
itbl entry */
- if (r = itbl_get_reg_val(n), r)
+ r = itbl_get_reg_val (n);
+ if (r)
{
- /* Get_field advances to the start of the next
- field, so we need to back rack to the end of
- the last field. */
+ /* Get_field advances to the start of
+ the next field, so we need to back
+ rack to the end of the last field. */
if (p)
- s = p-1;
+ s = p - 1;
else
- s = strchr(s,'\0');
+ s = strchr (s,'\0');
regno = r;
}
else
case 'D':
/* Itbl operand; not yet implemented. FIXME ?? */
break;
- /* What about all other operands like 'i',
- which can be specified in the opcode table? */
+ /* What about all other operands like 'i', which
+ can be specified in the opcode table? */
}
lastregno = regno;
continue;
#endif
}
\f
-
void
mips_init_after_args ()
{
{
/* initialize opcodes */
bfd_mips_num_opcodes = bfd_mips_num_builtin_opcodes;
- mips_opcodes = (struct mips_opcode*) mips_builtin_opcodes;
+ mips_opcodes = (struct mips_opcode *) mips_builtin_opcodes;
}
}
-
long
md_pcrel_from (fixP)
fixS *fixP;