From 24cc21fe5b8a88dc1ecde9006ece10145fef1035 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 13 Jul 2022 15:22:56 +0300 Subject: [PATCH] ppc/svp64: introduce SVP64 name parser --- gas/config/tc-ppc.c | 5 ++++- gas/config/tc-ppc.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 585128d8235..f3d3f04054d 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. */ @@ -1927,8 +1930,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 383f71f2189..a1bb70bcf99 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 *); -- 2.30.2