Commit d0b2079e by Fariborz Jahanian Committed by Fariborz Jahanian

Check for Altivec mode when returning altivec register.

Reviewed by David Edehlson.

From-SVN: r86135
parent feb3dc8b
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>
......
......@@ -17047,7 +17047,8 @@ rs6000_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
&& 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment