[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/test4.c

Reid Spencer reid at x10sys.com
Sat May 12 11:47:14 PDT 2007



Changes in directory llvm-test/SingleSource/UnitTests/Integer:

test4.c updated: 1.2 -> 1.3
---
Log message:

Clean up this test case.


---
Diffs of the changes:  (+12 -3)

 test4.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)


Index: llvm-test/SingleSource/UnitTests/Integer/test4.c
diff -u llvm-test/SingleSource/UnitTests/Integer/test4.c:1.2 llvm-test/SingleSource/UnitTests/Integer/test4.c:1.3
--- llvm-test/SingleSource/UnitTests/Integer/test4.c:1.2	Sat Apr 21 12:51:54 2007
+++ llvm-test/SingleSource/UnitTests/Integer/test4.c	Sat May 12 13:46:55 2007
@@ -4,18 +4,27 @@
 
 int main(int argc, char ** argv)
 {
-  uint68 n;
+  int68 n1;
+  uint68 n2;
   uint63 t1;
   uint3 t2;
   uint128 t3;
   unsigned long long t4;
 
+  printf("concat(i25,i39)=");
   t4 = bit_concat((uint25) -1, (uint39)-1);
   printBits(t4);
   printf("\n");
   
-  n = -1;
-  t3 = bit_concat(n, (uint60)-1);
+  n1 = -1;
+  n2 = -1;
+  printf("n1 = ");
+  printBits(n1);
+  printf("\nn2 = ");
+  printBits(n2);
+  printf("\n");
+  printf("concat(i68 n2, i60 -1)=");
+  t3 = bit_concat(n2, (uint60)-1);
   printBits(t3);
   printf("\n");
   






More information about the llvm-commits mailing list