From: Andy Polyakov Date: Fri, 12 Aug 2011 21:25:23 +0000 (+0000) Subject: x86_64-xlate.pl: fix movzw [from HEAD]. X-Git-Tag: OpenSSL_1_0_1-beta1~180 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=a32bede701182587d39b5ea668343390935eab8e x86_64-xlate.pl: fix movzw [from HEAD]. --- diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 784f458714..fcb0ce0251 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -116,9 +116,9 @@ my %globals; $line = substr($line,@+[0]); $line =~ s/^\s+//; undef $self->{sz}; - if ($self->{op} =~ /^(movz)b.*/) { # movz is pain... + if ($self->{op} =~ /^(movz)x?([bw]).*/) { # movz is pain... $self->{op} = $1; - $self->{sz} = "b"; + $self->{sz} = $2; } elsif ($self->{op} =~ /call|jmp/) { $self->{sz} = ""; } elsif ($self->{op} =~ /^p/ && $' !~ /^(ush|op|insrw)/) { # SSEn