<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 - PowerPC64: Code built with -mcpu=power9 hits select issue"
   href="https://bugs.llvm.org/show_bug.cgi?id=33808">33808</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PowerPC64: Code built with -mcpu=power9 hits select issue
          </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>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>anton@samba.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>echristo@gmail.com, hfinkel@anl.gov, kit.barton@gmail.com, llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm hitting an error with the following test case:

typedef struct {
        short b, c, d, e;
} f;
char g;
f *h;
int i;
void j(void)
{
        short k;
        for (; i; i++) {
                h->b = h->c = h->d = k = 257 * g;
                h->e = k;
                h++;
        }
}

# clang -O2 -mcpu=power9 test.i

fatal error: error in backend: Cannot select: 0x127a99d10: v8i16 = BUILD_VECTOR
Constant:i32<257>, Constant:i32<257>, Constant:i32<257>, Constant:i32<257>,
Constant:i32<257>, Constant:i32<257>, Constant:i32<257>,
      Constant:i32<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
  0x127a99c40: i32 = Constant<257>
In function: j
clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (git://github.com/llvm-mirror/clang.git
3c1756a95139610e837bfd6c992d45950f18db75)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
40d67727c7971b006a0ccd28a2f8992e22b9ea26)
Target: powerpc64le-unknown-linux-gnu</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>