aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-csky/tls-le.s
blob: 240a59d702099b0b61e191057e37ec426c94ad54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	.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