Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-csky/tls-le.s
2023-03-06 14:48:14 +01:00

23 lines
316 B
ArmAsm

.text
.section .tbss,"awT",@nobits
.align 2
.type var, @object
.size var, 4
var:
.word 0
.text
.align 2
.global _start
.type _start, @function
_start:
subi sp, sp, 4
st.w l4, (sp, 0)
mov l4, sp
lrw a3, var@TPOFF
ldr.w a3, (r31, a3 << 0)
mov a0, a3
mov sp, l4
ld.w l4, (sp, 0)
addi sp, sp, 4
rts