summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/shift.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-06 07:48:28 +0000
committerChris Lattner <sabre@nondot.org>2006-01-06 07:48:28 +0000
commit6c7fbb85031dfba863a7e0a950a3c4d40627a819 (patch)
treeba25fafcb6cad1c5a90ac05500c19a43c9011ddd /test/Transforms/InstCombine/shift.ll
parent830ed03e8b3e4a9022e48fe07b6c5fb25271a10a (diff)
downloadllvm-6c7fbb85031dfba863a7e0a950a3c4d40627a819.tar.gz
llvm-6c7fbb85031dfba863a7e0a950a3c4d40627a819.tar.bz2
llvm-6c7fbb85031dfba863a7e0a950a3c4d40627a819.tar.xz
A case that instcombine is not catching.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/shift.ll')
-rw-r--r--test/Transforms/InstCombine/shift.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index d810e188c8..4db7db977e 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -180,3 +180,10 @@ uint %test25(uint %tmp.2, uint %AA) {
ret uint %tmp.6
}
+int %test26(uint %A) { ;; handle casts between shifts.
+ %B = shr uint %A, ubyte 1
+ %C = cast uint %B to int
+ %D = shl int %C, ubyte 1
+ ret int %D
+}
+