From: Andy Polyakov Date: Sat, 14 Jun 2014 14:03:06 +0000 (+0200) Subject: aesni-sha256-x86_64.pl: add missing rex in shaext. X-Git-Tag: OpenSSL_1_0_2-beta2~121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8301245a5ef72d3daefc8fffb5a53d7220bb0a05;p=oweals%2Fopenssl.git aesni-sha256-x86_64.pl: add missing rex in shaext. PR: 3405 (cherry picked from commit 91a6bf80f8af5fcafececc443e7fbc7981af127b) --- diff --git a/crypto/aes/asm/aesni-sha256-x86_64.pl b/crypto/aes/asm/aesni-sha256-x86_64.pl index 63e2747350..3ef5e13325 100644 --- a/crypto/aes/asm/aesni-sha256-x86_64.pl +++ b/crypto/aes/asm/aesni-sha256-x86_64.pl @@ -1684,7 +1684,7 @@ sub rex { sub sha256op38 { my $instr = shift; - if (defined($opcodelet{$instr}) && @_[0] =~ /%xmm([0-7]),\s*%xmm([0-7])/) { + if (defined($opcodelet{$instr}) && @_[0] =~ /%xmm([0-9]+),\s*%xmm([0-9]+)/) { my @opcode=(0x0f,0x38); rex(\@opcode,$2,$1); push @opcode,$opcodelet{$instr};