提交 2e51557b 编写于 作者: A Andy Polyakov

sha/asm/sha{256|512}-armv4.pl: harmonize thumb2 support with the rest.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 3aab9c40
...@@ -254,7 +254,7 @@ for($i=0;$i<16;$i++) { &BODY_00_15($i,@V); unshift(@V,pop(@V)); } ...@@ -254,7 +254,7 @@ for($i=0;$i<16;$i++) { &BODY_00_15($i,@V); unshift(@V,pop(@V)); }
$code.=".Lrounds_16_xx:\n"; $code.=".Lrounds_16_xx:\n";
for (;$i<32;$i++) { &BODY_16_XX($i,@V); unshift(@V,pop(@V)); } for (;$i<32;$i++) { &BODY_16_XX($i,@V); unshift(@V,pop(@V)); }
$code.=<<___; $code.=<<___;
#if __ARM_ARCH__>=7 #ifdef __thumb2__
ite eq @ Thumb2 thing, sanity check in ARM ite eq @ Thumb2 thing, sanity check in ARM
#endif #endif
ldreq $t3,[sp,#16*4] @ pull ctx ldreq $t3,[sp,#16*4] @ pull ctx
......
...@@ -157,7 +157,7 @@ $code.=<<___; ...@@ -157,7 +157,7 @@ $code.=<<___;
teq $t0,#$magic teq $t0,#$magic
ldr $t3,[sp,#$Coff+0] @ c.lo ldr $t3,[sp,#$Coff+0] @ c.lo
#if __ARM_ARCH__>=7 #ifdef __thumb2__
it eq @ Thumb2 thing, sanity check in ARM it eq @ Thumb2 thing, sanity check in ARM
#endif #endif
orreq $Ktbl,$Ktbl,#1 orreq $Ktbl,$Ktbl,#1
...@@ -411,7 +411,7 @@ $code.=<<___; ...@@ -411,7 +411,7 @@ $code.=<<___;
___ ___
&BODY_00_15(0x17); &BODY_00_15(0x17);
$code.=<<___; $code.=<<___;
#if __ARM_ARCH__>=7 #ifdef __thumb2__
ittt eq @ Thumb2 thing, sanity check in ARM ittt eq @ Thumb2 thing, sanity check in ARM
#endif #endif
ldreq $t0,[sp,#`$Xoff+8*(16-1)`+0] ldreq $t0,[sp,#`$Xoff+8*(16-1)`+0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册