From: Andy Polyakov Date: Mon, 13 May 2013 14:06:25 +0000 (+0200) Subject: x86_64-xlate.pl: minor size/performance improvement. X-Git-Tag: master-post-reformat~1318 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=22de0e6583b7f8764e383cf818db45863281eeec;p=oweals%2Fopenssl.git x86_64-xlate.pl: minor size/performance improvement. --- diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 444a1f6177..d44afe1f5c 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -253,6 +253,11 @@ my %globals; $self->{label} =~ s/([0-9]+\s*[\*\/\%]\s*[0-9]+)/eval($1)/eg; $self->{label} =~ s/([0-9]+)/$1<<32>>32/eg; + if (!$self->{label} && $self->{index} && $self->{scale}==1 && + $self->{base} =~ /(rbp|r13)/) { + $self->{base} = $self->{index}; $self->{index} = $1; + } + if ($gas) { $self->{label} =~ s/^___imp_/__imp__/ if ($flavour eq "mingw64");