diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 04:11:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 04:11:32 +0000 |
commit | 1b50d062c8aedac8def0f6edd542b27feaad7ff7 (patch) | |
tree | f4a4db4aa27dbfed7790c235d70de3956dec1615 /test/Transforms/InstCombine/shift.ll | |
parent | 7aed7ac5e1767c48941040fabdf2fc8238cdde5b (diff) | |
download | external_llvm-1b50d062c8aedac8def0f6edd542b27feaad7ff7.zip external_llvm-1b50d062c8aedac8def0f6edd542b27feaad7ff7.tar.gz external_llvm-1b50d062c8aedac8def0f6edd542b27feaad7ff7.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/shift.ll')
-rw-r--r-- | test/Transforms/InstCombine/shift.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index e4f1bfb..fd1ac0e 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 +} |