[LLVMdev] Cannot Select ConstantFP on x86

Chris Lattner clattner at apple.com
Thu Sep 25 17:12:22 PDT 2008


On Sep 24, 2008, at 5:11 PM, David Greene wrote:

> I just ran into this today with x86-64:
>
> Cannot yet select: 0x3cbc180: f64 = ConstantFP <1>
>
> As far as I can tell, DAGCombiner comes along and sees an sint_to_fp  
> of the
> constant 1 and hapilly folds it into a ConstantFP<1>.  ISel then  
> blows up
> because there's no pattern for it.
>
> Does this look familiar to anyone?  I don't see any relevant bugs in  
> the
> database.

Do you have a testcase?  It sounds like something that would be easy  
to fix.

-Chris



More information about the llvm-dev mailing list