aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-14 06:04:35 +0000
committerChris Lattner <sabre@nondot.org>2006-11-14 06:04:35 +0000
commit96dddd969fde3869e6bbaca6702969183576892a (patch)
tree68cace8690445a4455c274eb4106d0bfd4577d9c /test
parentac011bce9e8a69f99f92d46133adbf883a91cb6f (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/and-compare.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and-compare.ll b/test/Transforms/InstCombine/and-compare.ll
new file mode 100644
index 0000000000..35516a5065
--- /dev/null
+++ b/test/Transforms/InstCombine/and-compare.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | wc -l | grep 1
+
+; Should be optimized to one and.
+bool %test1(uint %a, uint %b) {
+ %tmp1 = and uint %a, 65280
+ %tmp3 = and uint %b, 65280
+ %tmp = setne uint %tmp1, %tmp3
+ ret bool %tmp
+}
+