Changes in directory llvm-test/SingleSource/UnitTests:
2007-04-10-BitfieldTest.c added (r1.1) Makefile updated: 1.12 -> 1.13 --- Log message: new testcase --- Diffs of the changes: (+32 -1) 2007-04-10-BitfieldTest.c | 31 +++++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) Index: llvm-test/SingleSource/UnitTests/2007-04-10-BitfieldTest.c diff -c /dev/null llvm-test/SingleSource/UnitTests/2007-04-10-BitfieldTest.c:1.1 *** /dev/null Tue Apr 10 18:51:35 2007 --- llvm-test/SingleSource/UnitTests/2007-04-10-BitfieldTest.c Tue Apr 10 18:51:25 2007 *************** *** 0 **** --- 1,31 ---- + #include <stdio.h> + #include <stdlib.h> + + union u { + struct { + unsigned int a : 8; + unsigned int b : 3; + unsigned int c : 3; + unsigned int d : 3; + unsigned int e : 3; + unsigned int f : 3; + unsigned int g : 3; + unsigned int h : 3; + unsigned int i : 3; + + unsigned int n : 8; + unsigned int o : 8; + unsigned int p : 8; + unsigned int q : 8; + } s; + unsigned long long token; + }; + + int main(int argc, char *argv[]) + { + union u uu; + uu.token = 0x012492490000FFFFULL; + printf("p = 0x%02X\n", uu.s.p); + return 0; + } + Index: llvm-test/SingleSource/UnitTests/Makefile diff -u llvm-test/SingleSource/UnitTests/Makefile:1.12 llvm-test/SingleSource/UnitTests/Makefile:1.13 --- llvm-test/SingleSource/UnitTests/Makefile:1.12 Thu Jan 18 20:36:58 2007 +++ llvm-test/SingleSource/UnitTests/Makefile Tue Apr 10 18:51:25 2007 @@ -2,7 +2,7 @@ LEVEL = ../.. include $(LEVEL)/Makefile.config -DIRS := SetjmpLongjmp +DIRS := # llvm-gcc3 does not support any vector tests. ifneq ($(LLVMGCC_MAJVERS),3) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits