[llvm-commits] CVS: llvm/test/CFrontend/2007-03-05-DataLayout.c
Changes in directory llvm/test/CFrontend: 2007-03-05-DataLayout.c updated: 1.1 - 1.2 --- Log message: Don't run lli in llvm-test. Instead just check that the datalayout string is the right length. --- Diffs of the changes: (+1 -1) 2007-03-05-DataLayout.c |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/test/CFrontend/2007-03-05-DataLayout.c diff -u llvm/test/CFrontend/2007-03-05-DataLayout.c:1.1 llvm/test/CFrontend/2007-03-05-DataLayout.c:1.2 --- llvm/test/CFrontend/2007-03-05-DataLayout.c:1.1 Mon Mar 5 21:00:17 2007 +++ llvm/test/CFrontend/2007-03-05-DataLayout.c Tue Mar 6 11:48:25 2007 @@ -1,5 +1,5 @@ // Testcase for PR1242 -// RUN: %llvmgcc -c %s -o %t lli --force-interpreter=1 %t +// RUN: %llvmgcc -S %s -o - | grep datalayout | wc -c | grep 130 #include stdlib.h #define NDIM 3 #define BODY 01 ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/test/CFrontend/2007-03-05-DataLayout.c
Index: llvm/test/CFrontend/2007-03-05-DataLayout.c diff -u llvm/test/CFrontend/2007-03-05-DataLayout.c:1.1 llvm/test/ CFrontend/2007-03-05-DataLayout.c:1.2 --- llvm/test/CFrontend/2007-03-05-DataLayout.c:1.1 Mon Mar 5 21:00:17 2007 +++ llvm/test/CFrontend/2007-03-05-DataLayout.c Tue Mar 6 11:48:25 2007 @@ -1,5 +1,5 @@ // Testcase for PR1242 -// RUN: %llvmgcc -c %s -o %t lli --force-interpreter=1 %t +// RUN: %llvmgcc -S %s -o - | grep datalayout | wc -c | grep 130 #include stdlib.h This will fail when run on a non-linux platform. Please check that the length is 6 characters, or whatever the old string was. -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/CFrontend/2007-03-05-DataLayout.c
Changes in directory llvm/test/CFrontend: 2007-03-05-DataLayout.c updated: 1.2 - 1.3 --- Log message: Make this test more reliable across platforms. --- Diffs of the changes: (+2 -1) 2007-03-05-DataLayout.c |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/test/CFrontend/2007-03-05-DataLayout.c diff -u llvm/test/CFrontend/2007-03-05-DataLayout.c:1.2 llvm/test/CFrontend/2007-03-05-DataLayout.c:1.3 --- llvm/test/CFrontend/2007-03-05-DataLayout.c:1.2 Tue Mar 6 11:48:25 2007 +++ llvm/test/CFrontend/2007-03-05-DataLayout.c Tue Mar 6 18:32:12 2007 @@ -1,5 +1,6 @@ // Testcase for PR1242 -// RUN: %llvmgcc -S %s -o - | grep datalayout | wc -c | grep 130 +// RUN: %llvmgcc -S %s -o - | grep datalayout | \ +// RUN:not grep '[Ee]-p:[36][24]:[36]:[24]' #include stdlib.h #define NDIM 3 #define BODY 01 ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/CFrontend/2007-03-05-DataLayout.c
Changes in directory llvm/test/CFrontend: 2007-03-05-DataLayout.c updated: 1.3 - 1.4 --- Log message: Fix the pattern. --- Diffs of the changes: (+1 -1) 2007-03-05-DataLayout.c |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/test/CFrontend/2007-03-05-DataLayout.c diff -u llvm/test/CFrontend/2007-03-05-DataLayout.c:1.3 llvm/test/CFrontend/2007-03-05-DataLayout.c:1.4 --- llvm/test/CFrontend/2007-03-05-DataLayout.c:1.3 Tue Mar 6 18:32:12 2007 +++ llvm/test/CFrontend/2007-03-05-DataLayout.c Tue Mar 6 18:39:11 2007 @@ -1,6 +1,6 @@ // Testcase for PR1242 // RUN: %llvmgcc -S %s -o - | grep datalayout | \ -// RUN:not grep '[Ee]-p:[36][24]:[36]:[24]' +// RUN:not grep '[Ee]-p:[36][24]:[36][24]' #include stdlib.h #define NDIM 3 #define BODY 01 ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/CFrontend/2007-03-05-DataLayout.c
Changes in directory llvm/test/CFrontend: 2007-03-05-DataLayout.c added (r1.1) --- Log message: Test to ensure that data layout is generated correctly for host platform. This is for PR1242: http://llvm.org/PR1242 . --- Diffs of the changes: (+51 -0) 2007-03-05-DataLayout.c | 51 1 files changed, 51 insertions(+) Index: llvm/test/CFrontend/2007-03-05-DataLayout.c diff -c /dev/null llvm/test/CFrontend/2007-03-05-DataLayout.c:1.1 *** /dev/null Mon Mar 5 21:00:27 2007 --- llvm/test/CFrontend/2007-03-05-DataLayout.c Mon Mar 5 21:00:17 2007 *** *** 0 --- 1,51 + // Testcase for PR1242 + // RUN: %llvmgcc -c %s -o %t lli --force-interpreter=1 %t + #include stdlib.h + #define NDIM 3 + #define BODY 01 + typedef double vector[NDIM]; + typedef struct bnode* bodyptr; + // { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x + // double], double, \2 *, \2 * } + struct bnode { + short int type; + double mass; + vector pos; + int proc; + int new_proc; + vector vel; + vector acc; + vector new_acc; + double phi; + bodyptr next; + bodyptr proc_next; + } body; + + #define Type(x) ((x)-type) + #define Mass(x) ((x)-mass) + #define Pos(x) ((x)-pos) + #define Proc(x) ((x)-proc) + #define New_Proc(x) ((x)-new_proc) + #define Vel(x) ((x)-vel) + #define Acc(x) ((x)-acc) + #define New_Acc(x) ((x)-new_acc) + #define Phi(x) ((x)-phi) + #define Next(x) ((x)-next) + #define Proc_Next(x) ((x)-proc_next) + + bodyptr ubody_alloc(int p) + { + register bodyptr tmp; + tmp = (bodyptr)malloc(sizeof(body)); + + Type(tmp) = BODY; + Proc(tmp) = p; + Proc_Next(tmp) = NULL; + New_Proc(tmp) = p; + return tmp; + } + + int main(int argc, char** argv) { + bodyptr b = ubody_alloc(17); + return 0; + } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits