Description
Compiler Explorer: https://godbolt.org/z/GTfqbqGef
LLVM ERROR: Cannot select: t30: i32 = X86ISD::UCOMX t3, ConstantFP:f80<APFloat(0)>
t3: f80,ch = load<(load (s80) from %fixed-stack.0, align 16)> t0, FrameIndex:i64<-1>, undef:i64
t1: i64 = FrameIndex<-1>
t2: i64 = undef
t4: f80 = ConstantFP<APFloat(0)>
In function: ldequals
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel -mcpu=diamondrapids <source>
1. Running pass 'Function Pass Manager' on module '<source>'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@ldequals'
#0 0x0000000003c0a0c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3c0a0c8)
#1 0x0000000003c07abc SignalHandler(int) Signals.cpp:0:0
#2 0x000076cacee42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#3 0x000076cacee969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#4 0x000076cacee42476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#5 0x000076cacee287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#6 0x0000000000758ec1 (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x758ec1)
#7 0x00000000039b4078 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b4078)
#8 0x00000000039b9519 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b9519)
#9 0x0000000001fac011 (anonymous namespace)::X86DAGToDAGISel::Select(llvm::SDNode*) X86ISelDAGToDAG.cpp:0:0
#10 0x00000000039b05eb llvm::SelectionDAGISel::DoInstructionSelection() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b05eb)
#11 0x00000000039bf9aa llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39bf9aa)
#12 0x00000000039c2f29 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39c2f29)
#13 0x00000000039c41e0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39c41e0)
#14 0x00000000039b4a8f llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b4a8f)
#15 0x0000000002b70aa9 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#16 0x0000000003175f8f llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3175f8f)
#17 0x0000000003176341 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3176341)
#18 0x0000000003176be1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3176be1)
#19 0x000000000086e8f8 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#20 0x000000000076069e main (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x76069e)
#21 0x000076cacee29d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#22 0x000076cacee29e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#23 0x000000000086522e _start (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x86522e)
Program terminated with signal: SIGSEGV
Compiler returned: 139