-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# RUN: llvm-mc %s -triple=riscv32 \ | ||
# RUN: | FileCheck %s | ||
# RUN: llvm-mc %s -triple=riscv64 \ | ||
# RUN: | FileCheck %s | ||
# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ | ||
# RUN: | llvm-objdump -d -r - \ | ||
# RUN: | FileCheck %s | ||
# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ | ||
# RUN: | llvm-objdump -d -r - \ | ||
# RUN: | FileCheck %s | ||
|
||
# 'fp' is an alternate ABI name for 's0' and it should be accepted in input. | ||
# However, 's0' should be printed in preference. | ||
|
||
# CHECK: addi s0, s0, -4 | ||
addi fp, fp, -4 |