aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/and.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-13 23:07:02 +0000
committerChris Lattner <sabre@nondot.org>2006-02-13 23:07:02 +0000
commit1f7b4e685e6ae751519c33d703d8292a117579ff (patch)
tree839847218af64af9e3361ba4cf7b26be0c1b38e2 /test/Transforms/InstCombine/and.ll
parentc70cc35ddfe2b938846c3029a7b634c7f8c47978 (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26154 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 dce91d7038..ed6d26b9f7 100644
--- a/test/Transforms/InstCombine/and.ll
+++ b/test/Transforms/InstCombine/and.ll
@@ -220,3 +220,9 @@ uint %test33(uint %b) { ;; Code corresponding to one-bit bitfield ^1.
ret uint %tmp.13
}
+int %test34(int %A, int %B) {
+ %tmp.2 = or int %B, %A
+ %tmp.4 = and int %tmp.2, %B
+ ret int %tmp.4
+}
+