]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-riscv.c
RISC-V: Add gas support for "fp" register.
[thirdparty/binutils-gdb.git] / gas / config / tc-riscv.c
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 ();