summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-06-06 02:12:17 +0000
committerChad Rosier <mcrosier@apple.com>2012-06-06 02:12:17 +0000
commit4ddf8871ceaa32d60f7834a74c5556fd82ab8d79 (patch)
treed1953a54fdcf73012b5ada7d1f4240bef44ee647
parentb169e2d19ae17a80bfc26751d4d7e374c78bd2a5 (diff)
downloadllvm-4ddf8871ceaa32d60f7834a74c5556fd82ab8d79.tar.gz
llvm-4ddf8871ceaa32d60f7834a74c5556fd82ab8d79.tar.bz2
llvm-4ddf8871ceaa32d60f7834a74c5556fd82ab8d79.tar.xz
Remove extraneous CHECK-NOTs from previous commit and add a new test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158045 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/and-fcmp.ll12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/and-fcmp.ll b/test/Transforms/InstCombine/and-fcmp.ll
index 08fad676c7..f6a226e3b5 100644
--- a/test/Transforms/InstCombine/and-fcmp.ll
+++ b/test/Transforms/InstCombine/and-fcmp.ll
@@ -21,7 +21,6 @@ define zeroext i8 @t2(float %x, float %y) nounwind {
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 @@ define zeroext i8 @t4(float %x, float %y) nounwind {
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
+}