[spu, commit] Enable TImode vs. float conversion routines in libgcc
Joseph S. Myers
joseph@codesourcery.com
Thu Dec 16 20:07:00 GMT 2010
On Thu, 16 Dec 2010, Ulrich Weigand wrote:
> To fix this, the patch below adds TImode conversion routines to
> libgcc, using the existing LIB2_SIDITI_CONV_FUNC mechanism.
It would seem a good idea to enable testing of these functions as well.
fp-int-convert.h contains logic also present in a few other places in the
testsuite.
/* Not all platforms support TImode integers; logic as in
gcc.dg/titype-1.c. */
#if (defined(__LP64__) && !defined(__hppa__)) || defined(_WIN64)
typedef int TItype __attribute__ ((mode (TI)));
typedef unsigned int UTItype __attribute__ ((mode (TI)));
#else
typedef long TItype;
typedef unsigned long UTItype;
#endif
If this target now supports TImode properly, perhaps that logic needs
updating in whatever places have it to enable TImode for this target.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list