Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / PowerPC / ppc64-tls-relocs-float-01.s
bloba6c6fd5815329769f7024458cef460990b4dc9ef
1 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %s | \
2 # RUN: llvm-readobj -r - | FileCheck %s
4 .text
5 addis 3, 13, myFloat@tprel@ha
6 addi 3, 3, myFloat@tprel@l
7 addis 3, 2, myFloat@got@tprel@ha
8 ld 3, myFloat@got@tprel@l(3)
9 lfsx 4, 3, myFloat@tls
10 stfsx 4, 3, myFloat@tls
11 .type myFloat,@object
12 .section .tbss,"awT",@nobits
13 .globl myFloat
14 .align 2
16 myFloat:
17 .long 0
18 .size myFloat, 4
20 # Check for a pair of R_PPC64_TPREL16_HA / R_PPC64_TPREL16_LO relocs
21 # against the thread-local symbol 'myFloat'.
22 # CHECK: Relocations [
23 # CHECK: Section ({{[0-9]+}}) .rela.text {
24 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_HA myFloat
25 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TPREL16_LO myFloat
26 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_HA myFloat 0x0
27 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_GOT_TPREL16_LO_DS myFloat 0x0
28 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS myFloat 0x0
29 # CHECK-NEXT: 0x{{[0-9,A-F]+}} R_PPC64_TLS myFloat 0x0
30 # CHECK-NEXT: }