diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-01-25 19:20:00 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-03-06 14:47:03 +0800 |
commit | a9859f5ad0ed35ffd937c4900957f54e4893a35b (patch) | |
tree | c26f5e24ac28abea62900d3e3f0bc3827335f799 /ld/testsuite/ld-loongarch-elf/desc-ie.s | |
parent | d5de762be734940049f1fc77d7b7bad2ee5f06f7 (diff) | |
download | gdb-a9859f5ad0ed35ffd937c4900957f54e4893a35b.zip gdb-a9859f5ad0ed35ffd937c4900957f54e4893a35b.tar.gz gdb-a9859f5ad0ed35ffd937c4900957f54e4893a35b.tar.bz2 |
LoongArch: Fix some test cases for TLS transition and relax
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/desc-ie.s')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/desc-ie.s | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/desc-ie.s b/ld/testsuite/ld-loongarch-elf/desc-ie.s index 7f5772b..441080b 100644 --- a/ld/testsuite/ld-loongarch-elf/desc-ie.s +++ b/ld/testsuite/ld-loongarch-elf/desc-ie.s @@ -1,6 +1,6 @@ - .global v1 + .global var .section .tdata,"awT",@progbits -v1: +var: .word 1 .text .global fn1 @@ -9,10 +9,5 @@ fn1: # Use DESC and IE to access the same symbol, # DESC will relax to IE. - pcalau12i $a0,%desc_pc_hi20(var) - addi.d $a0,$a0,%desc_pc_lo12(var) - ld.d $ra,$a0,%desc_ld(var) - jirl $ra,$ra,%desc_call(var) - - pcalau12i $a0,%ie_pc_hi20(var) - ld.d $ra,$a0,%ie_pc_lo12(var) + la.tls.ie $a0,var + la.tls.desc $a0,var |