[llvm-bugs] [Bug 45579] New: UNREACHABLE executed at llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:5726!
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 16 12:36:43 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45579
Bug ID: 45579
Summary: UNREACHABLE executed at
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:5726!
Product: libraries
Version: 10.0
Hardware: Other
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: pkubaj at anongoth.pl
CC: llvm-bugs at lists.llvm.org
FreeBSD head, LLVM 10.0.0, powerpc, powerpcspe and powerpc64 architectures
Reduced test case:
double a(double);
template <typename> class b;
template <typename c, typename i> void operator==(i &, c);
template <> class b<double> {
public:
b(double = 0.0);
};
b<double> d;
double e;
template <class f, class g> void h(f m, g) {
b<double> j;
m == d;
double k = a(0);
j = e / 2 + (m - .5) * k - m;
}
double l() { h(.5, 0); }
Compile with:
/usr/bin/c++ -cc1 -triple powerpc-unknown-freebsd13.0 -emit-obj -ffast-math -O1
-fgnuc-version=4.2.1 Lgamma-106832.cpp
Result:
Unknown code
UNREACHABLE executed at
/usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:5726!
Stack dump:
0. Program arguments: /usr/bin/c++ -cc1 -triple
powerpc-unknown-freebsd13.0 -emit-obj -ffast-math -O1 -fgnuc-version=4.2.1
Lgamma-106832.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'Lgamma-106832.cpp'.
4. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@_Z1hIdiEvT_T0_'
#0 0x0000000013bada64 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000013bab12c RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:67:5
#2 0x0000000013bae86c SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
#3 0x0000000815734748 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3
Abort trap (core dumped)
--
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/20200416/575ce882/attachment-0001.html>
More information about the llvm-bugs
mailing list