[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/rem.ll
Chris Lattner
sabre at nondot.org
Thu Oct 12 13:56:29 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
rem.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+23 -0)
rem.ll | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/rem.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/rem.ll:1.1
*** /dev/null Thu Oct 12 15:56:25 2006
--- llvm/test/Regression/CodeGen/X86/rem.ll Thu Oct 12 15:56:15 2006
***************
*** 0 ****
--- 1,23 ----
+ ; RUN: llvm-as < %s | llc -march=x86 &&
+ ; RUN: llvm-as < %s | llc -march=x86 | not grep div
+
+ int %test1(int %X) {
+ %tmp1 = rem int %X, 255
+ ret int %tmp1
+ }
+
+ int %test2(int %X) {
+ %tmp1 = rem int %X, 256
+ ret int %tmp1
+ }
+
+ uint %test3(uint %X) {
+ %tmp1 = rem uint %X, 255
+ ret uint %tmp1
+ }
+
+ uint %test4(uint %X) {
+ %tmp1 = rem uint %X, 256 ; just an and
+ ret uint %tmp1
+ }
+
More information about the llvm-commits
mailing list