summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-18 05:10:39 +0000
committerChris Lattner <sabre@nondot.org>2005-09-18 05:10:39 +0000
commitab4ea6e980a675b536006b123b78d6c994724af9 (patch)
treeb821f1255fd5842effe2d5d557f7989dcec4b6d5 /test
parentc8e775679143dcdd7ba860d92f0a3bb2f4c4ae89 (diff)
downloadllvm-ab4ea6e980a675b536006b123b78d6c994724af9.tar.gz
llvm-ab4ea6e980a675b536006b123b78d6c994724af9.tar.bz2
llvm-ab4ea6e980a675b536006b123b78d6c994724af9.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/shift.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index 0834efcaf1..d810e188c8 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -172,3 +172,11 @@ sbyte %test24(sbyte %X) {
ret sbyte %Q
}
+uint %test25(uint %tmp.2, uint %AA) {
+ %x = shr uint %AA, ubyte 17
+ %tmp.3 = shr uint %tmp.2, ubyte 17 ; <uint> [#uses=1]
+ %tmp.5 = add uint %tmp.3, %x ; <uint> [#uses=1]
+ %tmp.6 = shl uint %tmp.5, ubyte 17 ; <uint> [#uses=1]
+ ret uint %tmp.6
+}
+