[llvm-bugs] [Bug 42010] New: [ppc64] After r340469, Assertion failed: (!TLI.isOperationLegalOrCustom(N->getOpcode(), WideVecVT) && "Target supports vector op, but scalar requires expansion?"), function WidenVectorResult, file LegalizeVectorTypes.cpp, line 2452
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 24 13:19:43 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42010
Bug ID: 42010
Summary: [ppc64] After r340469, Assertion failed:
(!TLI.isOperationLegalOrCustom(N->getOpcode(),
WideVecVT) && "Target supports vector op, but scalar
requires expansion?"), function WidenVectorResult,
file LegalizeVectorTypes.cpp, line 2452
Product: new-bugs
Version: 8.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dimitry at andric.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
As reported in https://bugs.freebsd.org/238082, compiling the graphics/mesa-dri
port for PowerPC64 results in:
Assertion failed: (!TLI.isOperationLegalOrCustom(N->getOpcode(), WideVecVT) &&
"Target supports vector op, but scalar requires expansion?"), function
WidenVectorResult, file lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp, line
2452.
Bisection shows this is a regression caused by
https://reviews.llvm.org/rL340469 ("[SelectionDAG] unroll unsupported vector FP
ops earlier to avoid libcalls on undef elements (bug 38527)").
Minimized test case:
// clang -cc1 -triple powerpc64-- -S -relaxed-aliasing -target-cpu ppc64 -O2
-vectorize-loops nir_constant_expressions-min.c
typedef struct {
double a[4];
} b;
int c, e;
b *d;
float truncf(float);
void f() {
for (unsigned g = 0; g < c; g++) {
double a = truncf(d[1].a[g]);
e = a;
}
}
--
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/20190524/05233409/attachment.html>
More information about the llvm-bugs
mailing list