diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-06-06 02:12:17 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-06-06 02:12:17 +0000 |
| commit | 280e5df2ac6bd1c77386e57da77dc940b66a5c22 (patch) | |
| tree | 0af816fe8e36dd8c50e716036b277ab5e887e7e1 /llvm/test/Transforms | |
| parent | 1de1b54e72d1c437f3d1a41047de291ab96fcdca (diff) | |
| download | bcm5719-llvm-280e5df2ac6bd1c77386e57da77dc940b66a5c22.tar.gz bcm5719-llvm-280e5df2ac6bd1c77386e57da77dc940b66a5c22.zip | |
Remove extraneous CHECK-NOTs from previous commit and add a new test case.
llvm-svn: 158045
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/and-fcmp.ll | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/and-fcmp.ll b/llvm/test/Transforms/InstCombine/and-fcmp.ll index 08fad676c75..f6a226e3b58 100644 --- a/llvm/test/Transforms/InstCombine/and-fcmp.ll +++ b/llvm/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 +} |

