diff gen/tocall.cpp @ 949:b2d27ddf8f45

changes to get the naked asm stuff working for x64
author wilsonk@ubuntu
date Tue, 10 Feb 2009 08:02:25 -0700
parents 03d7c4aac654
children f31b29eb6980
line wrap: on
line diff
--- a/gen/tocall.cpp	Sun Feb 08 21:44:46 2009 +0100
+++ b/gen/tocall.cpp	Tue Feb 10 08:02:25 2009 -0700
@@ -464,7 +464,7 @@
     LLValue* retllval = (retinptr) ? args[0] : call->get();
 
     // swap real/imag parts on a x87
-    if (global.params.cpu == ARCHx86 && tf->nextOf()->toBasetype()->iscomplex())
+    if ((global.params.cpu == ARCHx86 || global.params.cpu == ARCHx86_64) && tf->nextOf()->toBasetype()->iscomplex())
     {
         retllval = DtoAggrPairSwap(retllval);
     }