From: Dmitry Selyutin Date: Tue, 11 Apr 2023 18:27:25 +0000 (+0300) Subject: ppc/svp64: introduce SVP64 name parser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31db2d281d155dc027f1b2b0c67de5737fcf472d;p=binutils-gdb.git ppc/svp64: introduce SVP64 name parser --- diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 6c8dee4b5e3..05ddb9671e8 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -52,6 +52,9 @@ ppc_parse_name_common (const char *name, expressionS *exp, enum expr_mode mode, const struct powerpc_pd_reg *regs, size_t num); +static void +ppc_parse_name_default (const char *name, expressionS *exp, enum expr_mode mode); + #include "tc-ppc-svp64.c" /* This is the assembler for the PowerPC or POWER (RS/6000) chips. */ @@ -1945,8 +1948,8 @@ md_begin (void) ppc_dwarf2_line_min_insn_length = (ppc_cpu & PPC_OPCODE_VLE) ? 2 : 4; if (ppc_cpu & PPC_OPCODE_SVP64) { - ppc_parse_name = svp64_parse_name; ppc_operand = svp64_operand; + ppc_parse_name = svp64_parse_name; } #ifdef OBJ_ELF diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h index 9474d9adc9e..fce6c98e0ba 100644 --- a/gas/config/tc-ppc.h +++ b/gas/config/tc-ppc.h @@ -327,7 +327,7 @@ extern void (*ppc_operand) (expressionS *exp); #define md_parse_name(name, exp, mode, c) \ ((*ppc_parse_name) (name, exp, mode), true) -extern void (*ppc_parse_name) (const char *, struct expressionS *, enum expr_mode); +extern void (*ppc_parse_name) (const char *name, expressionS *exp, enum expr_mode mode); #define md_optimize_expr(left, op, right) ppc_optimize_expr (left, op, right) extern int ppc_optimize_expr (expressionS *, operatorT, expressionS *);