You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a reduced test case:
double a;
long b;
void c() { b / a; }
I also reduced compilation options to:
/usr/bin/c++ -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -ffp-exception-behavior=strict -x c++ main-8d9e47.cpp
Also reproduced on LLVM10 and trunk@3e315697ac7. Ommiting -ffp-exception-behavior=strict workarounds it. It's not reproduced on LLVM9 however -ffp-exception-behavior=strict is not available on that version.
Extended Description
FreeBSD head on powerpc64 with LLVM 10 rc4.
Compiling emulators/mednafen port fails, this is a regression from 9.0.1:
Assertion failed: (!isSigned && "Legalize cannot Expand SINT_TO_FP for i64 yet"), function ExpandLegalINT_TO_FP, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 2420.
Stack dump:
0. Program arguments: c++ -std=gnu++11 -fsigned-char -DLOCALEDIR="/usr/local/share/locale" -DHAVE_CONFIG_H -I/usr/local/include/SDL2 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -I../../include -I../../include -I../../intl -I/usr/local/include -DLIBICONV_PLUG -D_THREAD_SAFE -fno-fast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -fstrict-aliasing -Wall -Wshadow -Wempty-body -Wignored-qualifiers -Wvla -Wvariadic-macros -Wdisabled-optimization -Werror=write-strings -fno-pic -fno-pie -fno-PIC -fno-PIE -fwrapv -fjump-tables
-fexceptions -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -MT ers.o -MD -MP -MF .deps/ers.Tpo -c -o ers.o ers.cpp
The text was updated successfully, but these errors were encountered: