<div dir="ltr">Hi Tim,<div><br></div><div>I got the following error when I used llc -O3 -mcpu=skx to generate the assembly for the attached bitcode:</div><div><br></div><div>llc: /home/zhi/tools/llvm_3.7/llvm-3.7.1.src/lib/Target/X86/X86ISelLowering.cpp:13472: llvm::SDValue LowerIntVSETCC_AVX512(llvm::SDValue, llvm::SelectionDAG&, const llvm::X86Subtarget*): Assertion `Op0.getValueType().getVectorElementType().getSizeInBits() >= 8 && Op.getValueType().getScalarType() == MVT::i1 && "Cannot set masked compare for this operation"' failed.<br></div><div><br></div><div>Is it also a bug or do I miss something for avx-512 comparison?</div><div><br></div><div>Best,</div><div>Zhi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 1:39 PM, zhi chen <span dir="ltr"><<a href="mailto:zchenhn@gmail.com" target="_blank">zchenhn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Got it. Thanks. I will try it with the trunk version.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 1:36 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Zhi,<br>
<span>On 20 January 2016 at 13:33, zhi chen <<a href="mailto:zchenhn@gmail.com" target="_blank">zchenhn@gmail.com</a>> wrote:<br>
> Thanks for your response. The attached is the .bc file after my pass. I<br>
> could generate the assembly with -mcpu=skx but not with -mcpu=core-avx2.<br>
> Could you please take a look? BTW, I am using LLVM-3.7.<br>
<br>
</span>It seems to compile fine on trunk, so it looks like someone has<br>
already fixed the bug.<br>
<span><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>