LoongArch: update test cases about TLS
[platform/upstream/binutils.git] / ld / testsuite / ld-loongarch-elf / desc-ie.s
1         .global v1
2         .section .tdata,"awT",@progbits
3 v1:
4         .word 1
5         .text
6         .global fn1
7         .type   fn1,@function
8 fn1:
9
10         # Use DESC and IE to access the same symbol,
11         # DESC will relax to IE.
12         la.tls.desc $a0,var
13         la.tls.ie   $a0,var
14
15         # extreme cmodel do not do transition.
16         la.tls.desc $a0,$a1,var
17         la.tls.ie   $a0,$a1,var