<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 - llvm-stress causes type legalizer to crash"
   href="https://bugs.llvm.org/show_bug.cgi?id=32275">32275</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-stress causes type legalizer to crash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>paulsson@linux.vnet.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18094" name="attach_18094" title="test case">attachment 18094</a> <a href="attachment.cgi?id=18094&action=edit" title="test case">[details]</a></span>
test case

Optimized lowered selection DAG: BB#4 'autogen_SD29574:CF34'
electionDAG has 46 nodes:
  t0: ch = EntryToken
    t17: v16i8,ch = CopyFromReg t0, Register:v16i8 %vreg13
  t18: v4i8 = extract_subvector t17, Constant:i32<0>
  t36: v2i64,ch = CopyFromReg t0, Register:v2i64 %vreg5
  t38: v2i64,ch = CopyFromReg t36:1, Register:v2i64 %vreg6
  t40: v2i64,ch = CopyFromReg t38:1, Register:v2i64 %vreg7
  t42: v2i64,ch = CopyFromReg t40:1, Register:v2i64 %vreg8
  t44: v2i64,ch = CopyFromReg t42:1, Register:v2i64 %vreg9
  t46: v2i64,ch = CopyFromReg t44:1, Register:v2i64 %vreg10
  t48: v2i64,ch = CopyFromReg t46:1, Register:v2i64 %vreg11
          t2: v8i16 = BUILD_VECTOR Constant:i16<0>, Constant:i16<0>,
Constant:i16<0>, Constant:i16<0>, Constant:i16<0>, Constant:i16<0>, Constant:i
16<0>, Constant:i16<0>
        t5: ch = CopyToReg t0, Register:v8i16 %vreg16, t2
          t59: v4i32 = any_extend t18
        t22: ch = CopyToReg t0, Register:v4i32 %vreg17, t59
            t50: v2i64,ch = CopyFromReg t48:1, Register:v2i64 %vreg12
          t51: v16i64 = concat_vectors t36, t38, t40, t42, t44, t46, t48, t50
          t31: i64,ch = CopyFromReg t0, Register:i64 %vreg4
        t52: ch = store<ST128[%Sl9]> t0, t51, t31, undef:i64
      t55: ch = TokenFactor t5, t22, t52
          t19: v4i1 = truncate t18
            t26: v4i32,ch = CopyFromReg t0, Register:v4i32 %vreg14
          t27: v4i1 = truncate t26
        t29: v4i1 = setcc t19, t27, setlt:ch
      t53: i1 = extract_vector_elt t29, Constant:i32<3>
    t56: ch = brcond t55, t53, BasicBlock:ch<CF34 0x55692e8>
  t58: ch = br t56, BasicBlock:ch<CF36 0x5569398>

DAGTypeLegalizer::PromoteIntRes_TRUNCATE(t19) crashes, as it should be widened
on SystemZ, and this method won't do that.

Why does this end up here? 

bin/llc -mtriple=s390x-linux-gnu -mcpu=z13</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>