[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/rem.ll

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 1 22:50:16 PST 2006



Changes in directory llvm/test/Regression/Transforms/InstCombine:

rem.ll updated: 1.11 -> 1.12
---
Log message:

add a couple more cases


---
Diffs of the changes:  (+17 -0)

 rem.ll |   17 +++++++++++++++++
 1 files changed, 17 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/rem.ll
diff -u llvm/test/Regression/Transforms/InstCombine/rem.ll:1.11 llvm/test/Regression/Transforms/InstCombine/rem.ll:1.12
--- llvm/test/Regression/Transforms/InstCombine/rem.ll:1.11	Mon Feb 27 23:48:56 2006
+++ llvm/test/Regression/Transforms/InstCombine/rem.ll	Thu Mar  2 00:50:04 2006
@@ -60,3 +60,20 @@
 	%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
+}
+






More information about the llvm-commits mailing list