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:
a1b2a9b
)
add a couple more cases
author
Chris Lattner
<sabre@nondot.org>
Thu, 2 Mar 2006 06:50:04 +0000
(06:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 2 Mar 2006 06:50:04 +0000
(06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26468
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/rem.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/rem.ll
b/test/Transforms/InstCombine/rem.ll
index 1369fa6f66a204d0a9bdf1a3282e6c77fa9c1c89..da8c20a3df8958a9e299750dbdfd62ffe22328ac 100644
(file)
--- a/
test/Transforms/InstCombine/rem.ll
+++ b/
test/Transforms/InstCombine/rem.ll
@@
-60,3
+60,20
@@
uint %test9(uint %A) {
%C = rem uint %B, 62
ret uint %C
}
+
+int %test10(ubyte %c) {
+ %tmp.1 = cast ubyte %c to int
+ %tmp.2 = mul int %tmp.1, 3
+ %tmp.3 = cast int %tmp.2 to ulong
+ %tmp.5 = rem ulong %tmp.3, 3
+ %tmp.6 = cast ulong %tmp.5 to int
+ ret int %tmp.6
+}
+
+int %test11(int %i) {
+ %tmp.1 = and int %i, -2
+ %tmp.3 = mul int %tmp.1, 3
+ %tmp.5 = rem int %tmp.3, 6
+ ret int %tmp.5
+}
+