diff options
author | Andy Polyakov <appro@openssl.org> | 2011-12-15 22:20:05 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-12-15 22:20:05 +0000 |
commit | 0e1467a64c2368d267b0eebb4190f95a7196c9c9 (patch) | |
tree | 577e22c3045fb3892afcda22ff097fbc373a8d59 /crypto/perlasm/x86masm.pl | |
parent | f2fc30751e60f5877607eeef3ad1ad1c0fdfc430 (diff) |
vpaes-x86.pl: revert previous commit and solve the problem through x86masm.pl.
PR: 2657
Diffstat (limited to 'crypto/perlasm/x86masm.pl')
-rw-r--r-- | crypto/perlasm/x86masm.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/perlasm/x86masm.pl b/crypto/perlasm/x86masm.pl index ee446de5c1..328ca2e23f 100644 --- a/crypto/perlasm/x86masm.pl +++ b/crypto/perlasm/x86masm.pl @@ -16,7 +16,9 @@ sub ::generic # fix hexadecimal constants for (@arg) { s/(?<![\w\$\.])0x([0-9a-f]+)/0$1h/oi; } - if ($opcode !~ /movq/) + if ($opcode =~ /lea/ && @arg[1] =~ s/.*PTR\s+([^\[]+)$/$1/) # no [] + { $opcode="mov"; } + elsif ($opcode !~ /movq/) { # fix xmm references $arg[0] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[1]=~/\bxmm[0-7]\b/i); $arg[1] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[0]=~/\bxmm[0-7]\b/i); |