1*56bb7041Schristos# Define a function with all "uncompressed" (du, bu and iu) references.
2*56bb7041Schristos
3*56bb7041Schristos	.abicalls
4*56bb7041Schristos	.option	pic0
5*56bb7041Schristos
6*56bb7041Schristos	.include "compressed-plt-1.s"
7*56bb7041Schristos
8*56bb7041Schristos	.macro	test_one, name, types
9*56bb7041Schristos	.if	(\types) & DU
10*56bb7041Schristos	jal	\name
11*56bb7041Schristos	nop
12*56bb7041Schristos	j	\name
13*56bb7041Schristos	nop
14*56bb7041Schristos	.endif
15*56bb7041Schristos	.if	(\types) & BU
16*56bb7041Schristos	bal	\name
17*56bb7041Schristos	nop
18*56bb7041Schristos	b	\name
19*56bb7041Schristos	nop
20*56bb7041Schristos	.endif
21*56bb7041Schristos	.if	(\types) & IU
22*56bb7041Schristos	lw	$2, %call16(\name)($3)
23*56bb7041Schristos	.endif
24*56bb7041Schristos	.endm
25*56bb7041Schristos
26*56bb7041Schristos	.section .text.b, "ax", @progbits
27*56bb7041Schristos	.globl	testu
28*56bb7041Schristos	.ent	testu
29*56bb7041Schristos	.set	noreorder
30*56bb7041Schristostestu:
31*56bb7041Schristos	test_all
32*56bb7041Schristos	jr	$31
33*56bb7041Schristos	.end	testu
34