From: Dmitry Selyutin Date: Mon, 25 Jul 2022 19:15:25 +0000 (+0300) Subject: ppc/svp64: support mrr mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a81f8d2b25af4d7ff6a1fac8db9b1e9f4d4f402d;p=binutils-gdb.git ppc/svp64: support mrr mode --- diff --git a/gas/config/tc-ppc-svp64.c b/gas/config/tc-ppc-svp64.c index bc42aa572d9..14cc9cd2fc0 100644 --- a/gas/config/tc-ppc-svp64.c +++ b/gas/config/tc-ppc-svp64.c @@ -43,6 +43,7 @@ struct svp64_ctx { unsigned int ff : 3 + 2; /* 3-bit plus RC1 */ unsigned int pr : 3 + 2; /* 3-bit plus RC1 */ unsigned int mr : 1; + unsigned int rg : 1; }; #define SVP64_RC1_ACTIVE (1U << 3U) @@ -477,6 +478,23 @@ svp64_decode_mr (char *str, struct svp64_ctx *svp64) return str; } +static char * +svp64_decode_mrr (char *str, struct svp64_ctx *svp64) +{ + str += (sizeof ("mrr") - 1); + if ( ! ISSPACE (*str) && *str != SVP64_SEP && *str != '\0') + return NULL; + + svp64->sv_mode_explicit = 1; + svp64->sv_mode = 0; + svp64->mr = 1; + svp64->rg = 1; + + *str++ = '\0'; + + return str; +} + static char * svp64_decode_mode (char *str, struct svp64_ctx *svp64) { @@ -499,6 +517,7 @@ svp64_decode_mode (char *str, struct svp64_ctx *svp64) SVP64_DECODER ("ff=" , svp64_decode_ff), SVP64_DECODER ("pr=" , svp64_decode_pr), SVP64_DECODER ("mr" , svp64_decode_mr), + SVP64_DECODER ("mrr" , svp64_decode_mrr), }; for (i = 0; i < sizeof (table) / sizeof (table[0]); ++i)