From 22b78fad28d54bad1d0aee2fe0acf5f3f40648f6 Mon Sep 17 00:00:00 2001 From: mengqinggang Date: Sun, 10 Dec 2023 17:41:32 +0800 Subject: LoongArch: Add support for and Support symbol names enclosed in double quotation marks. --- opcodes/loongarch-coder.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'opcodes') diff --git a/opcodes/loongarch-coder.c b/opcodes/loongarch-coder.c index a68ae1c..672a468 100644 --- a/opcodes/loongarch-coder.c +++ b/opcodes/loongarch-coder.c @@ -264,6 +264,13 @@ loongarch_split_args_by_comma (char *args, const char *arg_strs[]) else *args = '\0', arg_strs[num++] = args + 1; } + + if (*(args-1) == '"') + { + *(args-1) = '\0'; + arg_strs[num-1] = arg_strs[num-1] + 1; + } + arg_strs[num] = NULL; return num; } -- cgit v1.1