MIPS/BFD: Also handle `jalr $0, $25' with R_MIPS_JALR
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / jalr4.s
1 .abicalls
2 .text
3
4 .align 2
5 .globl foo
6 .ent foo
7 foo:
8 .reloc 1f, R_MIPS_JALR, bar0
9 1: jalr $25
10 .reloc 1f, R_MIPS_JALR, bar0
11 1: jalr $0, $25
12 .reloc 1f, R_MIPS_JALR, bar0
13 1: jr $25
14 .reloc 1f, R_MIPS_JALR, bar1
15 1: jalr $25
16 .reloc 1f, R_MIPS_JALR, bar1
17 1: jalr $0, $25
18 .reloc 1f, R_MIPS_JALR, bar1
19 1: jr $25
20 .reloc 1f, R_MIPS_JALR, bar2
21 1: jalr $25
22 .reloc 1f, R_MIPS_JALR, bar2
23 1: jalr $0, $25
24 .reloc 1f, R_MIPS_JALR, bar2
25 1: jr $25
26 .end foo
27
28 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
29 .align 4, 0
30 .space 16
31
32 .align 2
33 .globl bar0
34 .ent bar0
35 bar0:
36 .insn
37 .end bar0
38
39 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
40 .align 4, 0
41 .space 16
42
43 .align 2
44 .globl bar1
45 .ent bar1
46 .space 2
47 bar1:
48 .insn
49 .end bar1
50
51 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
52 .align 4, 0
53 .space 16
54
55 .set mips64r2
56 .set mips16
57 .align 2
58 .globl bar2
59 .ent bar2
60 .byte 0
61 bar2:
62 .insn
63 .end bar2
64 .set nomips16
65 .set mips0
66
67 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
68 .align 4, 0
69 .space 16
This page took 0.033717 seconds and 4 git commands to generate.