From a9c83c73daa8eb5410ff17be9b19218245b52de2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 8 May 2005 17:31:24 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21774 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/shift.ll | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +} + -- 2.34.1