xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/fp-stack-compare-cmov.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mcpu=pentiumpro | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; PR1012
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine float @foo(float* %col.2.0) {
5*9880d681SAndroid Build Coastguard Worker; CHECK: fucompi
6*9880d681SAndroid Build Coastguard Worker; CHECK: fcmov
7*9880d681SAndroid Build Coastguard Worker  %tmp = load float, float* %col.2.0
8*9880d681SAndroid Build Coastguard Worker  %tmp16 = fcmp olt float %tmp, 0.000000e+00
9*9880d681SAndroid Build Coastguard Worker  %tmp20 = fsub float -0.000000e+00, %tmp
10*9880d681SAndroid Build Coastguard Worker  %iftmp.2.0 = select i1 %tmp16, float %tmp20, float %tmp
11*9880d681SAndroid Build Coastguard Worker  ret float %iftmp.2.0
12*9880d681SAndroid Build Coastguard Worker}
13