bn/asm/x86_64-mont5.pl: comply with Win64 ABI.
authorAndy Polyakov <appro@openssl.org>
Tue, 3 Dec 2013 22:59:55 +0000 (23:59 +0100)
committerAndy Polyakov <appro@openssl.org>
Tue, 3 Dec 2013 23:03:46 +0000 (00:03 +0100)
PR: 3189
Submitted by: Oscar Ciurana
(cherry picked from commit c5d5f5bd0fe8b2313bec844c0f80f3d49562bfa8)

crypto/bn/asm/x86_64-mont5.pl

index 8f8dc5a59798aa88ac14deb90cf59a00a151a4c9..dae0fe24531802feac8aba289c693d8f89193307 100755 (executable)
@@ -901,8 +901,8 @@ $code.=<<___;
        jnz     .Lgather
 ___
 $code.=<<___ if ($win64);
-       movaps  %xmm6,(%rsp)
-       movaps  %xmm7,0x10(%rsp)
+       movaps  (%rsp),%xmm6
+       movaps  0x10(%rsp),%xmm7
        lea     0x28(%rsp),%rsp
 ___
 $code.=<<___;