aesni-sha256-x86_64.pl: add missing rex in shaext.
authorAndy Polyakov <appro@openssl.org>
Sat, 14 Jun 2014 14:03:06 +0000 (16:03 +0200)
committerAndy Polyakov <appro@openssl.org>
Sat, 14 Jun 2014 14:04:04 +0000 (16:04 +0200)
PR: 3405
(cherry picked from commit 91a6bf80f8af5fcafececc443e7fbc7981af127b)

crypto/aes/asm/aesni-sha256-x86_64.pl

index 63e27473505840403258bbc9dc9c1471ed6115fa..3ef5e13325fb0aaf718a589ed39b79c1b6224307 100644 (file)
@@ -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};