22 lines · plain
1# REQUIRES: systemz2# RUN: llvm-mc -filetype=obj -triple=s390x -defsym DISP=291 %s -o %t1.o3# RUN: llvm-mc -filetype=obj -triple=s390x -defsym DISP=4095 %s -o %t2.o4# RUN: llvm-mc -filetype=obj -triple=s390x -defsym DISP=4096 %s -o %t3.o5 6# RUN: ld.lld --image-base=0 -Ttext=0 %t1.o -o %t1out7# RUN: ld.lld --image-base=0 -Ttext=0 %t2.o -o %t2out8# RUN: not ld.lld --image-base=0 -Ttext=0 %t3.o -o /dev/null 2>&1 | FileCheck %s --check-prefix RANGE9 10# RANGE: relocation R_390_12 out of range: 4096 is not in [0, 4095]11 12# RUN: llvm-readelf --hex-dump=.text %t1out | FileCheck %s -DINSN=58678123 --check-prefix DUMP13# RUN: llvm-readelf --hex-dump=.text %t2out | FileCheck %s -DINSN=58678fff --check-prefix DUMP14 15# DUMP: 0x00000000 [[INSN]]16 17.text18.globl _start19_start:20 .reloc .+2, R_390_12, DISP21 l %r6, 0(%r7,%r8)22