From 5bdd5d692c2d464acd1bd4e1c6cb2d71c31fcaf4 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Mon, 9 Jan 2017 00:27:48 +0200 Subject: [PATCH 3/8] Switch to using r10 for OPENSSL_ia32cap_P+4. NFC --- crypto/sha/asm/sha1-mb-x86_64.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/sha/asm/sha1-mb-x86_64.pl b/crypto/sha/asm/sha1-mb-x86_64.pl index 2f6b35f..fc62abd 100644 --- a/crypto/sha/asm/sha1-mb-x86_64.pl +++ b/crypto/sha/asm/sha1-mb-x86_64.pl @@ -363,12 +363,12 @@ $code.=<<___; .type sha1_multi_block,\@function,3 .align 32 sha1_multi_block: - mov OPENSSL_ia32cap_P+4(%rip),%rcx - bt \$61,%rcx # check SHA bit + mov OPENSSL_ia32cap_P+4(%rip),%r10 + bt \$61,%r10 # check SHA bit jc _shaext_shortcut ___ $code.=<<___ if ($avx); - test \$`1<<28`,%ecx + test \$`1<<28`,%r10d jnz _avx_shortcut ___ $code.=<<___; -- 2.11.0