diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-19 19:04:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-19 19:04:43 +0000 |
commit | 0daee350cf4d2f6a3a3c2edd6e3efe8a8a8795b7 (patch) | |
tree | 31f7e92fa3e2babf3b3c1a2d7aa3a07bc459e8cf /test/Transforms | |
parent | bd7b5fff82159d4e547fb261087a0f6b1aa01203 (diff) | |
download | external_llvm-0daee350cf4d2f6a3a3c2edd6e3efe8a8a8795b7.zip external_llvm-0daee350cf4d2f6a3a3c2edd6e3efe8a8a8795b7.tar.gz external_llvm-0daee350cf4d2f6a3a3c2edd6e3efe8a8a8795b7.tar.bz2 |
Two new tests for shifts followed by ands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/and.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll index 5030a66..3d8cd70 100644 --- a/test/Transforms/InstCombine/and.ll +++ b/test/Transforms/InstCombine/and.ll @@ -93,3 +93,15 @@ bool %test14(ubyte %A) { %C = setne ubyte %B, 0 ret bool %C } + +ubyte %test15(ubyte %A) { + %B = shr ubyte %A, ubyte 7 + %C = and ubyte %B, 2 ; Always equals zero + ret ubyte %C +} + +ubyte %test16(ubyte %A) { + %B = shl ubyte %A, ubyte 2 + %C = and ubyte %B, 3 + ret ubyte %C +} |