From 7b1497ebca7d8beba2cbb5b533e4dd661b47bcc0 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Mon, 9 Jan 2017 00:30:14 +0200 Subject: [PATCH 5/8] Switch to using r10 for OPENSSL_ia32cap_P+4. NFC. --- crypto/sha/asm/sha256-mb-x86_64.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/sha/asm/sha256-mb-x86_64.pl b/crypto/sha/asm/sha256-mb-x86_64.pl index b8a77c7..7d5fa2e 100644 --- a/crypto/sha/asm/sha256-mb-x86_64.pl +++ b/crypto/sha/asm/sha256-mb-x86_64.pl @@ -244,12 +244,12 @@ $code.=<<___; .type sha256_multi_block,\@function,3 .align 32 sha256_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