[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2006-02-04-DivRem.c

Chris Lattner lattner at cs.uiuc.edu
Sat Feb 4 23:19:36 PST 2006



Changes in directory llvm-test/SingleSource/UnitTests:

2006-02-04-DivRem.c added (r1.1)
---
Log message:

new testcase


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

 2006-02-04-DivRem.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+)


Index: llvm-test/SingleSource/UnitTests/2006-02-04-DivRem.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/2006-02-04-DivRem.c:1.1
*** /dev/null	Sun Feb  5 01:19:34 2006
--- llvm-test/SingleSource/UnitTests/2006-02-04-DivRem.c	Sun Feb  5 01:19:24 2006
***************
*** 0 ****
--- 1,18 ----
+ #include <stdio.h>
+ 
+ void test(unsigned X, unsigned Y) {
+   printf("%u %u %u %u\n", X, Y, X / (8 << (Y&15)), X % (8 << (Y&15)));
+ }
+ 
+ int i;
+ int main(void) {
+   long long l;
+ 
+   for(i=10; i<139045193; i*=-3) {
+     test(i, i^12345);
+     i++;
+   }
+ 
+   return(0);
+ }
+ 






More information about the llvm-commits mailing list