Got it. Thanks. I will try it with the trunk version. On Wed, Jan 20, 2016 at 1:36 PM, Tim Northover <t.p.northover at gmail.com> wrote:> Hi Zhi, > On 20 January 2016 at 13:33, zhi chen <zchenhn at gmail.com> wrote: > > Thanks for your response. The attached is the .bc file after my pass. I > > could generate the assembly with -mcpu=skx but not with -mcpu=core-avx2. > > Could you please take a look? BTW, I am using LLVM-3.7. > > It seems to compile fine on trunk, so it looks like someone has > already fixed the bug. > > Tim. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/50229eef/attachment.html>
Hi Tim, I got the following error when I used llc -O3 -mcpu=skx to generate the assembly for the attached bitcode: 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. Is it also a bug or do I miss something for avx-512 comparison? Best, Zhi On Wed, Jan 20, 2016 at 1:39 PM, zhi chen <zchenhn at gmail.com> wrote:> Got it. Thanks. I will try it with the trunk version. > > On Wed, Jan 20, 2016 at 1:36 PM, Tim Northover <t.p.northover at gmail.com> > wrote: > >> Hi Zhi, >> On 20 January 2016 at 13:33, zhi chen <zchenhn at gmail.com> wrote: >> > Thanks for your response. The attached is the .bc file after my pass. I >> > could generate the assembly with -mcpu=skx but not with -mcpu=core-avx2. >> > Could you please take a look? BTW, I am using LLVM-3.7. >> >> It seems to compile fine on trunk, so it looks like someone has >> already fixed the bug. >> >> Tim. >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/dd1d65f0/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ao_opt.bc Type: application/octet-stream Size: 33460 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/dd1d65f0/attachment.obj>
Tim Northover via llvm-dev
2016-Jan-21 02:22 UTC
[llvm-dev] error of using GATHER intrinsic
On 20 January 2016 at 15:46, zhi chen <zchenhn at gmail.com> wrote:> Is it also a bug or do I miss something for avx-512 comparison?It's almost certainly a bug in LLVM, though it's difficult to be sure with such a big .bc file. Your best bet is to reduce it down to the smallest .bc file you can and report a bug. Cheers. Tim.