[llvm-bugs] [Bug 47916] New: fatal error: error in backend: Cannot select: t184: v2i64 = PPCISD::SCALAR_TO_VECTOR_PERMUTED t107

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 20 06:50:50 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47916

            Bug ID: 47916
           Summary: fatal error: error in backend: Cannot select: t184:
                    v2i64 = PPCISD::SCALAR_TO_VECTOR_PERMUTED t107
           Product: libraries
           Version: 11.0
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: pkubaj at anongoth.pl
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

FreeBSD head, LLVM 11.0.0, powerpc64le

Release blocker, because it breaks bootstrapping openjdk8 with default flags.

Test case:
class a;
class b {
public:
  a *operator->();
};
class c {
public:
  void m_fn1(int d) { e = d; }
  void f(int d) { g = d; }
  int e;
  int g;
};
class a {
public:
  c *h();
};
b i;
void j(unsigned d, int *k, unsigned *l) {
  c *m = i->h();
  while (d--) {
    m->m_fn1(*k++);
    m->f(*l++);
    m++;
  }
}

Compile with:
/usr/bin/clang++ -cc1 -triple powerpc64le-unknown-freebsd13.0 -emit-obj
-target-cpu pwr7 -O2 -vectorize-loops classFileParser-e4fcc9.cpp

Result:
fatal error: error in backend: Cannot select: t184: v2i64 =
PPCISD::SCALAR_TO_VECTOR_PERMUTED t107
  t107: i64,ch = load<(load 8 from %ir.scevgep108, align 4, !tbaa !2,
!alias.scope !6)> t0, t14, undef:i64
    t14: i64 = add t9, Constant:i64<8>
      t9: i64 = add t4, t8
        t4: i64,ch = CopyFromReg t0, Register:i64 %50
          t3: i64 = Register %50
        t8: i64,ch = CopyFromReg t0, Register:i64 %8
          t7: i64 = Register %8
      t13: i64 = Constant<8>
    t11: i64 = undef
In function: _Z1jjPiPj

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201020/05c4aca2/attachment.html>


More information about the llvm-bugs mailing list