HomePhabricator

[RISCV] Allow fp as an alias of s0

Authored by asb on Mar 11 2019, 2:35 PM.

Description

[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.

llvm-svn: 355867

Details

Committed
asbMar 11 2019, 2:35 PM
Differential Revision
D59209: Allow fp as an alias of s0
Parents
rG231306bd436e: [Reproducers] Reinterpret cast to void*
Branches
Unknown
Tags
Unknown