<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr"><div class="gmail_default" style>Please file a bug for these types of issues.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Dec 21, 2012 at 1:49 PM, Akira Hatanaka <span dir="ltr"><<a href="mailto:ahatanak@gmail.com" target="_blank">ahatanak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am seeing an assert when I compile the attached program with clang:<br><div class="gmail_quote"><br>$ clang -fno-strict-aliasing -target mips64el-unknown-linux -O3 -fomit-frame-pointer -S test1.c -o test1.ll -emit-llvm<div class="im">
<br>
<br>It asserts when LoopVectorize.cpp:506 is executed. It looks like it
is complaining because it is trying to zero-extend an i64 (type
Count->getType() returns i64) to an i32 (IdxTy).<br>
<br>if (Count->getType() != IdxTy) {<br> // The exit count can be of pointer type. Convert it to the correct<br> // integer type.<br> if (ExitCount->getType()->isPointerTy())<br> Count = CastInst::CreatePointerCast(Count, IdxTy, "<a href="http://ptrcnt.to.int" target="_blank">ptrcnt.to.int</a>", Loc);<br>
else<br> Count = CastInst::CreateZExtOrBitCast(Count, IdxTy, "zext.cnt", Loc); // <= this line<br> }<br><br> <br>
</div></div>
<br>_______________________________________________<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></div></div>