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:
Alex Rønne Petersen 2024-09-18 03:18:42 +02:00 committed by Rich Felker
parent 4e6c827cf4
commit bc5f816a7a
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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