<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 failure in WebAssemblyAsmPrinter"
   href="https://bugs.llvm.org/show_bug.cgi?id=34599">34599</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in WebAssemblyAsmPrinter
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>llc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>john@csquare.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Command: llc libc.so -o libc.s  (note: .so file was generated with llvm-link,
and is not a shared library)

Source file: <a href="https://github.com/JohnSully/webasm_muscl/blob/master/lib/libc.so">https://github.com/JohnSully/webasm_muscl/blob/master/lib/libc.so</a>

Output:
llc: /home/john/repos/llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp:67:
std::__cxx11::string llvm::WebAssemblyAsmPrinter::regToString(const
llvm::MachineOperand&): Assertion `WAReg != WebAssemblyFunctionInfo::UnusedReg'
failed.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x000000000221db6d (llc+0x221db6d)
#1 0x000000000221dc00 (llc+0x221dc00)
#2 0x000000000221bddb (llc+0x221bddb)
#3 0x000000000221d3d9 (llc+0x221d3d9)
#4 0x00007fa95a061390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#5 0x00007fa958ff3428 gsignal
/build/glibc-bfm8X4/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#6 0x00007fa958ff502a abort /build/glibc-bfm8X4/glibc-2.23/stdlib/abort.c:91:0
#7 0x00007fa958febbd7 __assert_fail_base
/build/glibc-bfm8X4/glibc-2.23/assert/assert.c:92:0
#8 0x00007fa958febc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#9 0x0000000000da3546 (llc+0xda3546)
#10 0x0000000000da440e (llc+0xda440e)
#11 0x000000000139c8c7 (llc+0x139c8c7)
#12 0x000000000139ce3c (llc+0x139ce3c)
#13 0x0000000001380630 (llc+0x1380630)
#14 0x0000000000da60ad (llc+0xda60ad)
#15 0x0000000000da62db (llc+0xda62db)
#16 0x0000000001606a1d (llc+0x1606a1d)
#17 0x0000000001a93324 (llc+0x1a93324)
#18 0x0000000001a934c9 (llc+0x1a934c9)
#19 0x0000000001a93851 (llc+0x1a93851)
#20 0x0000000001a93f7b (llc+0x1a93f7b)
#21 0x0000000001a94173 (llc+0x1a94173)
#22 0x0000000000d76b7c (llc+0xd76b7c)
#23 0x0000000000d752e4 (llc+0xd752e4)
#24 0x00007fa958fde830 __libc_start_main
/build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:325:0
#25 0x0000000000d72f59 (llc+0xd72f59)
Stack dump:
0.      Program arguments: llc libc.so -o libc.s
1.      Running pass 'Function Pass Manager' on module 'libc.so'.
2.      Running pass 'WebAssembly Assembly Printer' on function '@aio_suspend'
Aborted (core dumped)</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>