aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/perlasm/x86masm.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2009-04-26 17:58:58 +0000
committerAndy Polyakov <appro@openssl.org>2009-04-26 17:58:58 +0000
commit6c8b9259fc0ddd429e4ae4c4ad90356e91a669ff (patch)
tree204b822f08925887f8570792e94d7a7961280ad5 /crypto/perlasm/x86masm.pl
parent75d448dde4bbde588bd242df53e48d22cb530f6b (diff)
downloadopenssl-6c8b9259fc0ddd429e4ae4c4ad90356e91a669ff.tar.gz
AESNI perlasm update.
Diffstat (limited to 'crypto/perlasm/x86masm.pl')
-rw-r--r--crypto/perlasm/x86masm.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/perlasm/x86masm.pl b/crypto/perlasm/x86masm.pl
index 3365114cd0..2e2b3152c3 100644
--- a/crypto/perlasm/x86masm.pl
+++ b/crypto/perlasm/x86masm.pl
@@ -16,9 +16,11 @@ sub ::generic
# fix hexadecimal constants
for (@arg) { s/0x([0-9a-f]+)/0$1h/oi; }
- # 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);
+ if ($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);
+ }
&::emit($opcode,@arg);
1;