Skip to content

Commit 5cb2f3e

Browse files
zhaoqi5github-actions[bot]
authored andcommitted
Automerge: [JITLink][RISCV] Add feature relax for addsub tests. NFC (#121204)
R_RISCV_{ADD*/SUB*} relocations are kept only when feature relax enabled. So it is better to add relax to the test, so that relocs can be reserved for processing by the jitlink. That's what this test really wants to test.
2 parents ccd2ea7 + 8e40450 commit 5cb2f3e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/test/ExecutionEngine/JITLink/RISCV/riscv_reloc_add.s renamed to llvm/test/ExecutionEngine/JITLink/RISCV/ELF_reloc_add.s

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# RUN: rm -rf %t && mkdir -p %t
2-
# RUN: llvm-mc -triple=riscv64 -filetype=obj -o %t/riscv64_reloc_add.o %s
3-
# RUN: llvm-mc -triple=riscv32 -filetype=obj -o %t/riscv32_reloc_add.o %s
2+
# RUN: llvm-mc -triple=riscv64 -mattr=+relax -filetype=obj \
3+
# RUN: -o %t/riscv64_reloc_add.o %s
4+
# RUN: llvm-mc -triple=riscv32 -mattr=+relax -filetype=obj \
5+
# RUN: -o %t/riscv32_reloc_add.o %s
46
# RUN: llvm-jitlink -noexec -check %s %t/riscv64_reloc_add.o \
57
# RUN: -slab-allocate=1Mb -slab-address=0x1000 -slab-page-size=0x1000
68
# RUN: llvm-jitlink -noexec -check %s %t/riscv32_reloc_add.o \

0 commit comments

Comments
 (0)