<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/115715>115715</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[i686-apple-darwin10] LLVM ERROR: FastISel missed
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DigOrDog
</td>
</tr>
</table>
<pre>
# 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
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEWFtv47oR_jX0y8CGROr64AcnjtMFNkgQ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