1 // RUN
: llvm-mc
-filetype
=obj
-triple mipsel-unknown-linux
%s
-o
- | llvm-readobj
-r | FileCheck
%s
3 // Check that the appropriate relocations were created.
5 // CHECK
: Relocations
[
6 // CHECK
: Section
{{.*}} .rel.text {
7 // CHECK
: R_MIPS_TLS_LDM
8 // CHECK
: R_MIPS_TLS_DTPREL_HI16
9 // CHECK
: R_MIPS_TLS_DTPREL_LO16
15 .section .mdebug.abi32,"",@progbits
16 .file "/home/espindola/llvm/llvm/test/MC/Mips/elf-tls.ll"
32 addiu $
2, $
2, %lo
(_gp_disp
)
34 sw $ra
, 20($sp
) # 4-byte Folded Spill
36 lw $
25, %call16
(__tls_get_addr
)($gp
)
38 addiu $
4, $gp
, %tlsgd
(t1
)
40 lw $ra
, 20($sp
) # 4-byte Folded Reload
64 addiu $
2, $
2, %lo
(_gp_disp
)
66 sw $ra
, 20($sp
) # 4-byte Folded Spill
68 lw $
25, %call16
(__tls_get_addr
)($gp
)
70 addiu $
4, $gp
, %tlsgd
(t2
)
72 lw $ra
, 20($sp
) # 4-byte Folded Reload
96 addiu $
2, $
2, %lo
(_gp_disp
)
98 sw $ra
, 20($sp
) # 4-byte Folded Spill
100 lw $
25, %call16
(__tls_get_addr
)($gp
)
102 addiu $
4, $gp
, %tlsldm
(f3.i
)
103 lui $
1, %dtprel_hi
(f3.i
)
105 lw $
2, %dtprel_lo
(f3.i
)($
1)
107 sw $
2, %dtprel_lo
(f3.i
)($
1)
108 lw $ra
, 20($sp
) # 4-byte Folded Reload
118 .type t1,@object # @t1
119 .section .tbss,"awT",@nobits
126 .type f3.i,@object # @f3.i
127 .section .tdata,"awT",@progbits