<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 - [PowerPC]verification error after If-converter"
   href="https://bugs.llvm.org/show_bug.cgi?id=36411">36411</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PowerPC]verification error after If-converter
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>junbuml@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While working on some experiment patch, observed an error from
-verify-machineinstrs in PPC after If-Converter. It should be easily
reproducible :  llc -verify-machineinstrs < test.ll


target datalayout =
"E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"

define i32 @test(i32 %v, i32* %S) nounwind {
entry:
  br i1 undef, label %Exit, label %Header

Header:
  %call = call i32 @f1()
  switch i32 %call, label %BB0[
    i32 -5, label %BB0
    i32 -16, label %BB0
    i32 -25, label %Exit.loopexit
  ]

BB0:
  br i1 false, label %Exit, label %Header

Exit.loopexit:
  br label %Exit

Exit:
  %p = phi i32[0, %entry], [1, %BB0], [2, %Exit.loopexit]
  ret i32 %p
}

declare i32 @f1() nounwind</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>