[llvm-bugs] [Bug 31191] New: PowerPC64: fatal error with -mcpu=power9

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 28 01:26:14 PST 2016


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

            Bug ID: 31191
           Summary: PowerPC64: fatal error with -mcpu=power9
           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: amehsan at ca.ibm.com, hfinkel at anl.gov,
                    kbarton at ca.ibm.com, llvm-bugs at lists.llvm.org,
                    nemanja.i.ibm at gmail.com
    Classification: Unclassified

The following test case:

int a, b, c;

void d(void)
{
        b = 8;

        for (; b <= 27; ++b) {
                char *e = (char *)&a;
                c &= ++*e;
        }
}

when built with:

clang -Wall -Os -mcpu=power9 -c testcase.c

fails with:

fatal error: error in backend: Cannot select: 0x10018a9cfa0: v16i8 =
BUILD_VECTOR Constant:i32<1>, Constant:i32<2>, Constant:i32<3>,
      Constant:i32<4>, undef:i32, undef:i32, undef:i32, undef:i32, undef:i32,
undef:i32, undef:i32, undef:i32, undef:i32, undef:i32, undef:i32,
      undef:i32
  0x10018a9c718: i32 = Constant<1>
  0x10018a9ce00: i32 = Constant<2>
  0x10018a9c9f0: i32 = Constant<3>
  0x10018a9d0d8: i32 = Constant<4>
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
  0x10018a9d140: i32 = undef
In function: d
clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.0 (git://github.com/llvm-mirror/clang.git
b3eb023bef514b684fcb374ae674c251e48514fd)
(https://github.com/llvm-mirror/llvm.git
9fdd2a607c03e086c571c54018ab87a4d40798e5)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/anton/llvm.install/bin
clang-3.9: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.9: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.9: note: diagnostic msg: /tmp/testcase-ca18a3.c
clang-3.9: note: diagnostic msg: /tmp/testcase-ca18a3.sh
clang-3.9: note: diagnostic msg: 

********************

-- 
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/20161128/48bab720/attachment.html>


More information about the llvm-bugs mailing list