
Add tls le relax related testsuites in ld. The new test cases are mainly tested in three aspects: 1. tls le relax function correctness test. 2. tls le relax boundary check test. 3. tls le relax function compatibility test. ld/testsuite/ChangeLog: * ld/testsuite/ld-loongarch-elf/relax.exp: Modify test. * ld/testsuite/ld-loongarch-elf/old-tls-le.s: New test. * ld/testsuite/ld-loongarch-elf/relax-bound-check-tls-le.s: Likewise. * ld/testsuite/ld-loongarch-elf/tls-relax-compatible-check-new.s: Likewise. * ld/testsuite/ld-loongarch-elf/relax-tls-le.s: Likewise. * ld/testsuite/ld-loongarch-elf/tls-relax-compatible-check-old.s: Likewise.
23 lines
605 B
ArmAsm
23 lines
605 B
ArmAsm
/* This test case mainly tests whether the original
|
|
tls le assembly instruction can be linked normally
|
|
after tls le relax is added to the current ld. */
|
|
|
|
.text
|
|
.globl aa
|
|
.section .tbss,"awT",@nobits
|
|
.align 2
|
|
.type aa, @object
|
|
.size aa, 4
|
|
aa:
|
|
.space 4
|
|
.text
|
|
.align 2
|
|
.globl main
|
|
.type main, @function
|
|
main:
|
|
lu12i.w $r12,%le_hi20(aa)
|
|
ori $r12,$r12,%le_lo12(aa)
|
|
add.d $r12,$r12,$r2
|
|
addi.w $r13,$r0,2 # 0x2
|
|
stptr.w $r13,$r12,0
|
|
|