summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-12 21:22:51 +0000
committerChris Lattner <sabre@nondot.org>2003-08-12 21:22:51 +0000
commitdc20a3e7d373a4747ae4cd9188ef6a4dec284924 (patch)
tree46a9d55ededc0bc20e028e9174c4af1eb7b752e2 /test
parentb310196abc3b750d655a8bd0e31693e04945fdba (diff)
downloadllvm-dc20a3e7d373a4747ae4cd9188ef6a4dec284924.tar.gz
llvm-dc20a3e7d373a4747ae4cd9188ef6a4dec284924.tar.bz2
llvm-dc20a3e7d373a4747ae4cd9188ef6a4dec284924.tar.xz
Right, instcombine cannot remove ((X >> C) << C) if it's signed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/shift.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index 7d438fb157..987ea88569 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -87,9 +87,9 @@ uint %test14(uint %A) {
%D = shl uint %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
ret uint %D
}
-int %test14a(int %A) {
- %B = shl int %A, ubyte 4
- %C = and int %B, -1234
- %D = shr int %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
- ret int %D
+uint %test14a(uint %A) {
+ %B = shl uint %A, ubyte 4
+ %C = and uint %B, 1234
+ %D = shr uint %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
+ ret uint %D
}