<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 --- - Crash in x86 instruction selection from short program"
   href="http://llvm.org/bugs/show_bug.cgi?id=16807">16807</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in x86 instruction selection from short program
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>matt@pharr.org
          </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=10992" name="attach_10992" title="test case">attachment 10992</a> <a href="attachment.cgi?id=10992&action=edit" title="test case">[details]</a></span>
test case

With top-of-tree, the attached test case hits the following bug in instruction
selection.

% llc -o - bugpoint-reduced-simplified.ll
    .section    __TEXT,__text,regular,pure_instructions
LLVM ERROR: Cannot select: 0x7ff18103de10: v16i16 = X86ISD::VSRAI
0x7ff181044210, 0x7ff18103da10 [ORD=4] [ID=49]
  0x7ff181044210: v16i16 = insert_subvector 0x7ff181044110, 0x7ff18103ce10,
0x7ff18103d410 [ORD=4] [ID=48]
    0x7ff181044110: v16i16 = insert_subvector 0x7ff181042f10, 0x7ff18103e810,
0x7ff18103ad10 [ORD=4] [ID=47]
      0x7ff181042f10: v16i16 = undef [ID=31]
      0x7ff18103e810: v8i16 = add 0x7ff18103eb10, 0x7ff18103e310 [ORD=4]
[ID=46]
        0x7ff18103eb10: v8i16 = bitcast 0x7ff18103b010 [ORD=3] [ID=39]
          0x7ff18103b010: v2i64,ch = load 0x7ff180c11d50, 0x7ff181044510,
0x7ff18103b810<LD16[ConstantPool]> [ORD=3] [ID=37]
            0x7ff181044510: i64 = X86ISD::WrapperRIP 0x7ff181044410 [ID=35]
              0x7ff181044410: i64 = TargetConstantPool<<8 x i16> <i16 1, i16 1,
i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>> 0 [ID=32]
            0x7ff18103b810: i64 = undef [ID=1]
        0x7ff18103e310: v8i16 = extract_subvector 0x7ff18103d210,
0x7ff18103ad10 [ORD=4] [ID=44]
          0x7ff18103d210: v16i16 = X86ISD::VSRLI 0x7ff18103cd10, 0x7ff18103ca10
[ORD=4] [ID=42]
            0x7ff18103cd10: v16i16 = X86ISD::VSRAI 0x7ff181044610,
0x7ff18103ca10 [ORD=4] [ID=41]
              0x7ff181044610: v16i16 = bitcast 0x7ff18103b110 [ORD=3] [ID=40]
                0x7ff18103b110: v4i64,ch = load 0x7ff180c11d50, 0x7ff181044710,
0x7ff18103b810<LD32[ConstantPool]> [ORD=3] [ID=38]
                  0x7ff181044710: i64 = X86ISD::WrapperRIP 0x7ff181044310
[ID=36]

                  0x7ff18103b810: i64 = undef [ID=1]
              0x7ff18103ca10: i32 = Constant<15> [ID=20]
            0x7ff18103ca10: i32 = Constant<15> [ID=20]
          0x7ff18103ad10: i64 = Constant<0> [ID=3]
      0x7ff18103ad10: i64 = Constant<0> [ID=3]
    0x7ff18103ce10: v8i16 = add 0x7ff18103eb10, 0x7ff18103e710 [ORD=4] [ID=45]
      0x7ff18103eb10: v8i16 = bitcast 0x7ff18103b010 [ORD=3] [ID=39]
        0x7ff18103b010: v2i64,ch = load 0x7ff180c11d50, 0x7ff181044510,
0x7ff18103b810<LD16[ConstantPool]> [ORD=3] [ID=37]
          0x7ff181044510: i64 = X86ISD::WrapperRIP 0x7ff181044410 [ID=35]
            0x7ff181044410: i64 = TargetConstantPool<<8 x i16> <i16 1, i16 1,
i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>> 0 [ID=32]
          0x7ff18103b810: i64 = undef [ID=1]
      0x7ff18103e710: v8i16 = extract_subvector 0x7ff18103d210, 0x7ff18103d410
[ORD=4] [ID=43]
        0x7ff18103d210: v16i16 = X86ISD::VSRLI 0x7ff18103cd10, 0x7ff18103ca10
[ORD=4] [ID=42]
          0x7ff18103cd10: v16i16 = X86ISD::VSRAI 0x7ff181044610, 0x7ff18103ca10
[ORD=4] [ID=41]
            0x7ff181044610: v16i16 = bitcast 0x7ff18103b110 [ORD=3] [ID=40]
              0x7ff18103b110: v4i64,ch = load 0x7ff180c11d50, 0x7ff181044710,
0x7ff18103b810<LD32[ConstantPool]> [ORD=3] [ID=38]
                0x7ff181044710: i64 = X86ISD::WrapperRIP 0x7ff181044310 [ID=36]
                  0x7ff181044310: i64 = TargetConstantPool<<16 x i16> <i16 1,
i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1,
i16 1, i16 1, i16 1, i16 1>> 0 [ID=33]
                0x7ff18103b810: i64 = undef [ID=1]
            0x7ff18103ca10: i32 = Constant<15> [ID=20]
          0x7ff18103ca10: i32 = Constant<15> [ID=20]
        0x7ff18103d410: i64 = Constant<8> [ID=12]
    0x7ff18103d410: i64 = Constant<8> [ID=12]
  0x7ff18103da10: i32 = Constant<1> [ID=21]
In function: f_fu
%</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>