[cfe-commits] r112537 - in /cfe/trunk: lib/CodeGen/TargetInfo.cpp test/CodeGen/x86_32-arguments.c
Chris Lattner
sabre at nondot.org
Mon Aug 30 15:03:23 PDT 2010
Author: lattner
Date: Mon Aug 30 17:03:23 2010
New Revision: 112537
URL: http://llvm.org/viewvc/llvm-project?rev=112537&view=rev
Log:
Fix PR8029, a x86-32 ABI regression in introduced in r112211
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
cfe/trunk/test/CodeGen/x86_32-arguments.c
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=112537&r1=112536&r2=112537&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Aug 30 17:03:23 2010
@@ -598,7 +598,6 @@
(Size == 64 && VT->getNumElements() == 1))
return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(),
Size));
- return ABIArgInfo::getIndirect(0);
}
return ABIArgInfo::getDirect();
Modified: cfe/trunk/test/CodeGen/x86_32-arguments.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/x86_32-arguments.c?rev=112537&r1=112536&r2=112537&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/x86_32-arguments.c (original)
+++ cfe/trunk/test/CodeGen/x86_32-arguments.c Mon Aug 30 17:03:23 2010
@@ -221,3 +221,10 @@
// rdar://8359483
v2i16 f54(v2i16 arg) { return arg+arg; }
+
+typedef int v4i32 __attribute__((__vector_size__(16)));
+
+// CHECK: define <2 x i64> @f55(<4 x i32> %arg)
+// PR8029
+v4i32 f55(v4i32 arg) { return arg+arg; }
+
More information about the cfe-commits
mailing list