[llvm-commits] [llvm-gcc-4.2] r91452 - /llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm-target.h
Bob Wilson
bob.wilson at apple.com
Tue Dec 15 13:09:00 PST 2009
Author: bwilson
Date: Tue Dec 15 15:09:00 2009
New Revision: 91452
URL: http://llvm.org/viewvc/llvm-project?rev=91452&view=rev
Log:
ARM vectors bigger than 128bits cannot be returned in registers.
Radar 7387206.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm-target.h
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm-target.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm-target.h?rev=91452&r1=91451&r2=91452&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm-target.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm-target.h Tue Dec 15 15:09:00 2009
@@ -82,6 +82,10 @@
#define LLVM_SHOULD_NOT_USE_SHADOW_RETURN(X, CC) \
llvm_arm_should_pass_or_return_aggregate_in_regs((X), (CC))
+/* Vectors bigger than 128 are returned using sret. */
+#define LLVM_SHOULD_RETURN_VECTOR_AS_SHADOW(X, isBuiltin) \
+ (TREE_INT_CST_LOW(TYPE_SIZE(X)) > 128)
+
#endif /* LLVM_ABI_H */
#endif /* ENABLE_LLVM */
/* LLVM LOCAL end (ENTIRE FILE!) */
More information about the llvm-commits
mailing list