aesni-sha256-x86_64.pl: add missing rex in shaext.

PR: 3405
This commit is contained in:
Andy Polyakov 2014-06-14 16:03:06 +02:00
parent c9cf29cca2
commit 91a6bf80f8

View 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};