From e3af0d041ea79d580683b864b7c3d66a936bebce Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 18 Jul 2007 20:25:17 +0000 Subject: [PATCH] Fix masm type-casting problem in SSE2 code. --- crypto/perlasm/x86ms.pl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crypto/perlasm/x86ms.pl b/crypto/perlasm/x86ms.pl index 82538a9a9a..cdaa337bbf 100644 --- a/crypto/perlasm/x86ms.pl +++ b/crypto/perlasm/x86ms.pl @@ -204,16 +204,17 @@ sub main'pand { &out2("pand",@_); } sub out2 { local($name,$p1,$p2)=@_; - local($l,$t); + local($l,$t,$line); - push(@out,"\t$name\t"); + $line="\t$name\t"; $t=&conv($p1).","; $l=length($t); - push(@out,$t); + $line.="$t"; $l=4-($l+9)/8; - push(@out,"\t" x $l); - push(@out,&conv($p2)); - push(@out,"\n"); + $line.="\t" x $l; + $line.=&conv($p2); + if ($line=~/\bxmm[0-7]\b/i) { $line=~s/\b[A-Z]+WORD PTR/XMMWORD PTR/i; } + push(@out,$line."\n"); } sub out0 -- 2.25.1