From 1b50d062c8aedac8def0f6edd542b27feaad7ff7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 May 2005 04:11:32 +0000 Subject: new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21714 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/shift.ll | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Transforms/InstCombine/shift.ll') diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index e4f1bfb7b1..fd1ac0e830 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -158,3 +158,9 @@ bool %test22(ubyte %A) { ret bool %C } +sbyte %test23(int %A) { + %B = shl int %A, ubyte 24 ;; casts not needed + %C = shr int %B, ubyte 24 + %D = cast int %C to sbyte + ret sbyte %D +} -- cgit v1.2.3