x86_64 ABI: Pass <1 x double> in memory. This is arguably wrong, but
matches gcc 4.2 (not llvm-gcc).

llvm-svn: 63413
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 21eccdc..cf4f60e 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -521,10 +521,13 @@
   } else if (const VectorType *VT = Ty->getAsVectorType()) {
     uint64_t Size = Context.getTypeSize(VT);
     if (Size == 64) {
-      // FIXME: For some reason, gcc appears to be treating <1 x
-      // double> as INTEGER; this seems wrong, but we will match for
-      // now (icc rejects <1 x double>, so...).
-      Lo = (VT->getElementType() == Context.DoubleTy) ? Integer : SSE;
+      // gcc passes <1 x double> in memory.
+      if (VT->getElementType() == Context.DoubleTy) {
+        Lo = Memory;
+        return;
+      }
+
+      Lo = Integer;
 
       // If this type crosses an eightbyte boundary, it should be
       // split.