Issue 115715
Summary [i686-apple-darwin10] LLVM ERROR: FastISel missed
Labels new issue
Assignees
Reporter DigOrDog
    # Description
The following code crashes backend with "LLVM ERROR: FastISel missed:   %C = fcmp ole float 1.000000e+00, 1.000000e+00 (in function: test3)"

# Minimal Reproduction
https://godbolt.org/z/PW4GddE1M

## Code
```
define zeroext i16 @test3(i32 %y) #0 {
  %C = fcmp ole float 1.000000e+00, 1.000000e+00
  %conv = trunc i32 %y to i16
  store i1 %C, ptr undef, align 1
  ret i16 %conv
}

attributes #0 = { nounwind }
```
## Stack Trace
```
LLVM ERROR: FastISel missed: %C = fcmp ole float 1.000000e+00, 1.000000e+00 (in function: test3)
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-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel -O0 -fast-isel-abort=1 -mtriple i686-apple-darwin10 <source>
1.	Running pass 'Function Pass Manager' on module '<source>'.
2.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@test3'
 #0 0x000000000391df98 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-trunk/bin/llc+0x391df98)
 #1 0x000000000391bb5c SignalHandler(int) Signals.cpp:0:0
 #2 0x000072b3d3242520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x000072b3d32969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x000072b3d3242476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x000072b3d32287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x000000000075696c llvm::UniqueStringSaver::save(llvm::Twine const&) (.cold) StringSaver.cpp:0:0
 #7 0x00000000036c9890 reportFastISelFailure(llvm::MachineFunction&, llvm::OptimizationRemarkEmitter&, llvm::OptimizationRemarkMissed&, bool) SelectionDAGISel.cpp:0:0
 #8 0x00000000036df65d llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x36df65d)
 #9 0x00000000036e005f llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x36e005f)
#10 0x00000000036cc411 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x36cc411)
#11 0x00000000029b498b llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#12 0x0000000002f09492 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2f09492)
#13 0x0000000002f09721 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2f09721)
#14 0x0000000002f0b0c6 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2f0b0c6)
#15 0x000000000087d334 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#16 0x000000000076aca6 main (/opt/compiler-explorer/clang-trunk/bin/llc+0x76aca6)
#17 0x000072b3d3229d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#18 0x000072b3d3229e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#19 0x00000000008750fe _start (/opt/compiler-explorer/clang-trunk/bin/llc+0x8750fe)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to