From: Jim Wilson Date: Fri, 29 Jun 2018 22:12:23 +0000 (-0700) Subject: RISC-V: Add gas support for "fp" register. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9c04e5a8289507fdeb783c337f59a76ff491685;p=binutils-gdb.git RISC-V: Add gas support for "fp" register. gas/ * config/tc-riscv.c (md_begin): Call hash_reg_name for "fp". --- diff --git a/gas/ChangeLog b/gas/ChangeLog index e0cfe04e179..70a922961b4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2018-06-29 Jim Wilson + + * config/tc-riscv.c (md_begin): Call hash_reg_name for "fp". + 2018-06-29 Ramana Radhakrishnan * config/tc-aarch64.c (warn_unpredictable_ldst): Add unpredictable diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index bdec30741b2..5ba997e6cad 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -853,6 +853,9 @@ md_begin (void) hash_reg_names (RCLASS_FPR, riscv_fpr_names_numeric, NFPR); hash_reg_names (RCLASS_FPR, riscv_fpr_names_abi, NFPR); + /* Add "fp" as an alias for "s0". */ + hash_reg_name (RCLASS_GPR, "fp", 8); + opcode_names_hash = hash_new (); init_opcode_names_hash ();