2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
* libc/machine/nds32/setjmp.S: Optimize.
This commit is contained in:
parent
364f6915f8
commit
5805cb1f8c
|
@ -1,3 +1,7 @@
|
||||||
|
2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
|
||||||
|
|
||||||
|
* libc/machine/nds32/setjmp.S: Optimize.
|
||||||
|
|
||||||
2014-03-07 Corinna Vinschen <vinschen@redhat.com>
|
2014-03-07 Corinna Vinschen <vinschen@redhat.com>
|
||||||
Jeff Johnston <jjohnstn@redhat.com>
|
Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -78,10 +78,9 @@ longjmp:
|
||||||
lmw.bim $r6, [$r0], $r14, 0x0
|
lmw.bim $r6, [$r0], $r14, 0x0
|
||||||
lmw.bim $r16, [$r0], $r19, 0xf
|
lmw.bim $r16, [$r0], $r19, 0xf
|
||||||
#endif
|
#endif
|
||||||
/* If the value val is 0, 1 will be returned instead. */
|
/* Set val as return value. If the value val is 0, 1 will be returned
|
||||||
bnez $r1, 1f
|
instead. */
|
||||||
movi $r1, 1
|
movi $r0, 1
|
||||||
1:
|
cmovn $r0, $r1, $r1 /* r0=(r1!=0)? r1: r0 */
|
||||||
move $r0, $r1
|
|
||||||
ret
|
ret
|
||||||
.size longjmp, .-longjmp
|
.size longjmp, .-longjmp
|
||||||
|
|
Loading…
Reference in New Issue