[cfe-commits] r63283 - /cfe/trunk/lib/CodeGen/CGCall.cpp
Daniel Dunbar
daniel at zuster.org
Wed Jan 28 23:22:20 PST 2009
Author: ddunbar
Date: Thu Jan 29 01:22:20 2009
New Revision: 63283
URL: http://llvm.org/viewvc/llvm-project?rev=63283&view=rev
Log:
x86_64 ABI: Classify _Complex ints as integer.
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=63283&r1=63282&r2=63283&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Jan 29 01:22:20 2009
@@ -471,7 +471,13 @@
} else if (const ComplexType *CT = Ty->getAsComplexType()) {
QualType ET = CT->getElementType();
- if (ET == Context.FloatTy)
+ if (ET->isIntegerType()) {
+ unsigned Size = Context.getTypeSize(Ty);
+ if (Size <= 64)
+ Lo = Integer;
+ else if (Size <= 128)
+ Lo = Hi = Integer;
+ } else if (ET == Context.FloatTy)
Lo = SSE;
else if (ET == Context.DoubleTy)
Lo = Hi = SSE;
More information about the cfe-commits
mailing list