Skip to content

Commit b07f8b0

Browse files
anoopkg6anoopkg6
andauthored
[JITLINK] Fix large offset issue (llvm#167600)
Removed large offset test. It caused issue with ARM 32-bit because of large offset. Co-authored-by: anoopkg6 <[email protected]>
1 parent 8196459 commit b07f8b0

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

llvm/test/ExecutionEngine/JITLink/systemz/ELF_systemz_reloc_pcdbl.s

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
# REQUIRES: system-linux
22
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
33
# RUN: -defsym OFF12=0xffe -defsym OFF16=4 -defsym OFF24=6 \
4-
# RUN: -defsym OFF32=6 -filetype=obj -o %t.o %s
4+
# RUN: -filetype=obj -o %t.o %s
55
#
66
# RUN: llvm-jitlink -noexec -abs OFF12=0xffe -abs OFF16=4 -abs OFF24=6 \
7-
# RUN: -abs OFF32=6 -check=%s %t.o
7+
# RUN: -check=%s %t.o
88
#
99
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
1010
# RUN: -defsym OFF12=6 -defsym OFF16=0xfffe -defsym OFF24=6 \
11-
# RUN: -defsym OFF32=6 -filetype=obj -o %t.o %s
11+
# RUN: -filetype=obj -o %t.o %s
1212
#
1313
# RUN: llvm-jitlink -noexec -abs OFF12=6 -abs OFF16=0xfffe -abs OFF24=6 \
14-
# RUN: -abs OFF32=6 -check=%s %t.o
14+
# RUN: -check=%s %t.o
1515
#
1616
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
1717
# RUN: -defsym OFF12=6 -defsym OFF16=4 -defsym OFF24=0xfffffe \
18-
# RUN: -defsym OFF32=6 -filetype=obj -o %t.o %s
18+
# RUN: -filetype=obj -o %t.o %s
1919
#
2020
# RUN: llvm-jitlink -noexec -abs OFF12=6 -abs OFF16=4 -abs OFF24=0xfffffe \
21-
# RUN: -abs OFF32=6 -check=%s %t.o
21+
# RUN: -check=%s %t.o
2222
#
2323
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
2424
# RUN: -defsym OFF12=6 -defsym OFF16=4 -defsym OFF24=6 \
25-
# RUN: -defsym OFF32=0xffffffc8 -filetype=obj -o %t.o %s
25+
# RUN: -filetype=obj -o %t.o %s
2626
#
2727
# RUN: llvm-jitlink -noexec -abs OFF12=6 -abs OFF16=4 -abs OFF24=6 \
28-
# RUN: -abs OFF32=0xffffffc8 -check=%s %t.o
28+
# RUN: -check=%s %t.o
2929

30-
# Check R_390_PC*dbl relocations.
30+
# Check R_390_PC*dbl relocations. R_390_PC32_DBL test is in
31+
# ELF_systemz_reloc_abs32.s because of large offset.
3132

3233
.text
3334
.section .text.main
@@ -49,17 +50,6 @@ test_pc16dbl:
4950
jne test_pc16dbl
5051
.size test_pc16dbl,.-test_pc16dbl
5152

52-
# R_390_PC32DBL
53-
# jitlink-check: *{4}(test_pc32dbl + 2) = (OFF32 >> 1)
54-
.globl test_pc32dbl
55-
.p2align 3
56-
test_pc32dbl:
57-
jge .Lpc32dbl
58-
.space OFF32 - 6
59-
.Lpc32dbl:
60-
jgne test_pc32dbl
61-
.size test_pc32dbl,.-test_pc32dbl
62-
6353
# R_390_PC12DBL
6454
# jitlink-check: ((*{2} (test_pc12dbl + 1)) & 0x0fff) = (OFF12 >> 1)
6555
.globl test_pc12dbl

0 commit comments

Comments
 (0)