From c5119f370c0595e357a544d256107797ea5115d2 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 29 May 2023 01:04:56 +0300 Subject: [PATCH] ppc/svp64: support crm 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 2ee9dd5f965..819d6457391 100644 --- a/gas/config/tc-ppc-svp64.c +++ b/gas/config/tc-ppc-svp64.c @@ -46,6 +46,7 @@ struct svp64_ctx { unsigned int ff : 3 + 2; /* 3-bit plus RC1 */ unsigned int mr : 1; unsigned int RG : 1; + unsigned int crm : 1; }; #define SVP64_RC1_ACTIVE (1U << 3U) @@ -524,6 +525,22 @@ svp64_decode_mrr (char *str, struct svp64_ctx *svp64) return str; } +static char * +svp64_decode_crm (char *str, struct svp64_ctx *svp64) +{ + str += (sizeof ("crm") - 1); + if ( ! ISSPACE (*str) && *str != SVP64_SEP && *str != '\0') + return NULL; + + svp64->sv_mode_explicit = 1; + svp64->sv_mode = 0; + svp64->crm = 1; + + *str++ = '\0'; + + return str; +} + static char * svp64_decode_mode (char *str, struct svp64_ctx *svp64) { @@ -548,6 +565,7 @@ svp64_decode_mode (char *str, struct svp64_ctx *svp64) SVP64_DECODER ("ff=" , svp64_decode_ff), SVP64_DECODER ("mrr" , svp64_decode_mrr), SVP64_DECODER ("mr" , svp64_decode_mr), + SVP64_DECODER ("crm" , svp64_decode_crm), }; for (i = 0; i < sizeof (table) / sizeof (table[0]); ++i) -- 2.30.2