diff options
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-riscv.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 7f3b6cf..1f61730 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -197,6 +197,12 @@ riscv_set_arch (const char *s) all_subsets++; p++; } + else if (*p == 'q') + { + const char subset[] = {*p, 0}; + riscv_add_subset (subset); + p++; + } else as_fatal ("-march=%s: unsupported ISA subset `%c'", s, *p); } @@ -1817,8 +1823,12 @@ riscv_after_parse_args (void) float_abi = FLOAT_ABI_SOFT; for (subset = riscv_subsets; subset != NULL; subset = subset->next) - if (strcasecmp (subset->name, "D") == 0) - float_abi = FLOAT_ABI_DOUBLE; + { + if (strcasecmp (subset->name, "D") == 0) + float_abi = FLOAT_ABI_DOUBLE; + if (strcasecmp (subset->name, "Q") == 0) + float_abi = FLOAT_ABI_QUAD; + } } /* Insert float_abi into the EF_RISCV_FLOAT_ABI field of elf_flags. */ |