1 # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
2 # RUN: | llvm-objdump -d - | FileCheck -check-prefix=INSTR %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
4 # RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s
5 # RUN: llvm-mc -triple riscv32 < %s -show-encoding \
6 # RUN: | FileCheck -check-prefix=FIXUP %s
8 # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
9 # RUN: | llvm-objdump -d - | FileCheck -check-prefix=INSTR %s
10 # RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
11 # RUN: | llvm-readobj -r | FileCheck -check-prefix=RELOC %s
12 # RUN: llvm-mc -triple riscv64 < %s -show-encoding \
13 # RUN: | FileCheck -check-prefix=FIXUP %s
18 # RELOC: R_RISCV_CALL foo 0x0
21 # FIXUP: fixup A - offset: 0, value: foo, kind:
23 # RELOC: R_RISCV_CALL bar 0x0
26 # FIXUP: fixup A - offset: 0, value: bar, kind:
28 # Ensure that tail calls to functions whose names coincide with register names
32 # RELOC: R_RISCV_CALL zero 0x0
35 # FIXUP: fixup A - offset: 0, value: zero, kind:
38 # RELOC: R_RISCV_CALL f1 0x0
41 # FIXUP: fixup A - offset: 0, value: f1, kind:
44 # RELOC: R_RISCV_CALL ra 0x0
47 # FIXUP: fixup A - offset: 0, value: ra, kind:
50 # RELOC: R_RISCV_CALL_PLT foo 0x0
53 # FIXUP: fixup A - offset: 0, value: foo@plt, kind: