[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/bits.h
Reid Spencer
reid at x10sys.com
Sat May 12 11:44:57 PDT 2007
Changes in directory llvm-test/SingleSource/UnitTests/Integer:
bits.h updated: 1.5 -> 1.6
---
Log message:
Add some types needed by the tests.
Fix the reduce macro to generate the correct builtin name.
---
Diffs of the changes: (+6 -3)
bits.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm-test/SingleSource/UnitTests/Integer/bits.h
diff -u llvm-test/SingleSource/UnitTests/Integer/bits.h:1.5 llvm-test/SingleSource/UnitTests/Integer/bits.h:1.6
--- llvm-test/SingleSource/UnitTests/Integer/bits.h:1.5 Tue May 1 21:35:26 2007
+++ llvm-test/SingleSource/UnitTests/Integer/bits.h Sat May 12 13:44:37 2007
@@ -33,11 +33,13 @@
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(54))) uint54;
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(69))) uint69;
typedef unsigned int __attribute__((bitwidth(128))) uint128;
typedef int __attribute__((bitwidth(9))) int9;
@@ -46,6 +48,7 @@
typedef int __attribute__((bitwidth(24))) int24;
typedef int __attribute__((bitwidth(32))) int32;
typedef int __attribute__((bitwidth(33))) int33;
+typedef int __attribute__((bitwidth(54))) int54;
typedef int __attribute__((bitwidth(68))) int68;
typedef int __attribute__((bitwidth(69))) int69;
@@ -93,10 +96,10 @@
Result; \
})
-#define reduce(how, what) { \
+#define reduce(how, what) ({ \
typeof(what) what2 = what; \
- __bulitin_bit_reduce_ ## how(&what2); \
-}
+ __builtin_bit_ ## how ## _reduce(&what2); \
+})
#define printBits(val) { \
int bit = bitwidthof(val); \
More information about the llvm-commits
mailing list