mirror of
git://git.musl-libc.org/musl
synced 2024-12-12 09:45:45 +00:00
mips: use preferred asm mnemomic jr for better assembler compatibility
The LLVM assembler reportedly assembles the form using the j mnemonic incorrectly (see issue 107460). The jr form is canonical and avoids this problem, so use it instead.
This commit is contained in:
parent
4e6c827cf4
commit
bc5f816a7a
@ -3,11 +3,11 @@
|
||||
.section .init
|
||||
lw $gp,24($sp)
|
||||
lw $ra,28($sp)
|
||||
j $ra
|
||||
jr $ra
|
||||
addu $sp,$sp,32
|
||||
|
||||
.section .fini
|
||||
lw $gp,24($sp)
|
||||
lw $ra,28($sp)
|
||||
j $ra
|
||||
jr $ra
|
||||
addu $sp,$sp,32
|
||||
|
@ -3,11 +3,11 @@
|
||||
.section .init
|
||||
ld $gp,16($sp)
|
||||
ld $ra,24($sp)
|
||||
j $ra
|
||||
jr $ra
|
||||
daddu $sp,$sp,32
|
||||
|
||||
.section .fini
|
||||
ld $gp,16($sp)
|
||||
ld $ra,24($sp)
|
||||
j $ra
|
||||
jr $ra
|
||||
daddu $sp,$sp,32
|
||||
|
@ -2,11 +2,11 @@
|
||||
.section .init
|
||||
ld $gp, 16($sp)
|
||||
ld $ra, 24($sp)
|
||||
j $ra
|
||||
jr $ra
|
||||
addu $sp, $sp, 32
|
||||
|
||||
.section .fini
|
||||
ld $gp, 16($sp)
|
||||
ld $ra, 24($sp)
|
||||
j $ra
|
||||
jr $ra
|
||||
addu $sp, $sp, 32
|
||||
|
Loading…
Reference in New Issue
Block a user