<br><br><div class="gmail_quote">On 6 November 2012 14:52, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


Hi Anitha,<div><br>
<br>
On 06/11/12 10:19, Anitha Boyapati wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hi Duncan<br>
I am facing a build error about __builtin_iceil<br>
</blockquote>
<br></div>
it's surely just that dragonegg doesn't have any support for this builtin.<br></blockquote><div> </div><div>ok. Just verified that Target.cpp and x86_builtins do not have iceil support.</div><div> </div><div>I have this tricky situation - I use dragonegg generated LLVM IR as input to clang for some analysis (well it is clang++ actually). Understably,clang cribs looking at __builtin_iceil. Any idea how to resolve that as well?</div>


<div> </div><div>clang++   -O2 -march=bdver2 -mno-fma -save-temps  -mfma4 -ffp-contract=fast  -DSPEC_CPU_LP64        Compute.o ComputeList.o ComputeNonbondedUtil.o LJTable.o Molecule.o Patch.o PatchList.o ResultSet.o SimParameters.o erf.o spec_namd.o                     -o namd<br>


spec_namd.o: In function `main':<br>spec_namd.ll:(.text+0x2a3): undefined reference to `__builtin_iceil'<br></div><div> </div><div> </div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


<p>
Please open a bug report with a minimal test case</p></blockquote><div> </div><div>Will do. Thanks</div><div> </div><div>-Anitha</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


<p> </p></blockquote><div> </div><div> </div><div> </div><div> </div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">



Ciao, Duncan.<br>
<br>
 when compiled<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>
with dragonegg using -ffast-math option. My dragonegg is built with gcc-4.7.0<br>
(I am compiling namd spec benchmark here again).<br>
Any idea?<br>
g++ -march=bdver2 -save-temps -fplugin=/home/anboyapa/<u></u>install/bin/dragonegg.so<br>
-O2 -march=bdver2 -save-temps -fplugin=/home/anboyapa/<u></u>install/bin/dragonegg.so<br>
-mno-fma -mfma4 -ffast-math  -DSPEC_CPU_LP64        Compute.o ComputeList.o<br>
ComputeNonbondedUtil.o LJTable.o Molecule.o Patch.o PatchList.o ResultSet.o<br>
SimParameters.o erf.o spec_namd.o                     -o namd<br>
spec_namd.o: In function `main':<br>
spec_namd.C:(.text+0x2a3): undefined reference to `__builtin_iceil'<br>
collect2: error: ld returned 1 exit status<br>
specmake: *** [namd] Error 1<br>
<br>
<br>
On 5 November 2012 14:32, Duncan Sands <<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a><br></div><div>
<mailto:<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>>> wrote:<br>
<br>
    Hi Anitha,<br>
<br>
<br></div>
        <a href="http://llvm.org/bugs/show_bug.__cgi?id=14185" target="_blank">http://llvm.org/bugs/show_bug.<u></u>__cgi?id=14185</a><div><br>
        <<a href="http://llvm.org/bugs/show_bug.cgi?id=14185" target="_blank">http://llvm.org/bugs/show_<u></u>bug.cgi?id=14185</a>><br>
        I am stuck on analysis. Does any one have alternate suggestions on debugging<br>
        llvm? (Please refer to comments for the work done so far)<br>
<br>
<br>
    try to reduce a small standalone testcase which is an LLVM IR (.ll) file.<br>
<br>
    Ciao, Duncan.<br>
<br></div>
    ______________________________<u></u>___________________<br>
    LLVM Developers mailing list<br>
    <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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/__<u></u>mailman/listinfo/llvmdev</a><br>
    <<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a>><br>
<br>
<br>
<br><span><font color="#888888">
<br>
--<br>
/* Anitha*/<br>
<br>
</font></span></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><i style="font-family:times new roman,serif"><b> Anitha</b></i><br><br>