]> granicus.if.org Git - llvm/commit
[RISCV] Allow fp as an alias of s0
authorAlex Bradbury <asb@lowrisc.org>
Mon, 11 Mar 2019 21:35:26 +0000 (21:35 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 11 Mar 2019 21:35:26 +0000 (21:35 +0000)
commit7cb38d512dc742d95a0278fbf3e29ecd5d319466
tree2d3ca769ac9d704e53fb94d77aa97b062cfab6ce
parentcb9067728a598b76e123839c850ee5be3aec4fbb
[RISCV] Allow fp as an alias of s0

The RISC-V Assembly Programmer's Manual defines fp as another alias of x8.
However, our tablegen rules only recognise s0. This patch adds fp as another
alias of x8. GCC also accepts fp.

Differential Revision: https://reviews.llvm.org/D59209
Patch by Ferran Pallarès Roca.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVRegisterInfo.td
test/MC/RISCV/rvi-alternate-abi-names.s [new file with mode: 0644]