Hi all, The attached LLVM assembly file fails to generate x86 code when compiled using llc. compilation command - ../llvm-build/bin/llc -filetype=asm -march=x86-64 -mcpu=core-avx2 ex4.ll The error message is, LLVM ERROR: Cannot select: t95: v8f32 = X86ISD::SUBV_BROADCAST t17 t17: v4f32,ch = load<LD16[%scevgep](tbaa=<0x4dbcd98>)> t0, t16, undef:i64 t16: i64 = add t2, Constant:i64<16> t2: i64,ch = CopyFromReg t0, Register:i64 %vreg5 t1: i64 = Register %vreg5 t15: i64 = Constant<16> t4: i64 = undef In function: _ZN10soundtouch12TDStretchSSE13calcCrossCorrEPKfS2_Rd I dug into the LLVM assembly file and found out that the error is caused by the following 2 lines (Line 89 and 90). %8 = shufflevector <4 x float> %6, <4 x float> %6, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> %9 = shufflevector <4 x float> %6, <4 x float> %7, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> Could anyone help me understand what this error is? Your help will be highly appreciated. -- Kind regards, Charith Mendis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160903/270c2df1/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ex4.ll Type: application/octet-stream Size: 46430 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160903/270c2df1/attachment.obj>
What version of llvm are you using? This test doesn't fail on my trunk build. But if you're using an older version I can try to see what changed to fix this. ~Craig On Fri, Sep 2, 2016 at 10:53 PM, Charith Mendis via llvm-dev < llvm-dev at lists.llvm.org> wrote:> > Hi all, > > The attached LLVM assembly file fails to generate x86 code when compiled > using llc. > > compilation command - ../llvm-build/bin/llc -filetype=asm -march=x86-64 > -mcpu=core-avx2 ex4.ll > > The error message is, > > LLVM ERROR: Cannot select: t95: v8f32 = X86ISD::SUBV_BROADCAST t17 > t17: v4f32,ch = load<LD16[%scevgep](tbaa=<0x4dbcd98>)> t0, t16, > undef:i64 > t16: i64 = add t2, Constant:i64<16> > t2: i64,ch = CopyFromReg t0, Register:i64 %vreg5 > t1: i64 = Register %vreg5 > t15: i64 = Constant<16> > t4: i64 = undef > In function: _ZN10soundtouch12TDStretchSSE13calcCrossCorrEPKfS2_Rd > > > I dug into the LLVM assembly file and found out that the error is caused > by the following 2 lines (Line 89 and 90). > > %8 = shufflevector <4 x float> %6, <4 x float> %6, <8 x i32> <i32 0, i32 > 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> > %9 = shufflevector <4 x float> %6, <4 x float> %7, <8 x i32> <i32 0, i32 > 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> > > Could anyone help me understand what this error is? > > Your help will be highly appreciated. > > -- > Kind regards, > Charith Mendis > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160902/68fd8d97/attachment.html>
Hi Charith, Which version of LLVM are you using? I haven't tried this, but a similar error was fixed in in r279735. Thanks, Michael On 2 September 2016 at 22:53, Charith Mendis via llvm-dev < llvm-dev at lists.llvm.org> wrote:> > Hi all, > > The attached LLVM assembly file fails to generate x86 code when compiled > using llc. > > compilation command - ../llvm-build/bin/llc -filetype=asm -march=x86-64 > -mcpu=core-avx2 ex4.ll > > The error message is, > > LLVM ERROR: Cannot select: t95: v8f32 = X86ISD::SUBV_BROADCAST t17 > t17: v4f32,ch = load<LD16[%scevgep](tbaa=<0x4dbcd98>)> t0, t16, > undef:i64 > t16: i64 = add t2, Constant:i64<16> > t2: i64,ch = CopyFromReg t0, Register:i64 %vreg5 > t1: i64 = Register %vreg5 > t15: i64 = Constant<16> > t4: i64 = undef > In function: _ZN10soundtouch12TDStretchSSE13calcCrossCorrEPKfS2_Rd > > > I dug into the LLVM assembly file and found out that the error is caused > by the following 2 lines (Line 89 and 90). > > %8 = shufflevector <4 x float> %6, <4 x float> %6, <8 x i32> <i32 0, i32 > 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> > %9 = shufflevector <4 x float> %6, <4 x float> %7, <8 x i32> <i32 0, i32 > 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> > > Could anyone help me understand what this error is? > > Your help will be highly appreciated. > > -- > Kind regards, > Charith Mendis > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160902/325e0eb8/attachment.html>
I am using r275888. Was there an easy fix for this? I forked this version to a git repo and developing on it. On Sat, Sep 3, 2016 at 2:09 AM, Craig Topper <craig.topper at gmail.com> wrote:> What version of llvm are you using? This test doesn't fail on my trunk > build. But if you're using an older version I can try to see what changed > to fix this. > > ~Craig > > On Fri, Sep 2, 2016 at 10:53 PM, Charith Mendis via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> >> Hi all, >> >> The attached LLVM assembly file fails to generate x86 code when compiled >> using llc. >> >> compilation command - ../llvm-build/bin/llc -filetype=asm -march=x86-64 >> -mcpu=core-avx2 ex4.ll >> >> The error message is, >> >> LLVM ERROR: Cannot select: t95: v8f32 = X86ISD::SUBV_BROADCAST t17 >> t17: v4f32,ch = load<LD16[%scevgep](tbaa=<0x4dbcd98>)> t0, t16, >> undef:i64 >> t16: i64 = add t2, Constant:i64<16> >> t2: i64,ch = CopyFromReg t0, Register:i64 %vreg5 >> t1: i64 = Register %vreg5 >> t15: i64 = Constant<16> >> t4: i64 = undef >> In function: _ZN10soundtouch12TDStretchSSE13calcCrossCorrEPKfS2_Rd >> >> >> I dug into the LLVM assembly file and found out that the error is caused >> by the following 2 lines (Line 89 and 90). >> >> %8 = shufflevector <4 x float> %6, <4 x float> %6, <8 x i32> <i32 0, i32 >> 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> >> %9 = shufflevector <4 x float> %6, <4 x float> %7, <8 x i32> <i32 0, >> i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> >> >> Could anyone help me understand what this error is? >> >> Your help will be highly appreciated. >> >> -- >> Kind regards, >> Charith Mendis >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >> >-- Kind regards, Charith Mendis FInal Year Undergraduate, Electronics and Telecommunication Dept, University of Moratuwa. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160903/46e09bb3/attachment.html>
I updated to the latest revision and now llvm does not build and quits cmake with CMake Error at cmake/modules/LLVMProcessSources.cmake:83 (message): Found unknown source file ../llvm-revec/lib/CodeGen/MachineFunctionAnalysis.cpp Please update ../llvm-revec/lib/CodeGen/CMakeLists.txt Thanks On Sat, Sep 3, 2016 at 2:09 AM, Craig Topper <craig.topper at gmail.com> wrote:> What version of llvm are you using? This test doesn't fail on my trunk > build. But if you're using an older version I can try to see what changed > to fix this. > > ~Craig > > On Fri, Sep 2, 2016 at 10:53 PM, Charith Mendis via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> >> Hi all, >> >> The attached LLVM assembly file fails to generate x86 code when compiled >> using llc. >> >> compilation command - ../llvm-build/bin/llc -filetype=asm -march=x86-64 >> -mcpu=core-avx2 ex4.ll >> >> The error message is, >> >> LLVM ERROR: Cannot select: t95: v8f32 = X86ISD::SUBV_BROADCAST t17 >> t17: v4f32,ch = load<LD16[%scevgep](tbaa=<0x4dbcd98>)> t0, t16, >> undef:i64 >> t16: i64 = add t2, Constant:i64<16> >> t2: i64,ch = CopyFromReg t0, Register:i64 %vreg5 >> t1: i64 = Register %vreg5 >> t15: i64 = Constant<16> >> t4: i64 = undef >> In function: _ZN10soundtouch12TDStretchSSE13calcCrossCorrEPKfS2_Rd >> >> >> I dug into the LLVM assembly file and found out that the error is caused >> by the following 2 lines (Line 89 and 90). >> >> %8 = shufflevector <4 x float> %6, <4 x float> %6, <8 x i32> <i32 0, i32 >> 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> >> %9 = shufflevector <4 x float> %6, <4 x float> %7, <8 x i32> <i32 0, >> i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7> >> >> Could anyone help me understand what this error is? >> >> Your help will be highly appreciated. >> >> -- >> Kind regards, >> Charith Mendis >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >> >-- Kind regards, Charith Mendis FInal Year Undergraduate, Electronics and Telecommunication Dept, University of Moratuwa. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160903/4c4e7a0d/attachment.html>