projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b310196
)
Right, instcombine cannot remove ((X >> C) << C) if it's signed.
author
Chris Lattner
<sabre@nondot.org>
Tue, 12 Aug 2003 21:22:51 +0000
(21:22 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 12 Aug 2003 21:22:51 +0000
(21:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7790
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/shift.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/shift.ll
b/test/Transforms/InstCombine/shift.ll
index 7d438fb15701d7081cd3de9082d12d4b8e365a75..987ea88569eb7478140af17f060a3a712882d7d2 100644
(file)
--- 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(u
int %A) {
+ %B = shl
u
int %A, ubyte 4
+ %C = and
uint %B,
1234
+ %D = shr
u
int %C, ubyte 4 ;; D = ((B | 1234) << 4) === ((B << 4)|(1234 << 4)
+ ret
u
int %D
}