<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 --- - ICE when generating XOP code for integer"
   href="http://llvm.org/bugs/show_bug.cgi?id=22347">22347</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ICE when generating XOP code for integer
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.5
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>joel.falcou@numscale.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>While compiling Boost.SIMD unti test on a XOP machine (see spec here
<a href="https://gist.github.com/jfalcou/7003868d2e71eba5c03a">https://gist.github.com/jfalcou/7003868d2e71eba5c03a</a>), clang-3.5 from Debian
repository ICE with the following message :

fatal error: error in backend: Cannot select: 0x8826330: v4i32 = BUILD_VECTOR
0x9bbb9d0, 0x9bbb9d0, 0x9bbb9d0, 0x9bbb9d0 [ORD=36] [ID=34]
  0x9bbb9d0: i32 = Constant<1> [ID=29]
  0x9bbb9d0: i32 = Constant<1> [ID=29]
  0x9bbb9d0: i32 = Constant<1> [ID=29]
  0x9bbb9d0: i32 = Constant<1> [ID=29]
In function: _Z24test_main_sqr_signed_intv

The boost::simd::sqr function just performs the equivalent of multiplying a
SIMD vector with itself.

The preprocessed output + .sh from clang output is 18Mb and is available here :

<a href="https://dl.dropboxusercontent.com/u/3819406/clang-xop-sqr.tgz">https://dl.dropboxusercontent.com/u/3819406/clang-xop-sqr.tgz</a></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>