Add testcases for simple things we can handle that occur now in vortex.
authorChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 21:40:22 +0000 (21:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 21:40:22 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18837 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/div.ll
test/Transforms/InstCombine/rem.ll

index 8e03fc02d4c5c13faee634582279968c11db851d..54199aedd07abb71add807243ad710ac0c40fb21 100644 (file)
@@ -55,3 +55,9 @@ bool %test9(ubyte %A) {
        ret bool %C
 } 
 
+uint %test10(uint %X, bool %C) {
+        %V = select bool %C, uint 64, uint 8
+        %R = div uint %X, %V
+        ret uint %R
+}
+
index dd4b42aee07eee52705737f1c01fa9c78b443ad2..2020bf98aea1528112f1e478c68b37135bb34a91 100644 (file)
@@ -25,3 +25,9 @@ bool %test3(int %A) {
        %C = setne int %B, 0
        ret bool %C
 }
+
+uint %test4(uint %X, bool %C) {
+       %V = select bool %C, uint 1, uint 8
+       %R = rem uint %X, %V
+       ret uint %R
+}