summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-frv/tls-3.s
blob: 6dd7972837c2f839fb3fd71d93631bfd98f5b6ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	.text
	.weak	u
	.globl	_start
_start:
	call	#gettlsoff(u)

	sethi.p	#gottlsdeschi(u), gr14
	setlo	#gottlsdesclo(u), gr14
	ldd	#tlsdesc(u)@(gr15, gr14), gr8
	calll	#gettlsoff(u)@(gr8, gr0)

	lddi.p	@(gr15, #gottlsdesc12(u)), gr8
	setlos	#gottlsdesclo(u), gr14
	calll	#gettlsoff(u)@(gr8, gr0)

	ldi	@(gr15, #gottlsoff12(u)), gr9

	sethi.p	#gottlsoffhi(u), gr14
	setlo	#gottlsofflo(u), gr14
	ld	#tlsoff(u)@(gr15, gr14), gr9