SH optimized software floating point routines

Christian Bruel christian.bruel@st.com
Wed Jul 21 11:25:00 GMT 2010


Hi Kaz,

Kaz Kojima wrote:

> 
> BTW, it looks that softfp __unord?f2 routines check signaling NaNs
> only.  This makes __builtin_isnan return false for quiet NaNs for
> which current fp-bit ones return true when -mieee enabled.  Perhaps
> that change of behavior might be OK for software FP.

I use the attached patch to handle the QNaNs in the assembly solf-fp. 
Need to be updated for trunk (and update the dates in changelogs). Will do.

Cheers

Christian

2010-04-20  Christian Bruel  <christian.bruel@st.com>

	* gcc.dg/builtins-nan.c: New test.

2010-04-20  Christian Bruel  <christian.bruel@st.com>

	* config/sh/ieee-754-df.S (nedf2f): Don't check Qbit for NaNs.
	* config/sh/ieee-754-sf.S (nesf2f): Likewise.
	* config/sh/sh.md (cmpunsf_i1, cmpundf_i1): Likewise. Clobber R2.




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qnans.patch
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20100721/22308749/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buitins-nan.c
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20100721/22308749/attachment.c>


More information about the Gcc mailing list