diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-08 16:10:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-08 16:10:35 +0000 |
commit | af1b4ad24cd4c4773498e25a9f6296e49e50d593 (patch) | |
tree | 5535da4c39d424f6c2c90b7f080224d1846b2cba | |
parent | 2e217a7d961b24bc981f17966ec815b86c90051f (diff) |
Add new testcase for arithmetic shr of -1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4069 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/shift.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index c6a341f454..5f7d2a59c4 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -37,3 +37,8 @@ uint %test6(uint %A) { %B = shl uint %A, ubyte 1 ;; convert to an add instruction ret uint %B } + +int %test7(ubyte %A) { + %B = shr int -1, ubyte %A ;; Always equal to -1 + ret int %B +} |