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

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 27 21:49:09 PST 2006



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

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

new testcases for PR712: http://llvm.cs.uiuc.edu/PR712 


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

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


Index: llvm/test/Regression/Transforms/InstCombine/rem.ll
diff -u llvm/test/Regression/Transforms/InstCombine/rem.ll:1.10 llvm/test/Regression/Transforms/InstCombine/rem.ll:1.11
--- llvm/test/Regression/Transforms/InstCombine/rem.ll:1.10	Mon Feb 27 23:30:48 2006
+++ llvm/test/Regression/Transforms/InstCombine/rem.ll	Mon Feb 27 23:48:56 2006
@@ -42,3 +42,21 @@
 	%B = rem int %A, 0   ;; undef
 	ret int %B
 }
+
+int %test7(int %A) {
+	%B = mul int %A, 26
+	%C = rem int %B, 13
+	ret int %C
+}
+
+int %test8(int %A) {
+	%B = shl int %A, ubyte 4
+	%C = rem int %B, 8 
+	ret int %C
+}
+
+uint %test9(uint %A) {
+	%B = mul uint %A, 124
+	%C = rem uint %B, 62 
+	ret uint %C
+}






More information about the llvm-commits mailing list