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

Reid Spencer reid at x10sys.com
Sat May 12 04:14:17 PDT 2007



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

test_part_set.c added (r1.1)
test_part_set.reference_output added (r1.1)
---
Log message:

Add a new test case.


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

 test_part_set.c                |   19 +++++++++++++++++++
 test_part_set.reference_output |    1 +
 2 files changed, 20 insertions(+)


Index: llvm-test/SingleSource/UnitTests/Integer/test_part_set.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/Integer/test_part_set.c:1.1
*** /dev/null	Sat May 12 06:14:10 2007
--- llvm-test/SingleSource/UnitTests/Integer/test_part_set.c	Sat May 12 06:14:00 2007
***************
*** 0 ****
--- 1,19 ----
+ #include "bits.h"
+ 
+ uint68 test_part_set(uint68 x, uint60 y)
+ {
+     return part_set(x, y, 0, (bitwidthof(y)-1));
+ }
+ 
+ uint1 test_reduce(uint68 x)
+ {
+     return reduce(or, x);
+ }
+ 
+ int main(int argc, char** argv) {
+   uint68 A = 0xF0F0F0F0F0F0F0F0ULL;
+   uint60 B = 0x0F0F0F0F0F0F0F0FULL;
+   uint68 X = test_part_set(A, B);
+   uint1 Y = test_reduce(X);
+   return (int) Y;
+ }


Index: llvm-test/SingleSource/UnitTests/Integer/test_part_set.reference_output
diff -c /dev/null llvm-test/SingleSource/UnitTests/Integer/test_part_set.reference_output:1.1
*** /dev/null	Sat May 12 06:14:17 2007
--- llvm-test/SingleSource/UnitTests/Integer/test_part_set.reference_output	Sat May 12 06:14:00 2007
***************
*** 0 ****
--- 1 ----
+ exit 1






More information about the llvm-commits mailing list