Home | History | Annotate | Download | only in ld-mips-elf
      1 # Define a function with all "compressed" (dc 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) & IC
     20 	lw	$2, %call16(\name)($3)
     21 	.endif
     22 	.endm
     23 
     24 	.if	micromips
     25 	.set	micromips
     26 	.else
     27 	.set	mips16
     28 	.endif
     29 
     30 	.section .text.a, "ax", @progbits
     31 	.globl	testc
     32 	.ent	testc
     33 	.set	noreorder
     34 testc:
     35 	test_all
     36 	jr	$31
     37 	.end	testc
     38