diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-14 18:13:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-14 18:13:38 +0000 |
commit | 4990b257dd22ef5804fd93742ac5e8621c4d1608 (patch) | |
tree | b1658fc0d96d2be75b499e197668970ad3cf4d66 /test/Transforms | |
parent | 552e3be775c3ed9ff79e3002b369c5267633f72b (diff) |
- Somehow I forgot about one / une.
- Renumber fcmp predicates to match their icmp counterparts.
- Try swapping operands to expose more optimization opportunities.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/and-fcmp.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/and-fcmp.ll b/test/Transforms/InstCombine/and-fcmp.ll index 9eecc21983..55efffa34f 100644 --- a/test/Transforms/InstCombine/and-fcmp.ll +++ b/test/Transforms/InstCombine/and-fcmp.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep fcmp | count 2 +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep fcmp | count 3 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep ret | grep 0 define zeroext i8 @t1(float %x, float %y) nounwind { @@ -24,3 +24,11 @@ define zeroext i8 @t3(float %x, float %y) nounwind { %retval = zext i1 %c to i8 ret i8 %retval } + +define zeroext i8 @t4(float %x, float %y) nounwind { + %a = fcmp one float %y, %x + %b = fcmp ord float %x, %y + %c = and i1 %a, %b + %retval = zext i1 %c to i8 + ret i8 %retval +} |