Add TARGET_SINGLE_FLOAT check.

From-SVN: r147104
This commit is contained in:
Michael Eager 2009-05-04 15:48:59 +00:00 committed by Michael Eager
parent ffef121932
commit d083fbba42
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-04 Michael Eager <eager@eagercon.com>
* config/rs6000/rs6000.c (rs6000_libcall_value): Add
TARGET_SINGLE_FLOAT check.
2009-05-04 Michael Eager <eager@eagercon.com>
* config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.

View File

@ -22630,7 +22630,8 @@ rs6000_libcall_value (enum machine_mode mode)
/* _Decimal128 must use an even/odd register pair. */
regno = (mode == TDmode) ? FP_ARG_RETURN + 1 : FP_ARG_RETURN;
else if (SCALAR_FLOAT_MODE_P (mode)
&& TARGET_HARD_FLOAT && TARGET_FPRS)
&& TARGET_HARD_FLOAT && TARGET_FPRS
&& ((TARGET_SINGLE_FLOAT && mode == SFmode) || TARGET_DOUBLE_FLOAT))
regno = FP_ARG_RETURN;
else if (ALTIVEC_VECTOR_MODE (mode)
&& TARGET_ALTIVEC && TARGET_ALTIVEC_ABI)