x86_64-xlate.pl: minor size/performance improvement.

This commit is contained in:
Andy Polyakov 2013-05-13 16:06:25 +02:00
parent cd54249c21
commit 22de0e6583

View File

@ -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");