summaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-18 03:39:02 +0000
committerChris Lattner <sabre@nondot.org>2005-09-18 03:39:02 +0000
commit1e122d1dc297f9386c11916df86fa0245b61041f (patch)
tree309e5e3c33f53bb5b0f9548008a40cf0cb99cf85 /test/Transforms
parent6a78c2157ad1ca9608ebdb33a8cc9f86f4a74f2c (diff)
downloadexternal_llvm-1e122d1dc297f9386c11916df86fa0245b61041f.zip
external_llvm-1e122d1dc297f9386c11916df86fa0245b61041f.tar.gz
external_llvm-1e122d1dc297f9386c11916df86fa0245b61041f.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/or.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index 5ac274e..95f4ed1 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -133,3 +133,11 @@ int %test20(int %x) {
%z = or int %y, %x
ret int %z
}
+
+uint %test21(uint %tmp.1) {
+ %tmp.1.mask1 = add uint %tmp.1, 2
+ %tmp.3 = and uint %tmp.1.mask1, 4294967294
+ %tmp.5 = and uint %tmp.1, 1
+ %tmp.6 = or uint %tmp.5, %tmp.3 ;; add tmp.1, 2
+ ret uint %tmp.6
+}