From 3232fefee82adc9ca39dd17670e19e2077198401 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 25 Jul 2022 22:14:29 +0300 Subject: [PATCH] ppc/svp64: support mr mode --- gas/config/tc-ppc-svp64.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gas/config/tc-ppc-svp64.c b/gas/config/tc-ppc-svp64.c index ee5acd4eb4f..bc42aa572d9 100644 --- a/gas/config/tc-ppc-svp64.c +++ b/gas/config/tc-ppc-svp64.c @@ -42,6 +42,7 @@ struct svp64_ctx { unsigned int dst_zero : 1; unsigned int ff : 3 + 2; /* 3-bit plus RC1 */ unsigned int pr : 3 + 2; /* 3-bit plus RC1 */ + unsigned int mr : 1; }; #define SVP64_RC1_ACTIVE (1U << 3U) @@ -460,6 +461,22 @@ svp64_decode_pr (char *str, struct svp64_ctx *svp64) return iter; } +static char * +svp64_decode_mr (char *str, struct svp64_ctx *svp64) +{ + str += (sizeof ("mr") - 1); + if ( ! ISSPACE (*str) && *str != SVP64_SEP && *str != '\0') + return NULL; + + svp64->sv_mode_explicit = 1; + svp64->sv_mode = 0; + svp64->mr = 1; + + *str++ = '\0'; + + return str; +} + static char * svp64_decode_mode (char *str, struct svp64_ctx *svp64) { @@ -481,6 +498,7 @@ svp64_decode_mode (char *str, struct svp64_ctx *svp64) SVP64_DECODER ("dz" , svp64_decode_dz), SVP64_DECODER ("ff=" , svp64_decode_ff), SVP64_DECODER ("pr=" , svp64_decode_pr), + SVP64_DECODER ("mr" , svp64_decode_mr), }; for (i = 0; i < sizeof (table) / sizeof (table[0]); ++i) -- 2.30.2