[llvm-bugs] [Bug 33808] New: PowerPC64: Code built with -mcpu=power9 hits select issue
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 16 04:44:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33808
Bug ID: 33808
Summary: PowerPC64: Code built with -mcpu=power9 hits select
issue
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: anton at samba.org
CC: echristo at gmail.com, hfinkel at anl.gov,
kit.barton at gmail.com, llvm-bugs at lists.llvm.org,
nemanja.i.ibm at gmail.com
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)
(https://github.com/llvm-mirror/llvm.git
40d67727c7971b006a0ccd28a2f8992e22b9ea26)
Target: powerpc64le-unknown-linux-gnu
--
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/20170716/d76dc773/attachment-0001.html>
More information about the llvm-bugs
mailing list