new testcases
authorChris Lattner <sabre@nondot.org>
Sun, 5 Feb 2006 07:52:47 +0000 (07:52 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Feb 2006 07:52:47 +0000 (07:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26002 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 54199aedd07abb71add807243ad710ac0c40fb21..cab492df339775e4a799d39ca4063a772a3bfb4e 100644 (file)
@@ -61,3 +61,9 @@ uint %test10(uint %X, bool %C) {
         ret uint %R
 }
 
+uint %test10(uint %X, ubyte %B) {
+       %Amt = shl uint 32, ubyte %B
+       %V = div uint %X, %Amt
+       ret uint %V
+}
+
index 2020bf98aea1528112f1e478c68b37135bb34a91..b1b555513d8a41954938447d551503e11af1197d 100644 (file)
@@ -31,3 +31,10 @@ uint %test4(uint %X, bool %C) {
        %R = rem uint %X, %V
        ret uint %R
 }
+
+uint %test5(uint %X, ubyte %B) {
+        %Amt = shl uint 32, ubyte %B
+        %V = rem uint %X, %Amt
+        ret uint %V
+}
+