brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 0da54b2 Raw
42 lines · plain
1# REQUIRES: system-linux2# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \3# RUN:     -defsym OFFSET=0x8000 -filetype=obj -o %t.o %s4# RUN: llvm-jitlink -noexec -abs OFFSET=0x8000 -check=%s %t.o5#6# RUN: llvm-mc -triple=systemz-unknown-linux -position-independent \7# RUN:     -defsym OFFSET=0xFFFF -filetype=obj -o %t.o %s8# RUN: not llvm-jitlink -noexec -abs OFFSET=0xFFFF %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=0x8001 -filetype=obj -o %t.o %s13# RUN: not llvm-jitlink -noexec -abs OFFSET=0x8001 %t.o 2>&1 | \14# RUN:   FileCheck -check-prefix=CHECK-ERROR %s15#16# jitlink-check: *{2}test_pc16 = OFFSET17# jitlink-check: *{2}test_pc16dbl = OFFSET18 19# CHECK-ERROR:  {{.*}} is out of range of Delta16 fixup20 21        .text22        .section        .text.main23        .globl  main24        .p2align        425        .type   main,@function26main:27        br    %r1428        .size   main, .-main29 30	.globl test_pc1631test_pc16:32  	.reloc test_pc16, R_390_PC16, .-OFFSET33	.space 234  	.size test_pc16, .-test_pc16 35 36	.globl test_pc16dbl37test_pc16dbl:38  	.reloc test_pc16dbl, R_390_PC16DBL, .-(OFFSET + OFFSET)39	.space 240  	.size test_pc16dbl, .-test_pc16dbl41 42