32 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=0x7FFFF -check=%s %t.o7 8# RUN: not llvm-jitlink -noexec -abs DISP=0x80000 %t.o 2>&1 | \9# RUN: FileCheck -check-prefix=CHECK-ERROR %s10 11# RUN: not llvm-jitlink -noexec -abs DISP=0xFFFFF %t.o 2>&1 | \12# RUN: FileCheck -check-prefix=CHECK-ERROR %s13#14# Check success and failure cases of R_390_20 handling.15 16# CHECK-ERROR: relocation target {{.*}} (DISP) is out of range of17# CHECK-ERROR: Pointer20 fixup18 19# jitlink-check: decode_operand(main, 2) = DISP20 .text21 .section .text.main22 .globl main23 .p2align 424 .type main,@function25main:26 .reloc .+2, R_390_20, DISP27 lg %r6, 0(%r7,%r8)28 br %r1429.Lfunc_end0:30 .size main, .Lfunc_end0-main31 32