This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [spu, commit] Enable TImode vs. float conversion routines in libgcc
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Dec 2010 19:44:20 +0000 (UTC)
- Subject: Re: [spu, commit] Enable TImode vs. float conversion routines in libgcc
- References: <201012161813.oBGIDnaw012011@d06av02.portsmouth.uk.ibm.com>
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