projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444ff35
)
x86_64-xlate.pl: refine sign extension logic when handling lea [from HEAD].
author
Andy Polyakov
<appro@openssl.org>
Tue, 19 Jan 2010 21:45:16 +0000
(21:45 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Tue, 19 Jan 2010 21:45:16 +0000
(21:45 +0000)
PR: 2094,2095
crypto/perlasm/x86_64-xlate.pl
patch
|
blob
|
history
diff --git
a/crypto/perlasm/x86_64-xlate.pl
b/crypto/perlasm/x86_64-xlate.pl
index e702674143ace5a1af8792e67c0c05e803daa2fb..fe348b99ad26387ed101b8ef12bc3846921b29b2 100755
(executable)
--- a/
crypto/perlasm/x86_64-xlate.pl
+++ b/
crypto/perlasm/x86_64-xlate.pl
@@
-190,8
+190,9
@@
my $current_function;
# Solaris /usr/ccs/bin/as can't handle multiplications
# in $self->{label}
use integer;
- $self->{label} =~ s/(?<![0-9a-f])(0[x0-9a-f]+)/oct($1)
<<32>>32
/egi;
+ $self->{label} =~ s/(?<![0-9a-f])(0[x0-9a-f]+)/oct($1)/egi;
$self->{label} =~ s/([0-9]+\s*[\*\/\%]\s*[0-9]+)/eval($1)/eg;
+ $self->{label} =~ s/([0-9]+)/$1<<32>>32/eg;
if (defined($self->{index})) {
sprintf "%s(%%%s,%%%s,%d)",