Thanks. Should work for me <br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 4:34 PM, Frits van Bommel <span dir="ltr"><<a href="mailto:fvbommel@wxs.nl">fvbommel@wxs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">aparna kotha wrote:<br>
> Hi all:<br>
><br>
> I need an instruction that can convert decimal values into floating<br>
> point numbers.<br>
><br>
> i.e. say I have a decimal number 1110794174 (== 42355FBE in hex ) and<br>
> (== 45.3435 as a float)<br>
><br>
> essentially the mantissa and exponent representation needs to be used.<br>
><br>
><br>
> Is there any way of doing  this in llvm?<br>
<br>
</div>I think you're looking for "bitcast i32 1110794174 to float"<br>
<div><div></div><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> -- Aparna<br>