brintos

brintos / llvm-project-archived public Read only

0
0
Text · 930 B · 5f23f28 Raw
39 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=0xFF -check=%s %t.o5 6# RUN: not llvm-jitlink -noexec -abs X=0x100 %t.o 2>&1 | \7# RUN:   FileCheck -check-prefix=CHECK-ERROR %s8#9# Check success and failure cases of R_390_8 handling.10 11# jitlink-check: *{8}P = X12 13# CHECK-ERROR: relocation target {{.*}} (X) is out of range of Pointer8 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  P28P:29        .byte   030        .byte   031        .byte   032        .byte   033        .byte   034        .byte   035        .byte   036        .byte   X    # Using byte here generates R_390_8.37        .size   P, 838 39