<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 - error in backend: Cannot select: 0x55ce75ede940: ch = PPCISD::STBRX<ST6[%177](align=1)>"
   href="https://bugs.llvm.org/show_bug.cgi?id=35402">35402</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error in backend: Cannot select: 0x55ce75ede940: ch = PPCISD::STBRX<ST6[%177](align=1)>
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>joel@jms.id.au
          </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=19463" name="attach_19463" title="clang command line">attachment 19463</a> <a href="attachment.cgi?id=19463&action=edit" title="clang command line">[details]</a></span>
clang command line

I am building the Linux kernel for PowerPC, cross compiling from x86.

clang version 5.0.0-4 (tags/RELEASE_500/final)

The bug reproduces with clang version 6.0.0 (trunk 318937).


  CC [M]  drivers/net/ethernet/mellanox/mlx4/resource_tracker.o
fatal error: error in backend: Cannot select: 0x55ce75ede940: ch =
PPCISD::STBRX<ST6[%177](align=1)>
      0x55ce75f74b28, 0x55ce75edf090, 0x55ce75ed94c8, ValueType:ch:i48
  0x55ce75edf090: i32 = truncate 0x55ce75e9b398
    0x55ce75e9b398: i64 = srl 0x55ce75ed8ca8, Constant:i32<16>
      0x55ce75ed8ca8: i64,ch = CopyFromReg 0x55ce744f44e8, Register:i64 %vreg26
        0x55ce75f9bd08: i64 = Register %vreg26
      0x55ce75f74238: i32 = Constant<16>
  0x55ce75ed94c8: i64 = add 0x55ce75edeb48, Constant:i64<10>
    0x55ce75edeb48: i64,ch = CopyFromReg 0x55ce744f44e8, Register:i64 %vreg20
      0x55ce75f74f38: i64 = Register %vreg20
    0x55ce75e9b330: i64 = Constant<10>
In function: mlx4_QP_FLOW_STEERING_ATTACH_wrapper
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 5.0.0-4 (tags/RELEASE_500/final)
Target: powerpc64le--linux-gnu
Thread model: posix</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>