]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/testsuite/binutils-all/mips/mixed-mips16.s
MIPS/binutils/testsuite: Correct mips.exp test ABI/emul/endian arrangement
[thirdparty/binutils-gdb.git] / binutils / testsuite / binutils-all / mips / mixed-mips16.s
1 .section .text.foo, "ax", @progbits
2 .set nomips16
3 .globl foo
4 .ent foo
5 foo:
6 addiu $sp, $sp, -32
7 sw $ra, 28($sp)
8 jal baz
9 lw $ra, 28($sp)
10 addiu $sp, $sp, 32
11 jr $ra
12 .end foo
13
14 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
15 .align 2
16 .space 8
17
18
19 .section .text.bar, "ax", @progbits
20 .set mips16
21 .globl bar
22 .ent bar
23 bar:
24 addiu $sp, -32
25 sw $ra, 28($sp)
26 jal baz
27 lw $a3, 28($sp)
28 addiu $sp, 32
29 jr $a3
30 .end bar
31
32 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
33 .align 2
34 .space 8