29 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \4# RUN: -filetype=obj -o %t.o %s5#6# RUN: llvm-jitlink -noexec -abs DISP=0xFFF -check=%s %t.o7 8# RUN: not llvm-jitlink -noexec -abs DISP=0x1000 %t.o 2>&1 | \9# RUN: FileCheck -check-prefix=CHECK-ERROR %s10#11# Check success and failure cases of R_390_12 handling.12 13# CHECK-ERROR: relocation target {{.*}} (DISP) is out of range of14# CHECK-ERROR: Pointer12 fixup15 16# jitlink-check: decode_operand(main, 2) = DISP17 .text18 .section .text.main19 .globl main20 .p2align 421 .type main,@function22main:23 .reloc .+2, R_390_12, DISP 24 l %r6, 0(%r7,%r8)25 br %r1426.Lfunc_end0:27 .size main, .Lfunc_end0-main28 29