summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/shift.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-06 16:11:31 +0000
committerChris Lattner <sabre@nondot.org>2002-05-06 16:11:31 +0000
commit79a31b1782c0f9a3b84768d299232aa538a95bcd (patch)
tree095d387a604eb49d113fd7ba01ef4bc42c25f50f /test/Transforms/InstCombine/shift.ll
parent11fe8dfff7e08613913c53920d95bf90780e2d35 (diff)
downloadllvm-79a31b1782c0f9a3b84768d299232aa538a95bcd.tar.gz
llvm-79a31b1782c0f9a3b84768d299232aa538a95bcd.tar.bz2
llvm-79a31b1782c0f9a3b84768d299232aa538a95bcd.tar.xz
Fix testcase, the 'shift out all bits' doesn't apply to signed types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/shift.ll')
-rw-r--r--test/Transforms/InstCombine/shift.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index c6b65174f6..20bf9116e2 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -28,8 +28,8 @@ int "test4"(ubyte %A) {
ret int %B
}
-int "test5"(int %A) {
- %B = shr int %A, ubyte 32 ;; shift all bits out
- ret int %B
+uint "test5"(uint %A) {
+ %B = shr uint %A, ubyte 32 ;; shift all bits out
+ ret uint %B
}