real.c (spu_single_format): New variable.
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 12 Aug 2008 13:13:38 +0000 (13:13 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 12 Aug 2008 13:13:38 +0000 (13:13 +0000)
commit88f091f5aec9a1d5a9deebe5cd743dcab2760d84
treeb25b470542b27fbf4f61b6021a4e127af758b12b
parent4230d0fe3258a221706f791c04683bffb982e4f3
real.c (spu_single_format): New variable.

ChangeLog:

* real.c (spu_single_format): New variable.
* real.h (spu_single_format): Declare.

* config/spu/spu.c (spu_override_options): Install SFmode format.
(spu_split_immediate): Use integer mode to operate on pieces of
floating-point values in all cases.

* config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.

testsuite/ChangeLog:

* gcc.c-torture/execute/ieee/inf-2.c (testf): Skip on the SPU.

Co-Authored-By: Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
From-SVN: r139013
gcc/ChangeLog
gcc/config/spu/spu.c
gcc/config/spu/spu.md
gcc/real.c
gcc/real.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/ieee/inf-2.c