2 # RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t
5 # RUN: llvm-readelf -r %t | FileCheck --check-prefix=NOREL %s
6 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=LE %s
7 # RUN: llvm-objdump --section .data.rel.ro --full-contents %t | FileCheck --check-prefix=LE-DATA %s
9 # NOREL: no relocations
11 ## TP offset for a is at 0x1002200
12 # LE: lgrl %r1, 0x1002200
13 # LE-NEXT: lgf %r1, 0(%r1,%r7)
15 ## TP offset for b is at 0x1002208
16 # LE-NEXT: lgrl %r1, 0x1002208
17 # LE-NEXT: lgf %r1, 0(%r1,%r7)
19 ## TP offset for c is at 0x1002210
20 # LE-NEXT: lgrl %r1, 0x1002210
21 # LE-NEXT: lgf %r1, 0(%r1,%r7)
27 # LE-DATA: 1002200 ffffffff fffffff8 ffffffff fffffffc
28 # LE-DATA: 1002210 00000000 00000000
43 .section .data.rel.ro,"aw"