From 272ba8701715aa8a9dd8f2b9eabd9bcd2e3356a6 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 12 Aug 2011 21:24:19 +0000 Subject: [PATCH] x86_64-xlate.pl: fix movzw. --- crypto/perlasm/x86_64-xlate.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1