<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 --- - Assertion failure when compiling a non-trivial combination of simple operations on i193 integers"
   href="http://llvm.org/bugs/show_bug.cgi?id=20921">20921</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure when compiling a non-trivial combination of simple operations on i193 integers
          </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>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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jaak.randmets@cyber.ee
          </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>Created <span class=""><a href="attachment.cgi?id=13028" name="attach_13028" title="The LLVM code that crashes llc.">attachment 13028</a> <a href="attachment.cgi?id=13028&action=edit" title="The LLVM code that crashes llc.">[details]</a></span>
The LLVM code that crashes llc.

To reproduce the issue compile the attached file with "llc -O1 Bug.ll".

The assert does not happen when compiling with "-O0" or when using 192
bit-integers. Even slight modifications to the attached code tend to result in
the crash disappearing. As such I haven't managed to simplify the code any
further.

LLVM is from SVN trunk 217588. x86_64 target.
The stack trace follows:

llc:
/home/jaak/usr/src/llvm.svn/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp:1703:
virtual void (anonymous namespace)::RegReductionPQBase::remove(llvm::SUnit *):
Assertion `!Queue.empty() && "Queue is empty!"' failed.
0  libLLVM-3.6svn.so 0x00007fa7f8c7e1c5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  libLLVM-3.6svn.so 0x00007fa7f8c7ec5b
2  libpthread.so.0   0x00007fa7f84d2ed0
3  libc.so.6         0x00007fa7f72a4319 gsignal + 57
4  libc.so.6         0x00007fa7f72a5678 abort + 328
5  libc.so.6         0x00007fa7f729d486
6  libc.so.6         0x00007fa7f729d532
7  libLLVM-3.6svn.so 0x00007fa7f8d9d663
8  libLLVM-3.6svn.so 0x00007fa7f8da4d75
9  libLLVM-3.6svn.so 0x00007fa7f8da2337
10 libLLVM-3.6svn.so 0x00007fa7f8e2c5e2
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 4178
11 libLLVM-3.6svn.so 0x00007fa7f8e2aaa9
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 8553
12 libLLVM-3.6svn.so 0x00007fa7f8e27974
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1364
13 libLLVM-3.6svn.so 0x00007fa7f953a7a6
14 libLLVM-3.6svn.so 0x00007fa7f96d873c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 124
15 libLLVM-3.6svn.so 0x00007fa7f934cebb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 539
16 libLLVM-3.6svn.so 0x00007fa7f934d12b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
17 libLLVM-3.6svn.so 0x00007fa7f934d6a7
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 967
18 llc               0x000000000040ac91 main + 6193
19 libc.so.6         0x00007fa7f7290b25 __libc_start_main + 245
20 llc               0x0000000000407c01
Stack dump:
0.      Program arguments: llc -O1 Bug.ll 
1.      Running pass 'Function Pass Manager' on module 'Bug.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@func'
Aborted</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>