<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion `Subtarget.hasAVX2() && "256-bit insert/extract only available in AVX2"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=36530">36530</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `Subtarget.hasAVX2() && "256-bit insert/extract only available in AVX2"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>shlei930@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$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/<a class="bz_bug_link 
          bz_status_VERIFIED  bz_closed"
   title="VERIFIED FIXED - Need a "helper" script"
   href="show_bug.cgi?id=14">bug14</a> -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
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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));
}</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>