<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 - clang crashing on __builtin_assume"
   href="https://bugs.llvm.org/show_bug.cgi?id=40940">40940</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashing on __builtin_assume
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21556" name="attach_21556" title="bugpoint reduction">attachment 21556</a> <a href="attachment.cgi?id=21556&action=edit" title="bugpoint reduction">[details]</a></span>
bugpoint reduction

Clang-8 crash somewhere along computeKnownBits.
Compile with -O -mssse3:

typedef char            __v16qi __attribute__((__vector_size__(16)));
typedef long long       __m128i __attribute__((__vector_size__(16)));
typedef long long       int64_t;

void expand_p6(__m128i *in, __m128i *out)
{
        *out = __builtin_ia32_pshufb128(*in, (__v16qi){ 0,1,2,3,4,5,-1,-1,
6,7,8,9,10,11,-1,-1 });
}

int64_t extract_p6(__m128i *in)
{
        union { __m128i m; int64_t i[2]; } t;

        expand_p6(in, &t.m);
        __builtin_assume(!(t.i[0] >> 48));
        return t.i[0];
}</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>