1# Define a function with all "compressed" (dc, bc and ic) references.
2
3	.abicalls
4	.option	pic0
5
6	.include "compressed-plt-1.s"
7
8	.macro	test_one, name, types
9	.if	(\types) & DC
10	jal	\name
11	nop
12	.if	micromips
13	.ifdef	o32
14	j	\name
15	nop
16	.endif
17	.endif
18	.endif
19	.if	(\types) & BC
20	.if	micromips
21	bal	\name
22	nop
23	.endif
24	.ifdef	o32
25	b	\name
26	nop
27	.endif
28	.endif
29	.if	(\types) & IC
30	lw	$2, %call16(\name)($3)
31	.endif
32	.endm
33
34	.if	micromips
35	.set	micromips
36	.else
37	.set	mips16
38	.endif
39
40	.section .text.a, "ax", @progbits
41	.globl	testc
42	.ent	testc
43	.set	noreorder
44testc:
45	test_all
46	jr	$31
47	.end	testc
48