aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-02 06:50:04 +0000
committerChris Lattner <sabre@nondot.org>2006-03-02 06:50:04 +0000
commitf4eec627d27d4610179e107b7c188d2d37ef5b49 (patch)
tree7ca25840d1feada9fc3333c5f75b2a0c40ac062e /test
parenta1b2a9b7e23609ac415a8b33423b156b8a801ae6 (diff)
downloadexternal_llvm-f4eec627d27d4610179e107b7c188d2d37ef5b49.zip
external_llvm-f4eec627d27d4610179e107b7c188d2d37ef5b49.tar.gz
external_llvm-f4eec627d27d4610179e107b7c188d2d37ef5b49.tar.bz2
add a couple more cases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/rem.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll
index 1369fa6..da8c20a 100644
--- 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
+}
+