aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/compressed-plt-1a.s
blob: d5c6b4f34a0594dbd8c2f09b27c399473f4ed369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Define a function with all "compressed" (dc and ic) references.

	.abicalls
	.option	pic0

	.include "compressed-plt-1.s"

	.macro	test_one, name, types
	.if	(\types) & DC
	jal	\name
	nop
	.if	micromips
	.ifdef	o32
	j	\name
	nop
	.endif
	.endif
	.endif
	.if	(\types) & IC
	lw	$2, %call16(\name)($3)
	.endif
	.endm

	.if	micromips
	.set	micromips
	.else
	.set	mips16
	.endif

	.section .text.a, "ax", @progbits
	.globl	testc
	.ent	testc
	.set	noreorder
testc:
	test_all
	jr	$31
	.end	testc