Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-loongarch-elf / relax-tls-le.s
blob1ea53baf8f7b419516ef82e3a8becabc0afcaa9a
1 /* This test case mainly tests whether the tls le variable
2 address acquisition can be relax normally.
4 before relax: after relax:
6 lu12i.w $r12,%le_hi20_r(sym) ====> (instruction deleted).
7 add.d $r12,$r12,$r2,%le_add_r(sym) ====> (instruction deleted).
8 st.w $r13,$r12,%le_lo12_r(sym) ====> st.w $r13,$r2,%le_lo12_r(sym). */
10 .text
11 .globl a
12 .section .tbss,"awT",@nobits
13 .align 2
14 .type a, @object
15 .size a, 4
17 .space 4
18 .text
19 .align 2
20 .globl main
21 .type main, @function
22 main:
23 lu12i.w $r12,%le_hi20_r(a)
24 add.d $r12,$r12,$r2,%le_add_r(a)
25 addi.w $r13,$r0,1 # 0x1
26 st.w $r13,$r12,%le_lo12_r(a)