[LLVMdev] Int1 to Double Type Conversion
Nyx
mcheva at cs.mcgill.ca
Fri Jun 5 14:15:37 PDT 2009
Hello,
I would like to know if there is an instruction to convert values from the
Int1 type to the Double type in LLVM. I would like to achieve the equivalent
of casting a bool value to a double value in C++. Doing the simple
CreateSIToFP or CreateUIToFP does not work, it throws an assertion ("invalid
cast"). I simply want to avoid branching it's not necessary. What's the
simplest way to achieve this?
Thank you for your time,
- Max
--
View this message in context: http://www.nabble.com/Int1-to-Double-Type-Conversion-tp23895625p23895625.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev
mailing list