* [PATCH] mips: simplify longjmp
@ 2019-09-11 10:05 info
0 siblings, 0 replies; only message in thread
From: info @ 2019-09-11 10:05 UTC (permalink / raw)
To: musl
borrowed from the risc-v code.
OR (not ADDU) is intentional to please 74K* pipeline.
---
src/setjmp/mips/longjmp.S | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/setjmp/mips/longjmp.S b/src/setjmp/mips/longjmp.S
index fdb6c95d..c3dd54ea 100644
--- a/src/setjmp/mips/longjmp.S
+++ b/src/setjmp/mips/longjmp.S
@@ -6,11 +6,6 @@
.type longjmp,@function
_longjmp:
longjmp:
- move $2, $5
- bne $2, $0, 1f
- nop
- addu $2, $2, 1
-1:
#ifndef __mips_soft_float
lwc1 $20, 56($4)
lwc1 $21, 60($4)
@@ -36,5 +31,7 @@ longjmp:
lw $22, 32($4)
lw $23, 36($4)
lw $30, 40($4)
- jr $ra
lw $28, 44($4)
+ sltiu $2, $5, 1
+ jr $ra
+ or $2, $5, $2
\ No newline at end of file
--
2.23.0.windows.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-11 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 10:05 [PATCH] mips: simplify longjmp info
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).