From be28810fcf20ffe9bf2a306f2f4209f250c9ae25 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 11 Apr 2023 21:27:25 +0300 Subject: [PATCH] ppc/svp64: support sea specifier --- gas/config/tc-ppc-svp64.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gas/config/tc-ppc-svp64.c b/gas/config/tc-ppc-svp64.c index 1cab144ad6e..427963836b0 100644 --- a/gas/config/tc-ppc-svp64.c +++ b/gas/config/tc-ppc-svp64.c @@ -39,6 +39,7 @@ struct svp64_ctx { unsigned int destwid : 2; unsigned int srcwid : 2; unsigned int els : 1; + unsigned int sea : 1; }; static jmp_buf svp64_exception; @@ -359,6 +360,20 @@ svp64_decode_els (char *str, struct svp64_ctx *svp64) return str; } +static char * +svp64_decode_sea (char *str, struct svp64_ctx *svp64) +{ + str += (sizeof ("sea") - 1); + if ( ! ISSPACE (*str) && *str != SVP64_SEP && *str != '\0') + return NULL; + + svp64->sea = 1; + + *str++ = '\0'; + + return str; +} + static char * svp64_decode_mode (char *str, struct svp64_ctx *svp64) { @@ -374,6 +389,7 @@ svp64_decode_mode (char *str, struct svp64_ctx *svp64) SVP64_DECODER ("dw=" , svp64_decode_dw), SVP64_DECODER ("sw=" , svp64_decode_sw), SVP64_DECODER ("els" , svp64_decode_els), + SVP64_DECODER ("sea" , svp64_decode_sea), }; for (i = 0; i < sizeof (table) / sizeof (table[0]); ++i) -- 2.30.2