Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-mips-elf / compressed-plt-1a.s
blobad2ae7922f3563d4519b4682483e7d861645a901
1 # Define a function with all "compressed" (dc, bc and ic) references.
3 .abicalls
4 .option pic0
6 .include "compressed-plt-1.s"
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
34 .if micromips
35 .set micromips
36 .else
37 .set mips16
38 .endif
40 .section .text.a, "ax", @progbits
41 .globl testc
42 .ent testc
43 .set noreorder
44 testc:
45 test_all
46 jr $31
47 .end testc