mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
x86_64-xlate.pl: minor size/performance improvement.
This commit is contained in:
parent
cd54249c21
commit
22de0e6583
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user