From 7502ae664093e3274c8807c94a4c7504be24a456 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 23 Sep 2004 21:42:49 +0000 Subject: [PATCH] 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 --- test/Transforms/InstCombine/and.ll | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll index 87e0a5e34d3..703dea3326c 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 +} +