From: Andy Polyakov Date: Sun, 21 Oct 2007 14:15:40 +0000 (+0000) Subject: Make it possible for older masm to compile sse2 modules. X-Git-Tag: OpenSSL_0_9_8h~126 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f761514e140ccf62af69c0d00e9233ef4f18b1a;p=oweals%2Fopenssl.git Make it possible for older masm to compile sse2 modules. PR: 1592 --- diff --git a/crypto/perlasm/x86ms.pl b/crypto/perlasm/x86ms.pl index 4badd1fc1c..ebf38adb1a 100644 --- a/crypto/perlasm/x86ms.pl +++ b/crypto/perlasm/x86ms.pl @@ -339,8 +339,17 @@ EOF sub main'file_end { # try to detect if SSE2 or MMX extensions were used... - if (grep {/\b[x]?mm[0-7]\b,/i} @out) { - grep {s/\.[3-7]86/\.686\n\t\.XMM/} @out; + my $xmmheader=<<___; +.686 +.XMM +IF \@Version LT 800 +XMMWORD STRUCT 16 + DQ 2 dup (?) +XMMWORD ENDS +ENDIF +___ + if (grep {/\b[x]?mm[0-7]\b/i} @out) { + grep {s/\.[3-7]86/$xmmheader/} @out; } push(@out,"_TEXT\$ ENDS\n"); push(@out,"END\n");