diff options
author | Andy Polyakov <appro@openssl.org> | 2013-07-31 23:50:15 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2013-07-31 23:52:21 +0200 |
commit | 4e09add6f85be6c448a6c31aa09a67db54654ff7 (patch) | |
tree | 6cfea6c3d3ed2d104b61c68d0525e004e48ddc00 | |
parent | 355a6236be439a2eee10c7f1283074ecb7d2ad5f (diff) |
crypto/sha/asm/sha*-x86_64.pl: comply with Win64 ABI.
(cherry picked from commit 006784378db1a8957fcf587ee1deaa5cf2ae76c7)
-rwxr-xr-x | crypto/sha/asm/sha1-x86_64.pl | 4 | ||||
-rwxr-xr-x | crypto/sha/asm/sha512-x86_64.pl | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/crypto/sha/asm/sha1-x86_64.pl b/crypto/sha/asm/sha1-x86_64.pl index ff94ac5f18..2c89b1feea 100755 --- a/crypto/sha/asm/sha1-x86_64.pl +++ b/crypto/sha/asm/sha1-x86_64.pl @@ -806,7 +806,7 @@ $code.=<<___; mov %rdi,$ctx # reassigned argument mov %rsi,$inp # reassigned argument mov %rdx,$num # reassigned argument - vzeroall + vzeroupper shl \$6,$num add $inp,$num @@ -1096,7 +1096,7 @@ ___ &Xtail_avx(\&body_20_39); $code.=<<___; - vzeroall + vzeroupper add 0($ctx),$A # update context add 4($ctx),@T[0] diff --git a/crypto/sha/asm/sha512-x86_64.pl b/crypto/sha/asm/sha512-x86_64.pl index d1d20914a5..8070d09c94 100755 --- a/crypto/sha/asm/sha512-x86_64.pl +++ b/crypto/sha/asm/sha512-x86_64.pl @@ -948,7 +948,7 @@ ___ $code.=<<___; .Lprologue_xop: - vzeroall + vzeroupper mov $SZ*0($ctx),$A mov $SZ*1($ctx),$B mov $SZ*2($ctx),$C @@ -1260,7 +1260,7 @@ $code.=<<___; jb .Lloop_xop mov $_rsp,%rsi - vzeroall + vzeroupper ___ $code.=<<___ if ($win64); movaps 16*$SZ+32(%rsp),%xmm6 @@ -1324,7 +1324,7 @@ ___ $code.=<<___; .Lprologue_avx: - vzeroall + vzeroupper mov $SZ*0($ctx),$A mov $SZ*1($ctx),$B mov $SZ*2($ctx),$C @@ -1568,7 +1568,7 @@ $code.=<<___; jb .Lloop_avx mov $_rsp,%rsi - vzeroall + vzeroupper ___ $code.=<<___ if ($win64); movaps 16*$SZ+32(%rsp),%xmm6 @@ -1676,7 +1676,7 @@ ___ $code.=<<___; .Lprologue_avx2: - vzeroall + vzeroupper sub \$-16*$SZ,$inp # inp++, size optimization mov $SZ*0($ctx),$A mov $inp,%r12 # borrow $T1 @@ -1942,7 +1942,7 @@ $code.=<<___; .Ldone_avx2: lea ($Tbl),%rsp mov $_rsp,%rsi - vzeroall + vzeroupper ___ $code.=<<___ if ($win64); movaps 16*$SZ+32(%rsp),%xmm6 |