[llvm-commits] [llvm] r158045 - /llvm/trunk/test/Transforms/InstCombine/and-fcmp.ll
Chad Rosier
mcrosier at apple.com
Tue Jun 5 19:12:17 PDT 2012
Author: mcrosier
Date: Tue Jun 5 21:12:17 2012
New Revision: 158045
URL: http://llvm.org/viewvc/llvm-project?rev=158045&view=rev
Log:
Remove extraneous CHECK-NOTs from previous commit and add a new test case.
Modified:
llvm/trunk/test/Transforms/InstCombine/and-fcmp.ll
Modified: llvm/trunk/test/Transforms/InstCombine/and-fcmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/and-fcmp.ll?rev=158045&r1=158044&r2=158045&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/and-fcmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/and-fcmp.ll Tue Jun 5 21:12:17 2012
@@ -21,7 +21,6 @@
ret i8 %retval
; CHECK: t2
; CHECK: fcmp olt float %x, %y
-; CHECK-NOT: fcmp olt float %x, %y
; CHECK-NOT: fcmp ord float %x, %y
; CHECK-NOT: and
}
@@ -44,7 +43,16 @@
ret i8 %retval
; CHECK: t4
; CHECK: fcmp one float %y, %x
-; CHECK-NOT: fcmp one float %y, %x
; CHECK-NOT: fcmp ord float %x, %y
; CHECK-NOT: and
}
+
+define zeroext i8 @t5(float %x, float %y) nounwind {
+ %a = fcmp ord float %x, %y
+ %b = fcmp uno float %x, %y
+ %c = and i1 %a, %b
+ %retval = zext i1 %c to i8
+ ret i8 %retval
+; CHECK: t5
+; CHECK: ret i8 0
+}
More information about the llvm-commits
mailing list