crypto/sha/asm/sha1-x86_64.pl: comply with Win64 ABI.
authorAndy Polyakov <appro@openssl.org>
Wed, 31 Jul 2013 21:53:49 +0000 (23:53 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 31 Jul 2013 21:53:49 +0000 (23:53 +0200)
crypto/sha/asm/sha1-x86_64.pl

index cfdc45cce6dad0ecf274e15de8b8cef1a4c9f7c5..f15c7ec39b20d9cc2c90b440a7b8ede6e9c3aae9 100755 (executable)
@@ -745,7 +745,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
@@ -1038,7 +1038,7 @@ ___
        &Xtail_avx(\&body_20_39);
 
 $code.=<<___;
-       vzeroall
+       vzeroupper
 
        add     0($ctx),$A                      # update context
        add     4($ctx),@T[0]