diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-24 05:38:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-24 05:38:08 +0000 |
| commit | c62877e9dab401c9fce5c156409a9f9390bb6eb6 (patch) | |
| tree | 0573f20f81483f209a9839df6d0ce376d30a3955 /llvm/test/Transforms/InstCombine/and2.ll | |
| parent | 9a760ebf32bd255213a4a20ab322bca0abaac810 (diff) | |
| download | bcm5719-llvm-c62877e9dab401c9fce5c156409a9f9390bb6eb6.tar.gz bcm5719-llvm-c62877e9dab401c9fce5c156409a9f9390bb6eb6.zip | |
Implement a couple of foldings for ordered and unordered comparisons,
implementing cases related to PR1738.
llvm-svn: 43289
Diffstat (limited to 'llvm/test/Transforms/InstCombine/and2.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/and2.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/and2.ll b/llvm/test/Transforms/InstCombine/and2.ll new file mode 100644 index 00000000000..3b80d94e1a6 --- /dev/null +++ b/llvm/test/Transforms/InstCombine/and2.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep and + + +; PR1738 +define i1 @test1(double %X, double %Y) { + %tmp9 = fcmp ord double %X, 0.000000e+00 + %tmp13 = fcmp ord double %Y, 0.000000e+00 + %bothcond = and i1 %tmp13, %tmp9 + ret i1 %bothcond +} + + |

