From: Dmitry Selyutin Date: Tue, 11 Apr 2023 18:27:25 +0000 (+0300) Subject: ppc/svp64: support sea specifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be28810fcf20ffe9bf2a306f2f4209f250c9ae25;p=binutils-gdb.git ppc/svp64: support sea specifier --- 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)