36 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=0xFFFF -check=%s %t.o5 6# RUN: not llvm-jitlink -noexec -abs X=0x10000 %t.o 2>&1 | \7# RUN: FileCheck -check-prefix=CHECK-ERROR %s8#9# Check success and failure cases of R_390_16 handling.10 11# jitlink-check: *{8}P = X12 13# CHECK-ERROR: relocation target {{.*}} (X) is out of range of Pointer16 fixup14 15 .text16 .section .text.main17 .globl main18 .p2align 419 .type main,@function20main:21 br %r1422.Lfunc_end0:23 .size main, .Lfunc_end0-main24 25 .type P,@object26 .data27 .globl P28 .p2align 129P:30 .short 031 .short 032 .short 033 .short X # Using byte here generates R_390_16.34 .size P, 835 36