From: Chris Lattner Date: Sun, 8 May 2005 17:31:24 +0000 (+0000) Subject: new testcase X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a9c83c73daa8eb5410ff17be9b19218245b52de2;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21774 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index fd1ac0e8309..0834efcaf1a 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -164,3 +164,11 @@ sbyte %test23(int %A) { %D = cast int %C to sbyte ret sbyte %D } + +sbyte %test24(sbyte %X) { + %Y = and sbyte %X, -5 ; ~4 + %Z = shl sbyte %Y, ubyte 5 + %Q = shr sbyte %Z, ubyte 5 + ret sbyte %Q +} +