[LLVMdev] Int1 to Double Type Conversion

Nyx mcheva at cs.mcgill.ca
Sat Jun 6 07:33:22 PDT 2009


I'm simply using the IRBuilder, I call CreateUIToFP with the current value
(llvm::Type::Int1Ty type), and pass the llvm::Type::DoubleTy as the
destination type. This fails.

I notice that your assembly has "zeroext" in the function parameter. Perhaps
I need to create a "ZExt" instruction to extend the Int1 to an Int32 or
something?
-- 
View this message in context: http://www.nabble.com/Int1-to-Double-Type-Conversion-tp23895625p23902249.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list