From 7ae5e25fab6d862f6064e44122e0a2e16111bcfc Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 29 May 2023 01:04: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 1900029f5e6..a0da2f6db39 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. */ @@ -1949,8 +1952,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 *); -- 2.30.2