diff options
Diffstat (limited to 'binutils/testsuite/binutils-all/mips/mixed-mips16.s')
-rw-r--r-- | binutils/testsuite/binutils-all/mips/mixed-mips16.s | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/mips/mixed-mips16.s b/binutils/testsuite/binutils-all/mips/mixed-mips16.s new file mode 100644 index 0000000..338022c --- /dev/null +++ b/binutils/testsuite/binutils-all/mips/mixed-mips16.s @@ -0,0 +1,34 @@ + .section .text.foo, "ax", @progbits + .set nomips16 + .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 mips16 + .globl bar + .ent bar +bar: + addiu $sp, -32 + sw $ra, 28($sp) + jal baz + lw $a3, 28($sp) + addiu $sp, 32 + jr $a3 + .end bar + +# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... + .align 2 + .space 8 |