summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/and.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-09-23 21:42:49 +0000
committerChris Lattner <sabre@nondot.org>2004-09-23 21:42:49 +0000
commit7502ae664093e3274c8807c94a4c7504be24a456 (patch)
tree1cbf277c646fd54eb361bc45617709de09582e2e /test/Transforms/InstCombine/and.ll
parentb40df56f263227e697ca3fb92720301646cb18a1 (diff)
downloadllvm-7502ae664093e3274c8807c94a4c7504be24a456.tar.gz
llvm-7502ae664093e3274c8807c94a4c7504be24a456.tar.bz2
llvm-7502ae664093e3274c8807c94a4c7504be24a456.tar.xz
New testcase for a pattern that occurs 20 times in perlbmk
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/and.ll')
-rw-r--r--test/Transforms/InstCombine/and.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll
index 87e0a5e34d..703dea3326 100644
--- a/test/Transforms/InstCombine/and.ll
+++ b/test/Transforms/InstCombine/and.ll
@@ -113,3 +113,9 @@ sbyte %test17(sbyte %X, sbyte %Y) { ;; ~(~X & Y) --> (X | ~Y)
ret sbyte %D
}
+bool %test18(int %A) {
+ %B = and int %A, -128
+ %C = setne int %B, 0 ;; C >= 128
+ ret bool %C
+}
+