summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-29 07:03:00 +0000
committerChris Lattner <sabre@nondot.org>2006-11-29 07:03:00 +0000
commit41e21031330eee2c692defac4518704579280a02 (patch)
treecb37e426267382a47f7b49d49a287bc982323bf9 /test/Transforms/InstCombine/cast.ll
parentf4d4d9adadf1288bde9bb556f36c62d838b4df95 (diff)
downloadllvm-41e21031330eee2c692defac4518704579280a02.tar.gz
llvm-41e21031330eee2c692defac4518704579280a02.tar.bz2
llvm-41e21031330eee2c692defac4518704579280a02.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-rw-r--r--test/Transforms/InstCombine/cast.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index 4accb47af2..5a82f5e8c8 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -211,3 +211,11 @@ uint %test33(uint %c1) {
%y = bitcast float %x to uint
ret uint %y
}
+
+ushort %test34(ushort %a) {
+ %c1 = zext ushort %a to int
+ %tmp21 = lshr int %c1, ubyte 8
+ %c2 = trunc int %tmp21 to ushort
+ ret ushort %c2
+}
+