summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/shift.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-25 06:30:49 +0000
committerChris Lattner <sabre@nondot.org>2004-05-25 06:30:49 +0000
commit256b7a452ba55daedd499a06594568c4d630b77c (patch)
treea09d328654c3359ee2993c8c35e006f44d5f61a5 /test/Transforms/InstCombine/shift.ll
parentc971025b015366c4f238c1bd6916c8805f5d8274 (diff)
downloadllvm-256b7a452ba55daedd499a06594568c4d630b77c.tar.gz
llvm-256b7a452ba55daedd499a06594568c4d630b77c.tar.bz2
llvm-256b7a452ba55daedd499a06594568c4d630b77c.tar.xz
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/shift.ll')
-rw-r--r--test/Transforms/InstCombine/shift.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index ac7bb27ea9..5fae18ff00 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -109,3 +109,9 @@ int %test15a(bool %C) {
ret int %V
}
+bool %test16(int %X) {
+ %tmp.3 = shr int %X, ubyte 4
+ %tmp.6 = and int %tmp.3, 1
+ %tmp.7 = setne int %tmp.6, 0 ;; X & 16 != 0
+ ret bool %tmp.7
+}