Changes in directory llvm-test/SingleSource/UnitTests/Integer:
test4.c added (r1.1) bits.h updated: 1.3 -> 1.4 --- Log message: Add test case. --- Diffs of the changes: (+31 -0) bits.h | 5 +++++ test4.c | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) Index: llvm-test/SingleSource/UnitTests/Integer/test4.c diff -c /dev/null llvm-test/SingleSource/UnitTests/Integer/test4.c:1.1 *** /dev/null Sat Apr 21 12:48:09 2007 --- llvm-test/SingleSource/UnitTests/Integer/test4.c Sat Apr 21 12:47:59 2007 *************** *** 0 **** --- 1,26 ---- + + #include "bits.h" + + + int main(int argc, char ** argv) + { + uint68 n; + uint63 t1; + uint3 t2; + uint128 t3; + unsigned long long t4; + + t4 = bit_concat((uint25) -1, (uint39)-1); + printBits(t4); + printf("\n"); + + + + n = -1; + t3 = bit_concat(n, (uint60)-1); + printBits(t3); + printf("\n"); + + + return 0; + } Index: llvm-test/SingleSource/UnitTests/Integer/bits.h diff -u llvm-test/SingleSource/UnitTests/Integer/bits.h:1.3 llvm-test/SingleSource/UnitTests/Integer/bits.h:1.4 --- llvm-test/SingleSource/UnitTests/Integer/bits.h:1.3 Sat Apr 21 12:45:07 2007 +++ llvm-test/SingleSource/UnitTests/Integer/bits.h Sat Apr 21 12:47:59 2007 @@ -27,12 +27,17 @@ typedef unsigned int __attribute__((bitwidth(17))) uint17; typedef unsigned int __attribute__((bitwidth(19))) uint19; typedef unsigned int __attribute__((bitwidth(21))) uint21; +typedef unsigned int __attribute__((bitwidth(25))) uint25; typedef unsigned int __attribute__((bitwidth(17))) uint32; typedef unsigned int __attribute__((bitwidth(36))) uint36; +typedef unsigned int __attribute__((bitwidth(39))) uint39; typedef unsigned int __attribute__((bitwidth(47))) uint47; typedef unsigned int __attribute__((bitwidth(48))) uint48; +typedef unsigned int __attribute__((bitwidth(60))) uint60; +typedef unsigned int __attribute__((bitwidth(63))) uint63; typedef unsigned int __attribute__((bitwidth(64))) uint64; typedef unsigned int __attribute__((bitwidth(65))) uint65; +typedef unsigned int __attribute__((bitwidth(68))) uint68; typedef unsigned int __attribute__((bitwidth(128))) uint128; typedef int __attribute__ ((bitwidth(9))) int9; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits