<div>Thanks Rafael,</div>
<div> </div>
<div>Hello All,</div>
<div> </div>
<div>Could anyone please comment, which part in selectiondag need to be understood/modified to fix this.</div>
<div> </div>
<div>Regards,</div>
<div>Rajesh </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Nov 21, 2012 at 2:38 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">I reported <a href="http://llvm.org/pr14393" target="_blank">http://llvm.org/pr14393</a> to track it.<br><br>On 20 November 2012 05:18, rajesh viswabramana<br>
<div>
<div class="h5"><<a href="mailto:viswabramana.rajesh@gmail.com">viswabramana.rajesh@gmail.com</a>> wrote:<br>> Hi,<br>><br>> Clang crashes when below snippet of code is compiled (used latest svn<br>> version)<br>
><br>> double func1()<br>> {<br>> double x ;<br>> asm ( "" : "=r"(x) : "0"(x) );<br>> return x;<br>> }<br>><br>>> clang -S test1.c<br>>> Assertion failed: (PartVT.isInteger() || PartVT == MVT::x86mmx) &&<br>
>> ValueVT.isInteger() && "Unknown mismatch!", file<br>>> ..\..\..\..\lib\CodeGen\SelectionDAG\SelectionDAGBuilder.cpp, line 378<br>><br>><br>> Compilation sucessful, If data type passed to inline asm is of float<br>
> float x ;<br>> asm ( "" : "=r"(x) : "0"(x) );<br>><br>> (or) If double data type passed to float type of registers<br>> double x;<br>> asm ( "" : "=t"(x) : "0"(x) );<br>
><br>> It seems currently LLVM (selectionDAG) doesn't handle double to general<br>> purpose register storing.<br>> Could anyone please comment on this.<br>><br>> Regards,<br>> Rajesh<br>><br>><br>
><br></div></div>> _______________________________________________<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>><br></blockquote></div><br>