aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/tls-le-relax.s
blob: 80f8792064706de0e13b3683d18973722b322fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Support for TLS LE symbols with addend
	.text
	.globl	a
	.section	.tdata,"awT",@progbits
	.align	2
	.type	a, @object
	.size	a, 4
a:
	.word	123

	.text
	.global _start
_start:
	lu12i.w $r4,%le_hi20(a + 0x8)
	ori	$r5,$r4,%le_lo12(a + 0x8)
	lu12i.w $r4,%le_hi20_r(a + 0x8)
	addi.d	$r5,$r4,%le_lo12_r(a + 0x8)
	lu12i.w $r4,%le_hi20(a + 0x8)
	ori	$r4,$r4,%le_lo12(a + 0x8)
	lu32i.d	$r4,%le64_lo20(a + 0x8)
	lu52i.d	$r4,$r4,%le64_hi12(a + 0x8)
	jr $ra