brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 503fd2d Raw
42 lines · plain
1# REQUIRES: system-linux2# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \3# RUN:     -defsym OFFSET=0x80000000 -filetype=obj -o %t.o %s4# RUN: llvm-jitlink -noexec -abs OFFSET=0x80000000 -check=%s %t.o5#6# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \7# RUN:     -defsym OFFSET=0xFFFFFFFF -filetype=obj -o %t.o %s8# RUN: not llvm-jitlink -noexec -abs OFFSET=0xFFFFFFFF %t.o 2>&1 | \9# RUN:   FileCheck -check-prefix=CHECK-ERROR %s10#11# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \12# RUN:     -defsym OFFSET=0x80000001 -filetype=obj -o %t.o %s13# RUN: not llvm-jitlink -noexec -abs OFFSET=0x80000001 %t.o 2>&1 | \14# RUN:   FileCheck -check-prefix=CHECK-ERROR %s15#16# jitlink-check: *{4}test_pc32 = OFFSET17# jitlink-check: *{4}test_pc32dbl = OFFSET18 19# CHECK-ERROR:  {{.*}} is out of range of Delta32 fixup20 21        .text22        .section        .text.main23        .globl  main24        .p2align        425        .type   main,@function26main:27        br    %r1428        .size   main, .-main29 30	.globl test_pc3231test_pc32:32  	.reloc test_pc32, R_390_PC32, .-OFFSET33	.space 4 34  	.size test_pc32, .-test_pc32 35 36	.globl test_pc32dbl37test_pc32dbl:38  	.reloc test_pc32dbl, R_390_PC32DBL, .-(OFFSET + OFFSET)39	.space 4 40  	.size test_pc32dbl, .-test_pc32dbl 41 42