xref: /llvm-project/llvm/test/MC/RISCV/rvi-alternate-abi-names.s (revision c532ba4edd7ad7675ba450ba43268aa9e7bda46b)
1# RUN: llvm-mc %s -triple=riscv32 \
2# RUN:     | FileCheck %s
3# RUN: llvm-mc %s -triple=riscv64 \
4# RUN:     | FileCheck %s
5# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
6# RUN:     | llvm-objdump --no-print-imm-hex -d -r - \
7# RUN:     | FileCheck %s
8# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
9# RUN:     | llvm-objdump --no-print-imm-hex -d -r - \
10# RUN:     | FileCheck %s
11
12# 'fp' is an alternate ABI name for 's0' and it should be accepted in input.
13# However, 's0' should be printed in preference.
14
15# CHECK: addi s0, s0, -4
16addi fp, fp, -4
17