From 8301245a5ef72d3daefc8fffb5a53d7220bb0a05 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 14 Jun 2014 16:03:06 +0200 Subject: [PATCH] aesni-sha256-x86_64.pl: add missing rex in shaext. PR: 3405 (cherry picked from commit 91a6bf80f8af5fcafececc443e7fbc7981af127b) --- crypto/aes/asm/aesni-sha256-x86_64.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.25.1