RISC-V: Add gas support for "fp" register.

gas/
	* config/tc-riscv.c (md_begin): Call hash_reg_name for "fp".
This commit is contained in:
Jim Wilson 2018-06-29 15:12:23 -07:00
parent de52b9607d
commit b9c04e5a82
2 changed files with 7 additions and 0 deletions

View 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

View 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 ();