[llvm-bugs] [Bug 31340] New: [PowerPC] POWER9 vector constant generation issue

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 10 16:58:53 PST 2016


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

            Bug ID: 31340
           Summary: [PowerPC] POWER9 vector constant generation issue
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: anton at samba.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following test case:

int a, b, c;

void d(void) {
        for (; c; c++) {
                char *e = (char *)&a;
                *e |= 200;
                b ^= 0 == 0;
        }
}

built with the following options:

# clang -O2 -mcpu=power9

fails with:

fatal error: error in backend: Cannot select: 0x1001d4faa98: v16i8 =
BUILD_VECTOR Constant:i32<200>, Constant:i32<200>, Constant:i32<200>,
Constant:i32<200>, Constant:i32<200>, Constant:i32<200>, Constant:i32<200>,
      Constant:i32<200>, Constant:i32<200>, Constant:i32<200>,
Constant:i32<200>, Constant:i32<200>, Constant:i32<200>, Constant:i32<200>,
Constant:i32<200>, Constant:i32<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>
  0x1001d4fd6f0: i32 = Constant<200>

-- 
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/20161211/7020562e/attachment.html>


More information about the llvm-bugs mailing list