diff options
Diffstat (limited to 'test/Transforms/InstCombine/and-fcmp.ll')
-rw-r--r-- | test/Transforms/InstCombine/and-fcmp.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and-fcmp.ll b/test/Transforms/InstCombine/and-fcmp.ll index 282e88b..838c2f7 100644 --- a/test/Transforms/InstCombine/and-fcmp.ll +++ b/test/Transforms/InstCombine/and-fcmp.ll @@ -66,3 +66,14 @@ define zeroext i8 @t6(float %x, float %y) nounwind { ; CHECK: t6 ; CHECK: ret i8 0 } + +define zeroext i8 @t7(float %x, float %y) nounwind { + %a = fcmp uno float %x, %y + %b = fcmp ult float %x, %y + %c = and i1 %a, %b + %retval = zext i1 %c to i8 + ret i8 %retval +; CHECK: t7 +; CHECK: fcmp uno +; CHECK-NOT: fcmp ult +} |