In general, there are lots of them, in an attempt to be compatible
with a number of other Windows NT assemblers. */
-/* Structure to hold information about predefined registers. */
-struct pd_reg
- {
- const char *name;
- unsigned short value;
- unsigned short flags;
- };
-
/* List of registers that are pre-defined:
Each general register has predefined names of the form:
The table is sorted. Suitable for searching by a binary search. */
-static const struct pd_reg pre_defined_registers[] =
+static const struct powerpc_pd_reg pre_defined_registers[] =
{
/* VSX accumulators. */
{ "a0", 0, PPC_OPERAND_ACC },
/* Given NAME, find the register number associated with that name, return
the integer value associated with the given name or -1 on failure. */
-static const struct pd_reg *
-reg_name_search (const struct pd_reg *regs, int regcount, const char *name)
+static const struct powerpc_pd_reg *
+reg_name_search (const struct powerpc_pd_reg *regs, int regcount, const char *name)
{
int middle, low, high;
int cmp;
void
md_operand (expressionS *expressionP)
{
- const struct pd_reg *reg;
+ const struct powerpc_pd_reg *reg;
char *name;
char *start;
char c;
static bool cr_operand;
/* Extra names to recognise in a condition code. This table is sorted. */
-static const struct pd_reg cr_cond[] =
+static const struct powerpc_pd_reg cr_cond[] =
{
{ "eq", 2, PPC_OPERAND_CR_BIT },
{ "gt", 1, PPC_OPERAND_CR_BIT },
void
ppc_parse_name (const char *name, expressionS *exp, enum expr_mode mode)
{
- const struct pd_reg *reg = NULL;
+ const struct powerpc_pd_reg *reg = NULL;
if (cr_operand)
reg = reg_name_search (cr_cond, ARRAY_SIZE (cr_cond), name);