xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/not-fcmp.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -S | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; PR1570
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine i1 @f(float %X, float %Y) {
5*9880d681SAndroid Build Coastguard Workerentry:
6*9880d681SAndroid Build Coastguard Worker        %tmp3 = fcmp olt float %X, %Y           ; <i1> [#uses=1]
7*9880d681SAndroid Build Coastguard Worker        %toBoolnot5 = xor i1 %tmp3, true                ; <i1> [#uses=1]
8*9880d681SAndroid Build Coastguard Worker        ret i1 %toBoolnot5
9*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @f(
10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: entry:
11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: %toBoolnot5 = fcmp uge float %X, %Y
12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret i1 %toBoolnot5
13*9880d681SAndroid Build Coastguard Worker}
14