mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
b9e1cd8de0
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
17 lines
521 B
ArmAsm
17 lines
521 B
ArmAsm
# 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
|