[llvm-bugs] [Bug 36532] New: Assertion `(Subtarget.hasAVX2() || Domain < 3) && "256-bit vector operations only available in AVX2"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 26 18:29:11 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36532

            Bug ID: 36532
           Summary: Assertion `(Subtarget.hasAVX2() || Domain < 3) &&
                    "256-bit vector operations only available in AVX2"'
                    failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: shlei930 at gmail.com
                CC: llvm-bugs at lists.llvm.org

$ clang-trunk -v
clang version 7.0.0 (trunk 326083)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin

$ clang-trunk -O3 abc.c
clang-7.0:
/home/suhua/compilers/trunk/llvm/lib/Target/X86/X86InstrInfo.cpp:10287: virtual
void llvm::X86InstrInfo::setExecutionDomain(llvm::MachineInstr&, unsigned int)
const: Assertion `(Subtarget.hasAVX2() || Domain < 3) && "256-bit vector
operations only available in AVX2"' failed.
#0 0x000000000232082a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x232082a)
#1 0x000000000231e89e llvm::sys::RunSignalHandlers()
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x231e89e)
#2 0x000000000231ea02 SignalHandler(int)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x231ea02)
#3 0x00007fd4b2b7a390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00007fd4b18e5428 gsignal
/build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007fd4b18e702a abort /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007fd4b18ddbd7 __assert_fail_base
/build/glibc-Cl5G7W/glibc-2.23/assert/assert.c:92:0
#7 0x00007fd4b18ddc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00000000017f70f9
llvm::X86InstrInfo::setExecutionDomain(llvm::MachineInstr&, unsigned int) const
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x17f70f9)
#9 0x0000000001aca68a
llvm::ExecutionDomainFix::visitSoftInstr(llvm::MachineInstr*, unsigned int)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1aca68a)
#10 0x0000000001aca8e6
llvm::ExecutionDomainFix::visitInstr(llvm::MachineInstr*)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1aca8e6)
#11 0x0000000001acaceb
llvm::ExecutionDomainFix::processBasicBlock(llvm::LoopTraversal::TraversedMBBInfo
const&) (/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1acaceb)
#12 0x0000000001acb689
llvm::ExecutionDomainFix::runOnMachineFunction(llvm::MachineFunction&) [clone
.part.266] (/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1acb689)
#13 0x0000000001acbe23
llvm::ExecutionDomainFix::runOnMachineFunction(llvm::MachineFunction&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1acbe23)
#14 0x0000000001b68825
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1b68825)
#15 0x0000000001e8e163 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1e8e163)
#16 0x0000000001e8e20c llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1e8e20c)
#17 0x0000000001e8eaaf llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1e8eaaf)
#18 0x00000000024c4b36 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x24c4b36)
#19 0x00000000024c69fb clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x24c69fb)
#20 0x0000000002d03bfb
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2d03bfb)
#21 0x0000000002f2d272 clang::ParseAST(clang::Sema&, bool, bool)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2f2d272)
#22 0x0000000002d0323f clang::CodeGenAction::ExecuteAction()
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2d0323f)
#23 0x0000000002896216 clang::FrontendAction::Execute()
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2896216)
#24 0x000000000286b61e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x286b61e)
#25 0x000000000292a972
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x292a972)
#26 0x0000000000c8f268 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0xc8f268)
#27 0x0000000000c13b71 main
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0xc13b71)
#28 0x00007fd4b18d0830 __libc_start_main
/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#29 0x0000000000c89f19 _start
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0xc89f19)
Stack dump:
0.      Program arguments: /home/suhua/compilers/trunk/root-clang/bin/clang-7.0
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
abc.c -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -resource-dir
/home/suhua/compilers/trunk/root-clang/lib/clang/7.0.0 -c-isystem . -c-isystem
/usr/local/include/csmith-2.3.0/ -c-isystem
/home/suhua/media_disk/home/klee/include/klee -internal-isystem
/usr/local/include -internal-isystem
/home/suhua/compilers/trunk/root-clang/lib/clang/7.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-fdebug-compilation-dir /home/suhua/Documents/VPT/reduce/bug7 -ferror-limit 19
-fmessage-length 140 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/abc-e58785.o -x c
abc.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'abc.c'.
4.      Running pass 'X86 Execution Dependency Fix' on function '@fn1'
clang-7.0: error: unable to execute command: Aborted
clang-7.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0 (trunk 326083)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-7.0: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-7.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7.0: note: diagnostic msg: /tmp/abc-8e0999.c
clang-7.0: note: diagnostic msg: /tmp/abc-8e0999.sh
clang-7.0: note: diagnostic msg:

********************

$ cat abc.c
int b;
void fn1() {
  register long a __asm("xmm16") = b;
  asm volatile("" : "+v"(a));
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180227/89d18825/attachment-0001.html>


More information about the llvm-bugs mailing list