29 lines · plain
1# REQUIRES: system-linux2# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \3# RUN: -filetype=obj -o %t.o %s4# RUN: llvm-jitlink -noexec -abs X=0xffffffffffffffff -check=%s %t.o5#6# Check success and failure cases of R_390_64 handling.7 8# jitlink-check: *{8}P = X9 10# CHECK-ERROR: relocation target "X" {{.*}} is out of range of Pointer64 fixup11 12 .text13 .section .text.main14 .globl main15 .p2align 416 .type main,@function17main:18 br %r1419.Lfunc_end0:20 .size main, .Lfunc_end0-main21 22 .type P,@object23 .data24 .globl P25 .p2align 4 26P:27 .quad X # Using quad here generates R_390_64.28 .size P, 829