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);
+ }
+ 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to