brintos

brintos / llvm-project-archived public Read only

0
0
Text · 861 B · 1a63acd Raw
33 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=0x12345678 -check=%s %t.o5#6# RUN: not llvm-jitlink -noexec -abs X=0x123456789 %t.o 2>&1 | \7# RUN:   FileCheck -check-prefix=CHECK-ERROR %s8#9# Check success and failure cases of R_390_32 handling.10 11# jitlink-check: *{8}P = X12 13# CHECK-ERROR: relocation target {{.*}} (X) is out of range of Pointer32 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        229P:30        .long   031        .long   X    # Using long here generates R_390_32.32        .size   P, 833