aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/jalr4.s
blob: 4ad6f264d86bd5063b0f455d0fb19a50f1a4082c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
	.abicalls
	.text

	.align	2
	.globl	foo
	.ent	foo
foo:
	.reloc	1f, R_MIPS_JALR, bar0
1:	jalr	$25
	.reloc	1f, R_MIPS_JALR, bar0
1:	jr	$25
	.reloc	1f, R_MIPS_JALR, bar1
1:	jalr	$25
	.reloc	1f, R_MIPS_JALR, bar1
1:	jr	$25
	.reloc	1f, R_MIPS_JALR, bar2
1:	jalr	$25
	.reloc	1f, R_MIPS_JALR, bar2
1:	jr	$25
	.end	foo

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16

	.align	2
	.globl	bar0
	.ent	bar0
bar0:
	.insn
	.end	bar0

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16

	.align	2
	.globl	bar1
	.ent	bar1
	.space	2
bar1:
	.insn
	.end	bar1

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16

	.set	mips64r2
	.set	mips16
	.align	2
	.globl	bar2
	.ent	bar2
	.byte	0
bar2:
	.insn
	.end	bar2
	.set	nomips16
	.set	mips0

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16