summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/binutils/testsuite/binutils-all/mips/mixed-micromips.s
blob: 0528c904df75aea78bfc22d9330d7b0298021459 (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
	.section .text.foo, "ax", @progbits
	.set	nomicromips
	.globl	foo
	.ent	foo
foo:
	addiu	$sp, $sp, -32
	sw	$ra, 28($sp)
	jal	baz
	lw	$ra, 28($sp)
	addiu	$sp, $sp, 32
	jr	$ra
	.end	foo

# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	2
	.space	8


	.section .text.bar, "ax", @progbits
	.set	micromips
	.globl	bar
	.ent	bar
bar:
	addiu	$sp, $sp, -32
	sw	$ra, 28($sp)
	jals	baz
	lw	$ra, 28($sp)
	jraddiusp 32
	.end	bar

# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	2
	.space	8