<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Segfault when assembling "test [eax],dl" or "xchg ecx,[esi+0x7e]""
   href="http://llvm.org/bugs/show_bug.cgi?id=16065">16065</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault when assembling "test [eax],dl" or "xchg ecx,[esi+0x7e]"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.2
          </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>MC
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>These commands crash llvm-mc:

echo "test [eax],dl" | llvm-mc-3.2 -triple i386 -x86-asm-syntax intel
echo "xchg ecx,[esi+0x7e]" | llvm-mc-3.2 -triple i386 -x86-asm-syntax intel

Expected:
An error message.

Stack Trace:
0  libLLVM-3.2.so.1 0xb6f25898
1  libLLVM-3.2.so.1 0xb6f25f3c
2                   0xb76f3400 __kernel_sigreturn + 0
3  libLLVM-3.2.so.1 0xb6acb190 llvm::MCExpr::print(llvm::raw_ostream&) const +
64
4  libLLVM-3.2.so.1 0xb6ffabc6
llvm::X86ATTInstPrinter::printOperand(llvm::MCInst const*, unsigned int,
llvm::raw_ostream&) + 246
5  libLLVM-3.2.so.1 0xb6ffc587
llvm::X86ATTInstPrinter::printMemReference(llvm::MCInst const*, unsigned int,
llvm::raw_ostream&) + 551
6  libLLVM-3.2.so.1 0xb6ffc9d8
llvm::X86ATTInstPrinter::printInstruction(llvm::MCInst const*,
llvm::raw_ostream&) + 456
7  libLLVM-3.2.so.1 0xb6ffd7d0 llvm::X86ATTInstPrinter::printInst(llvm::MCInst
const*, llvm::raw_ostream&, llvm::StringRef) + 208
8  libLLVM-3.2.so.1 0xb6aaa5bb
9  libLLVM-3.2.so.1 0xb6ff963b
10 libLLVM-3.2.so.1 0xb6b108f3
11 libLLVM-3.2.so.1 0xb6b13deb
12 llvm-mc-3.2      0x0804c188
13 libc.so.6        0xb5eed935 __libc_start_main + 245
14 llvm-mc-3.2      0x0804caf9</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>