diff options
author | Andy Polyakov <appro@openssl.org> | 2008-01-12 11:29:45 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-01-12 11:29:45 +0000 |
commit | a078befcbef26abe2798504c81a787ea0967ba5d (patch) | |
tree | 2dc2d91b6a0a5506fd05e44d6c1e33ac31671b45 /crypto/perlasm | |
parent | f12797a447ba622177f0ef67d73cec744db9592a (diff) |
rc4-x86_64 portability fix.
Diffstat (limited to 'crypto/perlasm')
-rwxr-xr-x | crypto/perlasm/x86_64-xlate.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 19d372556f..14b6e35b85 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -82,12 +82,12 @@ my $current_function; $line = substr($line,@+[0]); $line =~ s/^\s+//; undef $self->{sz}; - if ($self->{op} =~ /(movz)b.*/) { # movz is pain... + if ($self->{op} =~ /^(movz)b.*/) { # movz is pain... $self->{op} = $1; $self->{sz} = "b"; } elsif ($self->{op} =~ /call/) { $self->{sz} = "" - } elsif ($self->{op} =~ /([a-z]{3,})([qlwb])/) { + } elsif ($self->{op} =~ /([a-z]{3,})([qlwb])$/) { $self->{op} = $1; $self->{sz} = $2; } @@ -113,7 +113,7 @@ my $current_function; "$self->{op}$self->{sz}"; } } else { - $self->{op} =~ s/movz/movzx/; + $self->{op} =~ s/^movz/movzx/; if ($self->{op} eq "ret") { $self->{op} = ""; if ($current_function->{abi} eq "svr4") { |