提交 07645dee 编写于 作者: A Andy Polyakov

Apply "better safe than sorry" approach after addressing sporadic SEGV in

bn_sub_words to the rest of the sparcv8plus.S.
上级 c52c82ff
...@@ -162,10 +162,14 @@ ...@@ -162,10 +162,14 @@
* BN_ULONG w; * BN_ULONG w;
*/ */
bn_mul_add_words: bn_mul_add_words:
sra %o2,%g0,%o2 ! signx %o2
brgz,a %o2,.L_bn_mul_add_words_proceed brgz,a %o2,.L_bn_mul_add_words_proceed
lduw [%o1],%g2 lduw [%o1],%g2
retl retl
clr %o0 clr %o0
nop
nop
nop
.L_bn_mul_add_words_proceed: .L_bn_mul_add_words_proceed:
srl %o3,%g0,%o3 ! clruw %o3 srl %o3,%g0,%o3 ! clruw %o3
...@@ -260,10 +264,14 @@ bn_mul_add_words: ...@@ -260,10 +264,14 @@ bn_mul_add_words:
* BN_ULONG w; * BN_ULONG w;
*/ */
bn_mul_words: bn_mul_words:
sra %o2,%g0,%o2 ! signx %o2
brgz,a %o2,.L_bn_mul_words_proceeed brgz,a %o2,.L_bn_mul_words_proceeed
lduw [%o1],%g2 lduw [%o1],%g2
retl retl
clr %o0 clr %o0
nop
nop
nop
.L_bn_mul_words_proceeed: .L_bn_mul_words_proceeed:
srl %o3,%g0,%o3 ! clruw %o3 srl %o3,%g0,%o3 ! clruw %o3
...@@ -344,10 +352,14 @@ bn_mul_words: ...@@ -344,10 +352,14 @@ bn_mul_words:
* int n; * int n;
*/ */
bn_sqr_words: bn_sqr_words:
sra %o2,%g0,%o2 ! signx %o2
brgz,a %o2,.L_bn_sqr_words_proceeed brgz,a %o2,.L_bn_sqr_words_proceeed
lduw [%o1],%g2 lduw [%o1],%g2
retl retl
clr %o0 clr %o0
nop
nop
nop
.L_bn_sqr_words_proceeed: .L_bn_sqr_words_proceeed:
andcc %o2,-4,%g0 andcc %o2,-4,%g0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册