Reviewed by David Edehlson.
From-SVN: r86135
+2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
+
+ * config/rs6000/rs6000.c (rs6000_function_value): Check for
+ altivec mode for altivec return register.
+
2004-08-17 David Edelsohn <edelsohn@gnu.org>
Revert 2004-08-16 Stan Shebs <shebs@apple.com>
&& targetm.calls.split_complex_arg)
return rs6000_complex_function_value (mode);
else if (TREE_CODE (valtype) == VECTOR_TYPE
- && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI)
+ && TARGET_ALTIVEC && TARGET_ALTIVEC_ABI
+ && ALTIVEC_VECTOR_MODE(mode))
regno = ALTIVEC_ARG_RETURN;
else
regno = GP_ARG_RETURN;