<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - WebGL water demo crashes LLVM"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66331">66331</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>WebGL water demo crashes LLVM
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>greg@chown.ath.cx
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/R600
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=81647" name="attach_81647" title="Dump with R600_DEBUG=ps,vs,fs">attachment 81647</a> <a href="attachment.cgi?id=81647&action=edit" title="Dump with R600_DEBUG=ps,vs,fs">[details]</a></span>
Dump with R600_DEBUG=ps,vs,fs

The WebGL demo <a href="http://madebyevan.com/webgl-water/">http://madebyevan.com/webgl-water/</a> crashes r600g with LLVM
enabled:

firefox: /home/greg/build/llvm-3.3.src/include/llvm/CodeGen/MachineInstr.h:272:
llvm::MachineOperand& llvm::MachineInstr::getOperand(unsigned int): Assertion
`i < getNumOperands() && "getOperand() out of range!"' failed.
Stack dump:
0.    Running pass 'Function Pass Manager' on module 'tgsi'.
1.    Running pass 'R600 Emit Clause Markers Pass' on function '@main'
Aborted (core dumped)

This happens both with LLVM 3.3 and latest code from SVN. I tried to dump a
detailed log, but it actually crashes in a different place when dumping the
shaders - might be related though. Log is attached.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>