1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/Transforms/InstCombine/not-fcmp.ll
Nick Lewycky 34cf98c558 It's safe to fold not of fcmp.
llvm-svn: 40870
2007-08-06 20:04:16 +00:00

11 lines
288 B
LLVM

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep "fcmp uge"
; PR1570
define i1 @f(float %X, float %Y) {
entry:
%tmp3 = fcmp olt float %X, %Y ; <i1> [#uses=1]
%toBoolnot5 = xor i1 %tmp3, true ; <i1> [#uses=1]
ret i1 %toBoolnot5
}