[llvm-commits] [patch] fp128 sint_to_fp folding fix

Tim Northover Tim.Northover at arm.com
Mon Jan 7 09:08:47 PST 2013


On Monday 07 Jan 2013 16:58:19 Duncan Sands wrote:
> Hi Tim,
> 
> > This patch fixes the constant folding of sint_to_fp when applied to fp128
> > type. Previously the APFloat was created as a PPC128, which is obviously
> > not appropriate here.
> 
> sorry for being dense, but it's not obvious to me: how do you know a PPC128
> isn't wanted here?

Very good point, thanks. When I made the change, the immediately preceding 
line was "if (VT == MVT::ppcf128) break;". Obviously that's no longer there; I 
think I must have messed up a merge somewhere along the way.

I'll make sure the updated patch gets this correct in both cases. Do you have 
an opinion on the default being PPC/IEEE?

Cheers.

Tim.





More information about the llvm-commits mailing list