<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 - llvm-mc-7 crashes on various cmpps instructions."
   href="https://bugs.llvm.org/show_bug.cgi?id=42146">42146</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-mc-7 crashes on various cmpps instructions.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>llvmc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hgreving@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To reproduce:

First example:

echo '0x62 0xf1 0x7c 0x0f 0xc2 0xc9 0x25'  | /usr/bin/llvm-mc-7 -disassemble
-triple=x86_64
[..]
        .text
        vcmppd  $80, $Stack dump:
0.      Program arguments: /usr/bin/llvm-mc-7 -disassemble -triple=x86_64 
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f47d6509c3f]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f47d6508170]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(+0x9d3f52)[0x7f47d6509f52]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f47d592a0c0]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZNK4llvm6MCExpr5printERNS_11raw_ostreamEPKNS_9MCAsmInfoEb+0x4d)[0x7f47d721fced]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter12printOperandEPKNS_6MCInstEjRNS_11raw_ostreamE+0x19d)[0x7f47d7eed56d]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm20X86InstPrinterCommon19printOptionalSegRegEPKNS_6MCInstEjRNS_11raw_ostreamE+0x1e)[0x7f47d7ef4f6e]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter17printMemReferenceEPKNS_6MCInstEjRNS_11raw_ostreamE+0x9e)[0x7f47d7eede2e]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter16printInstructionEPKNS_6MCInstERNS_11raw_ostreamE+0x6cb)[0x7f47d7eec19b]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter9printInstEPKNS_6MCInstERNS_11raw_ostreamENS_9StringRefERKNS_15MCSubtargetInfoE+0xb0)[0x7f47d7eedd00]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(+0x16d002d)[0x7f47d720602d]
/usr/bin/llvm-mc-7[0x410ab7]
/usr/bin/llvm-mc-7[0x40bdd7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f47d4cf92b1]
/usr/bin/llvm-mc-7[0x409d7a]
Segmentation fault

Second example:

echo '0x62 0xf1 0x7c 0x2f 0xc2 0xc9 0x25' | /usr/bin/llvm-mc-7 -disassemble
-triple=x86_64
        .text
        vcmppd  $32, $Stack dump:
0.      Program arguments: /usr/bin/llvm-mc-7 -disassemble -triple=x86_64 
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7fe52660cc3f]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7fe52660b170]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(+0x9d3f52)[0x7fe52660cf52]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7fe525a2d0c0]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZNK4llvm6MCExpr5printERNS_11raw_ostreamEPKNS_9MCAsmInfoEb+0x4d)[0x7fe527322ced]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter12printOperandEPKNS_6MCInstEjRNS_11raw_ostreamE+0x19d)[0x7fe527ff056d]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm20X86InstPrinterCommon19printOptionalSegRegEPKNS_6MCInstEjRNS_11raw_ostreamE+0x1e)[0x7fe527ff7f6e]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter17printMemReferenceEPKNS_6MCInstEjRNS_11raw_ostreamE+0x9e)[0x7fe527ff0e2e]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter16printInstructionEPKNS_6MCInstERNS_11raw_ostreamE+0x6cb)[0x7fe527fef19b]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(_ZN4llvm17X86ATTInstPrinter9printInstEPKNS_6MCInstERNS_11raw_ostreamENS_9StringRefERKNS_15MCSubtargetInfoE+0xb0)[0x7fe527ff0d00]
/usr/lib/x86_64-linux-gnu/libLLVM-7.so.1(+0x16d002d)[0x7fe52730902d]
/usr/bin/llvm-mc-7[0x410ab7]
/usr/bin/llvm-mc-7[0x40bdd7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fe524dfc2b1]
/usr/bin/llvm-mc-7[0x409d7a]
Segmentation fault</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>