This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] SPU float format: Round towards zero


On Mon, 4 Aug 2008, Ulrich Weigand wrote:

> In addition, it turned out that the SPU back-end didn't always follow
> round-towards-zero itself: for DImode to SFmode conversions, the default
> libgcc routine was used (which implements round-to-nearest).  The patch
> adds inline implementations of those conversions that round towards zero,
> as already specified in the SPU Language Extensions specification.

If the C libgcc function is not correct for this target, you should stop 
it being built - and to support existing objects that may refer to it, you 
should provide an SPU-specific implementation (whether in C or assembly).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]