From 41e21031330eee2c692defac4518704579280a02 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 29 Nov 2006 07:03:00 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32008 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/cast.ll | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 4accb47af2a..5a82f5e8c80 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 +} + -- 2.34.1