[llvm-bugs] [Bug 36530] New: Assertion `Subtarget.hasAVX2() && "256-bit insert/extract only available in AVX2"' failed.
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 26 17:33:37 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36530
Bug ID: 36530
Summary: Assertion `Subtarget.hasAVX2() && "256-bit
insert/extract 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 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:10292: virtual
void llvm::X86InstrInfo::setExecutionDomain(llvm::MachineInstr&, unsigned int)
const: Assertion `Subtarget.hasAVX2() && "256-bit insert/extract 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 0x00007f16c601a390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00007f16c4d85428 gsignal
/build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007f16c4d8702a abort /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007f16c4d7dbd7 __assert_fail_base
/build/glibc-Cl5G7W/glibc-2.23/assert/assert.c:92:0
#7 0x00007f16c4d7dc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00000000017f70da
llvm::X86InstrInfo::setExecutionDomain(llvm::MachineInstr&, unsigned int) const
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x17f70da)
#9 0x0000000001ac9172 llvm::ExecutionDomainFix::collapse(llvm::DomainValue*,
unsigned int) (/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1ac9172)
#10 0x0000000001ac9294 llvm::ExecutionDomainFix::release(llvm::DomainValue*)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1ac9294)
#11 0x0000000001acb881
llvm::ExecutionDomainFix::runOnMachineFunction(llvm::MachineFunction&) [clone
.part.266] (/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1acb881)
#12 0x0000000001acbe23
llvm::ExecutionDomainFix::runOnMachineFunction(llvm::MachineFunction&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1acbe23)
#13 0x0000000001b68825
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1b68825)
#14 0x0000000001e8e163 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1e8e163)
#15 0x0000000001e8e20c llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1e8e20c)
#16 0x0000000001e8eaaf llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x1e8eaaf)
#17 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)
#18 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)
#19 0x0000000002d03bfb
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2d03bfb)
#20 0x0000000002f2d272 clang::ParseAST(clang::Sema&, bool, bool)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2f2d272)
#21 0x0000000002d0323f clang::CodeGenAction::ExecuteAction()
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2d0323f)
#22 0x0000000002896216 clang::FrontendAction::Execute()
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x2896216)
#23 0x000000000286b61e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x286b61e)
#24 0x000000000292a972
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0x292a972)
#25 0x0000000000c8f268 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0xc8f268)
#26 0x0000000000c13b71 main
(/home/suhua/compilers/trunk/root-clang/bin/clang-7.0+0xc13b71)
#27 0x00007f16c4d70830 __libc_start_main
/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#28 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/bug14 -ferror-limit 19
-fmessage-length 140 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/abc-9d2201.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-7261b7.c
clang-7.0: note: diagnostic msg: /tmp/abc-7261b7.sh
clang-7.0: note: diagnostic msg:
********************
$ cat abc.c
void fn1() {
register int c __asm("xmm16") = 4;
asm volatile("" : "+v"(c));
}
--
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/629d5f72/attachment-0001.html>
More information about the llvm-bugs
mailing list