brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 9e41fc7 Raw
62 lines · plain
1# REQUIRES: systemz2# RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %s -o %t.o3 4# RUN: ld.lld %t.o -o %t5# RUN: llvm-readelf -r %t | FileCheck --check-prefix=NOREL %s6# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=LE %s7# RUN: llvm-objdump --section .data.rel.ro --full-contents %t | FileCheck --check-prefix=LE-DATA %s8 9# NOREL: no relocations10 11## TP offset for a is at 0x100220012# LE:      lgrl    %r1, 0x100220013# LE-NEXT: lgf     %r1, 0(%r1,%r7)14 15## TP offset for b is at 0x100220816# LE-NEXT: lgrl    %r1, 0x100220817# LE-NEXT: lgf     %r1, 0(%r1,%r7)18 19## TP offset for c is at 0x100221020# LE-NEXT: lgrl    %r1, 0x100221021# LE-NEXT: lgf     %r1, 0(%r1,%r7)22 23## TP offsets:24# a: -825# b: -426# c: 027# LE-DATA: 1002200 ffffffff fffffff8 ffffffff fffffffc28# LE-DATA: 1002210 00000000 0000000029 30ear     %r7,%a031sllg    %r7,%r1,3232ear     %r7,%a133 34lgrl    %r1, .LC035lgf     %r1,0(%r1,%r7)36 37lgrl    %r1, .LC138lgf     %r1,0(%r1,%r7)39 40lgrl    %r1, .LC241lgf     %r1,0(%r1,%r7)42 43        .section        .data.rel.ro,"aw"44        .align  845.LC0:46        .quad   a@ntpoff47.LC1:48        .quad   b@ntpoff49.LC2:50        .quad   c@ntpoff51 52	.section .tbss53	.globl a54	.globl b55	.globl c56	.zero 857a:58	.zero 459b:60	.zero 461c:62