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:
0939d77
)
new testcase
author
Chris Lattner
<sabre@nondot.org>
Sun, 8 May 2005 17:31:24 +0000
(17:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 8 May 2005 17:31:24 +0000
(17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21774
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 fd1ac0e8309e636760574430f87b51946f84d758..0834efcaf1a4d09e7551961655d1df6d5a8c2cd7 100644
(file)
--- a/
test/Transforms/InstCombine/shift.ll
+++ b/
test/Transforms/InstCombine/shift.ll
@@
-164,3
+164,11
@@
sbyte %test23(int %A) {
%D = cast int %C to sbyte
ret sbyte %D
}
+
+sbyte %test24(sbyte %X) {
+ %Y = and sbyte %X, -5 ; ~4
+ %Z = shl sbyte %Y, ubyte 5
+ %Q = shr sbyte %Z, ubyte 5
+ ret sbyte %Q
+}
+