[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / systemz-reloc-disp20.s
blob88cd657c6ae3cb77271e3c9a4672b8c89c5127ba
1 # REQUIRES: systemz
2 # RUN: llvm-mc -filetype=obj -triple=s390x -defsym DISP=74565 %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=s390x -defsym DISP=524287 %s -o %t2.o
4 # RUN: llvm-mc -filetype=obj -triple=s390x -defsym DISP=524288 %s -o %t3.o
6 # RUN: ld.lld --section-start=.text=0x0 %t1.o -o %t1out
7 # RUN: ld.lld --section-start=.text=0x0 %t2.o -o %t2out
8 # RUN: not ld.lld --section-start=.text=0x0 %t3.o -o /dev/null 2>&1 | FileCheck %s --check-prefix RANGE
10 # RANGE: relocation R_390_20 out of range: 524288 is not in [-524288, 524287]
12 # RUN: llvm-readelf --hex-dump=.text %t1out | FileCheck %s -DINSN="e3678345 1204" --check-prefix DUMP
13 # RUN: llvm-readelf --hex-dump=.text %t2out | FileCheck %s -DINSN="e3678fff 7f04" --check-prefix DUMP
15 # DUMP: 0x00000000 [[INSN]]
17 .text
18 .globl _start
19 _start:
20 .reloc .+2, R_390_20, DISP
21 lg %r6, 0(%r7,%r8)