diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-08 17:31:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-08 17:31:24 +0000 |
commit | a9c83c73daa8eb5410ff17be9b19218245b52de2 (patch) | |
tree | 5d6c44a9e1fc40da1b0ed56cc60632b6b0c221d3 | |
parent | 0939d7745298ae84ef4e0adcbc872125c0faf544 (diff) |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21774 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/shift.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index fd1ac0e830..0834efcaf1 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 +} + |