Mercurial > projects > ldc
comparison gen/tocall.cpp @ 950:f31b29eb6980
Revert return value swapping on x86_64
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Wed, 11 Feb 2009 08:32:33 -0700 |
parents | b2d27ddf8f45 |
children | 2667e3a145be |
comparison
equal
deleted
inserted
replaced
949:b2d27ddf8f45 | 950:f31b29eb6980 |
---|---|
462 | 462 |
463 // get return value | 463 // get return value |
464 LLValue* retllval = (retinptr) ? args[0] : call->get(); | 464 LLValue* retllval = (retinptr) ? args[0] : call->get(); |
465 | 465 |
466 // swap real/imag parts on a x87 | 466 // swap real/imag parts on a x87 |
467 if ((global.params.cpu == ARCHx86 || global.params.cpu == ARCHx86_64) && tf->nextOf()->toBasetype()->iscomplex()) | 467 if (global.params.cpu == ARCHx86 && tf->nextOf()->toBasetype()->iscomplex()) |
468 { | 468 { |
469 retllval = DtoAggrPairSwap(retllval); | 469 retllval = DtoAggrPairSwap(retllval); |
470 } | 470 } |
471 | 471 |
472 // repaint the type if necessary | 472 // repaint the type if necessary |