Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e4a4547
Add initial llvm-jitlink support for SystemZ.
Jun 17, 2025
574a239
Merge branch 'main' into llvm-jitlink
anoopkg6 Jun 17, 2025
0423532
Resolve issues with conflicts
Jun 17, 2025
72ff4e3
Fix build error
Jun 17, 2025
5bbfe06
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Jul 16, 2025
7ec023e
Fixed jitlink-check: CHECK-ERROR - error message format changed.
Jul 16, 2025
9e4a909
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Oct 30, 2025
a52657a
Incorporate code review feedback
Nov 1, 2025
c0cc3db
Incorporate code review feedback
Nov 4, 2025
47482b2
1. Created GOTPC section for R_390_GOTPC and R_390_GOTPCDBL relocation.
Nov 5, 2025
76623a9
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 5, 2025
2f7a610
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 6, 2025
f6b2556
Incorporate code review feedback
Nov 6, 2025
dc19225
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 6, 2025
5c118d3
Incorporate code review feedback
Nov 7, 2025
3e9f4fd
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 7, 2025
0270bd9
Merge branch 'llvm-jitlink' of github.com:anoopkg6/llvm-project into …
Nov 7, 2025
34456ef
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 7, 2025
dde6b1f
Minor cleanup
Nov 7, 2025
30c18e6
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
9d41ed4
Fix Stub block Delta32dbl edge with Addend 2 at offset 2
Nov 11, 2025
dbfe1d7
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
50d8559
Make Stub block alignment 16-bit and some minor clean up
Nov 11, 2025
4f46316
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
9b5da09
Corrected Stub size
Nov 11, 2025
46ba2b2
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
aeb8b49
Fix build failure
Nov 11, 2025
18dbe0e
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
3a8141f
Update exact check for 4-bytes memory content
Nov 11, 2025
39413b1
Merge branch 'llvm-jitlink' of github.com:anoopkg6/llvm-project into …
Nov 11, 2025
4beb545
ARM build failure because large offset
Nov 11, 2025
2e5f370
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
d554997
Merge branch 'llvm:main' into llvm-jitlink
anoopkg6 Nov 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,16 @@ test_gotplt64_bar:
.size test_gotplt64_bar, .-test_gotplt64_bar

.globl test_gotpc_foo
# jitlink-check: *{4}test_gotpc_foo = _GLOBAL_OFFSET_TABLE_ - test_gotpc_foo
# jitlink-check: *{4}test_gotpc_foo = (_GLOBAL_OFFSET_TABLE_ - test_gotpc_foo) \
# jitlink-check: & 0xffffffff
test_gotpc_foo:
.reloc ., R_390_GOTPC, foo
.space 4
.size test_gotpc_foo, .-test_gotpc_foo

.globl test_gotpc_bar
# jitlink-check: *{4}test_gotpc_bar = _GLOBAL_OFFSET_TABLE_ - test_gotpc_bar
# jitlink-check: *{4}test_gotpc_bar = (_GLOBAL_OFFSET_TABLE_ - test_gotpc_bar) \
# jitlink-check: & 0xffffffff
test_gotpc_bar:
.reloc ., R_390_GOTPC, bar
.space 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# REQUIRES: system-linux
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
# RUN: -defsym OFF12=0xffe -defsym OFF16=4 -defsym OFF24=6 \
# RUN: -defsym OFF32=6 -filetype=obj -o %t.o %s
# RUN: -filetype=obj -o %t.o %s
#
# RUN: llvm-jitlink -noexec -abs OFF12=0xffe -abs OFF16=4 -abs OFF24=6 \
# RUN: -abs OFF32=6 -check=%s %t.o
# RUN: -check=%s %t.o
#
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
# RUN: -defsym OFF12=6 -defsym OFF16=0xfffe -defsym OFF24=6 \
# RUN: -defsym OFF32=6 -filetype=obj -o %t.o %s
# RUN: -filetype=obj -o %t.o %s
#
# RUN: llvm-jitlink -noexec -abs OFF12=6 -abs OFF16=0xfffe -abs OFF24=6 \
# RUN: -abs OFF32=6 -check=%s %t.o
# RUN: -check=%s %t.o
#
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
# RUN: -defsym OFF12=6 -defsym OFF16=4 -defsym OFF24=0xfffffe \
# RUN: -defsym OFF32=6 -filetype=obj -o %t.o %s
# RUN: -filetype=obj -o %t.o %s
#
# RUN: llvm-jitlink -noexec -abs OFF12=6 -abs OFF16=4 -abs OFF24=0xfffffe \
# RUN: -abs OFF32=6 -check=%s %t.o
# RUN: -check=%s %t.o
#
# RUN: llvm-mc -triple=systemz-unknown-linux -mcpu=z16 -position-independent \
# RUN: -defsym OFF12=6 -defsym OFF16=4 -defsym OFF24=6 \
# RUN: -defsym OFF32=0xffffffc8 -filetype=obj -o %t.o %s
# RUN: -filetype=obj -o %t.o %s
#
# RUN: llvm-jitlink -noexec -abs OFF12=6 -abs OFF16=4 -abs OFF24=6 \
# RUN: -abs OFF32=0xffffffc8 -check=%s %t.o
# RUN: -check=%s %t.o

# Check R_390_PC*dbl relocations.

Expand All @@ -49,17 +49,6 @@ test_pc16dbl:
jne test_pc16dbl
.size test_pc16dbl,.-test_pc16dbl

# R_390_PC32DBL
# jitlink-check: *{4}(test_pc32dbl + 2) = (OFF32 >> 1)
.globl test_pc32dbl
.p2align 3
test_pc32dbl:
jge .Lpc32dbl
.space OFF32 - 6
.Lpc32dbl:
jgne test_pc32dbl
.size test_pc32dbl,.-test_pc32dbl

# R_390_PC12DBL
# jitlink-check: ((*{2} (test_pc12dbl + 1)) & 0x0fff) = (OFF12 >> 1)
.globl test_pc12dbl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ main:

.globl test_plt32_foo
# jitlink-check: *{4}test_plt32_foo = \
# jitlink-check: stub_addr(elf_reloc.o, foo) - test_plt32_foo
# jitlink-check: (stub_addr(elf_reloc.o, foo) - test_plt32_foo) & 0xffffffff
test_plt32_foo:
.reloc ., R_390_PLT32, foo
.space 4
.size test_plt32_foo, .-test_plt32_foo

.globl test_plt32_bar
# jitlink-check: *{4}test_plt32_bar = \
# jitlink-check: stub_addr(elf_reloc.o, bar) - test_plt32_bar
# jitlink-check: (stub_addr(elf_reloc.o, bar) - test_plt32_bar) & 0xffffffff
test_plt32_bar:
.reloc ., R_390_PLT32, bar
.space 4
Expand Down
Loading