Skip to content

Commit cf5e8ef

Browse files
committed
fixup! [RISCV] Add Vendor Reloc and Fallbacks
1 parent 6d81b67 commit cf5e8ef

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

llvm/test/MC/RISCV/custom_reloc.s

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
# RUN: llvm-mc -triple riscv32 < %s \
1+
# RUN: llvm-mc -triple riscv32 %s \
22
# RUN: | FileCheck -check-prefix=CHECK-ASM %s
3-
# RUN: llvm-mc -triple riscv64 < %s \
3+
# RUN: llvm-mc -triple riscv64 %s \
44
# RUN: | FileCheck -check-prefix=CHECK-ASM %s
55

6-
# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
6+
# RUN: llvm-mc -filetype=obj -triple riscv32 %s \
77
# RUN: | llvm-objdump -dr -M no-aliases - \
88
# RUN: | FileCheck -check-prefix=CHECK-OBJ %s
9-
# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
9+
# RUN: llvm-mc -filetype=obj -triple riscv64 %s \
1010
# RUN: | llvm-objdump -dr -M no-aliases - \
1111
# RUN: | FileCheck -check-prefix=CHECK-OBJ %s
1212

1313
# CHECK-ASM: .text
14-
15-
# If `.set` is used instead, the relocation expression will be evaluated.
16-
# This leaves an undef, global symbol called VENDOR_NAME, which I'm not happy
17-
# about.
18-
.global VENDOR_NAME
19-
2014
# CHECK-OBJ: <.text>:
2115

2216
nop
@@ -39,5 +33,3 @@
3933
nop
4034
# CHECK-ASM: nop
4135
# CHECK-OBJ: addi zero, zero, 0x0
42-
43-

0 commit comments

Comments
 (0)