[llvm-commits] [parallel] CVS: llvm/test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr 2004-02-13-BuiltinFrameReturnAddress.c.tr 2004-02-13-IllegalVararg.c.tr 2004-02-13-Memset.c.tr 2004-02-13-StringInit.c.tr 2004-02-14-ZeroInitializer.c.tr 2004-02-20-Builtins.c.tr 2004-02-20-StaticRedeclare.c.tr

Misha Brukman brukman at cs.uiuc.edu
Mon Mar 1 19:07:58 PST 2004


Changes in directory llvm/test/Regression/CFrontend:

2004-02-12-LargeAggregateCopy.c.tr added (r1.1.2.1)
2004-02-13-BuiltinFrameReturnAddress.c.tr added (r1.1.2.1)
2004-02-13-IllegalVararg.c.tr added (r1.1.2.1)
2004-02-13-Memset.c.tr added (r1.1.2.1)
2004-02-13-StringInit.c.tr added (r1.1.2.1)
2004-02-14-ZeroInitializer.c.tr added (r1.1.2.1)
2004-02-20-Builtins.c.tr added (r1.1.2.1)
2004-02-20-StaticRedeclare.c.tr added (r1.1.2.1)

---
Log message:

Merge from trunk

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

Index: llvm/test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,8 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memcpy
+ 
+ struct X { int V[10000]; };
+ struct X Global1, Global2;
+ void test() {
+   Global2 = Global1;
+ }
+ 


Index: llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,8 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep 'llvm.*address' | wc -l | grep 4
+ 
+ void *test1() {
+   return __builtin_return_address(1);
+ }
+ void *test2() {
+   return __builtin_frame_address(0);
+ }


Index: llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,11 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llc
+ 
+ #include <stdarg.h>
+ 
+ float test(int X, ...) {
+   va_list ap;
+   float F;
+   va_start(ap, X);
+   F = va_arg(ap, float);
+   return F;
+ }


Index: llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-13-Memset.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,6 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | wc -l | grep 3
+ 
+ void test(int* X, char *Y) {
+   memset(X, 4, 1000);
+   bzero(Y, 100);
+ }


Index: llvm/test/Regression/CFrontend/2004-02-13-StringInit.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-StringInit.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-13-StringInit.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,7 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset
+ 
+ char test(int X) {
+   char str[10000] = "abc"; // tail should be memset.
+   return str[X];
+ } 
+ 


Index: llvm/test/Regression/CFrontend/2004-02-14-ZeroInitializer.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-14-ZeroInitializer.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-14-ZeroInitializer.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,4 ----
+ // RUN: %llvmgcc -xc %s -S -o - | grep zeroinitializer
+ 
+ int X[1000];
+ 


Index: llvm/test/Regression/CFrontend/2004-02-20-Builtins.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-20-Builtins.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-20-Builtins.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,6 ----
+ // RUN: %llvmgcc -O3 -xc %s -c -o - | llvm-dis | not grep builtin
+ 
+ void zsqrtxxx(float num) {
+    num = sqrt(num);
+ }
+ 


Index: llvm/test/Regression/CFrontend/2004-02-20-StaticRedeclare.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-20-StaticRedeclare.c.tr:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CFrontend/2004-02-20-StaticRedeclare.c.tr	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,9 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep declare
+ 
+ int one (int a) {
+   two (a, 5);
+   return 0;
+ }
+ 
+ static int two (int a, int b) {
+ }





More information about the llvm-commits mailing list