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:
d7115b0
)
new testcases
author
Chris Lattner
<sabre@nondot.org>
Fri, 6 May 2005 04:52:46 +0000
(
04:52
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 6 May 2005 04:52:46 +0000
(
04:52
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21716
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/and.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/and.ll
b/test/Transforms/InstCombine/and.ll
index e8558f7d907e777b6523be3971e5e6bc6b9ddf9b..81cd325c3f4792b44c68e7a4eabb192451e255b3 100644
(file)
--- a/
test/Transforms/InstCombine/and.ll
+++ b/
test/Transforms/InstCombine/and.ll
@@
-197,3
+197,17
@@
int %test30(bool %X) {
%Z = and int %Y, 1
ret int %Z
}
+
+uint %test31(bool %X) {
+ %Y = cast bool %X to uint
+ %Z = shl uint %Y, ubyte 4
+ %A = and uint %Z, 16
+ ret uint %A
+}
+
+uint %test32(uint %In) {
+ %Y = and uint %In, 16
+ %Z = shr uint %Y, ubyte 2
+ %A = and uint %Z, 1
+ ret uint %A
+}