<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 - x86_64 AsmPrinter crashes when dealing with vbroadcastq"
   href="https://bugs.llvm.org/show_bug.cgi?id=43952">43952</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>x86_64 AsmPrinter crashes when dealing with vbroadcastq
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>simonas+llvm.org@kazlauskas.me
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>define void @x() unnamed_addr #0 {
start:
  tail call void asm sideeffect inteldialect "vpbroadcastq  zmm0{k1}, $0",
"m,~{dirflag},~{fpsr},~{flags}"(i64 123) #1
  ret void
}

crashes with

Stack dump:
0.      Program arguments: /opt/compiler-explorer/clang-trunk/bin/llc -o
./output.s -x86-asm-syntax=intel <source> 
1.      Running pass 'Function Pass Manager' on module '<source>'.
2.      Running pass 'X86 Assembly Printer' on function '@x'
 #0 0x0000561429ed57fa llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x236d7fa)
 #1 0x0000561429ed3594 llvm::sys::RunSignalHandlers()
(/opt/compiler-explorer/clang-trunk/bin/llc+0x236b594)
 #2 0x0000561429ed36d2 SignalHandler(int)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x236b6d2)
 #3 0x00007f0e2dc6a890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x0000561429333454
llvm::AsmPrinter::GetBlockAddressSymbol(llvm::BlockAddress const*) const
(/opt/compiler-explorer/clang-trunk/bin/llc+0x17cb454)
 #5 0x0000561428d3a57b
llvm::X86AsmPrinter::PrintIntelMemReference(llvm::MachineInstr const*, unsigned
int, llvm::raw_ostream&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x11d257b)
 #6 0x0000561428d3ac80
llvm::X86AsmPrinter::PrintAsmMemoryOperand(llvm::MachineInstr const*, unsigned
int, char const*, llvm::raw_ostream&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x11d2c80)
 #7 0x0000561429344c49 llvm::AsmPrinter::EmitInlineAsm(llvm::MachineInstr
const*) const (/opt/compiler-explorer/clang-trunk/bin/llc+0x17dcc49)
 #8 0x00005614293400eb llvm::AsmPrinter::EmitFunctionBody()
(/opt/compiler-explorer/clang-trunk/bin/llc+0x17d80eb)
 #9 0x0000561428d37dbf
llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x11cfdbf)
#10 0x000056142950ca20
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x19a4a20)
#11 0x000056142985ba1f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1cf3a1f)
#12 0x000056142985c1f1 llvm::FPPassManager::runOnModule(llvm::Module&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1cf41f1)
#13 0x000056142985c5f1 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1cf45f1)
#14 0x000056142826c3e4 main
(/opt/compiler-explorer/clang-trunk/bin/llc+0x7043e4)
#15 0x00007f0e2cb28b97 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b97)
#16 0x00005614282e81fa _start
(/opt/compiler-explorer/clang-trunk/bin/llc+0x7801fa)
Compiler returned: 255</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>