RISC-V: Add gas support for "fp" register.
authorJim Wilson <jimw@sifive.com>
Fri, 29 Jun 2018 22:12:23 +0000 (15:12 -0700)
committerJim Wilson <jimw@sifive.com>
Fri, 29 Jun 2018 22:12:23 +0000 (15:12 -0700)
gas/
* config/tc-riscv.c (md_begin): Call hash_reg_name for "fp".

gas/ChangeLog
gas/config/tc-riscv.c

index e0cfe04e179383735fac5bf68a98dfde7360b4c2..70a922961b4730f07155e5d8f81090e6b394c9f5 100644 (file)
@@ -1,3 +1,7 @@
+2018-06-29  Jim Wilson  <jimw@sifive.com>
+
+       * config/tc-riscv.c (md_begin): Call hash_reg_name for "fp".
+
 2018-06-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        * config/tc-aarch64.c (warn_unpredictable_ldst): Add unpredictable
index bdec30741b298826944c6b908ff5b8b2c8ed0a1a..5ba997e6cad1d475a0012c9d1a047898ae6d314d 100644 (file)
@@ -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 ();
 
This page took 0.027851 seconds and 4 git commands to generate.