Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-mips-elf/jalbal.s

22 lines
305 B
ArmAsm
Raw Normal View History

2023-03-06 14:48:14 +01:00
# Test that jal gets converted to bal on the RM9000 when it is in range.
.text
.global s1
.type s1,@function
.set noreorder
s1:
jal s3
nop
jal s3
s2:
nop
.space 0x1fff8
s3:
jal s2
nop
jal s2
nop
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
.align 2
.space 8