[llvm-commits] CVS: llvm/test/CFrontend/block-copy.c

Chris Lattner sabre at nondot.org
Tue Apr 24 18:51:52 PDT 2007



Changes in directory llvm/test/CFrontend:

block-copy.c added (r1.1)
---
Log message:

new testcase


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

 block-copy.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+)


Index: llvm/test/CFrontend/block-copy.c
diff -c /dev/null llvm/test/CFrontend/block-copy.c:1.1
*** /dev/null	Tue Apr 24 20:51:43 2007
--- llvm/test/CFrontend/block-copy.c	Tue Apr 24 20:51:33 2007
***************
*** 0 ****
--- 1,20 ----
+ /* RUN: %llvmgcc %s -S -o - -emit-llvm -O3 | grep {call.*memcpy}
+ 
+  This should compile into a memcpy from a global, not 128 stores. */
+ 
+ 
+ 
+ void foo();
+ 
+ float bar() {
+ 	float lookupTable[] = {-1,-1,-1,0, -1,-1,0,-1, -1,-1,0,1, -1,-1,1,0,
+ 						   -1,0,-1,-1, -1,0,-1,1, -1,0,1,-1, -1,0,1,1,
+ 						   -1,1,-1,0, -1,1,0,-1, -1,1,0,1, -1,1,1,0,
+ 						   0,-1,-1,-1, 0,-1,-1,1, 0,-1,1,-1, 0,-1,1,1,
+ 						   1,-1,-1,0, 1,-1,0,-1, 1,-1,0,1, 1,-1,1,0,
+ 						   1,0,-1,-1, 1,0,-1,1, 1,0,1,-1, 1,0,1,1,
+ 						   1,1,-1,0, 1,1,0,-1, 1,1,0,1, 1,1,1,0,
+ 						   0,1,-1,-1, 0,1,-1,1, 0,1,1,-1, 0,1,1,1};
+    foo(lookupTable);
+ }
+ 






More information about the llvm-commits mailing list