[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/storepointer.llx

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 9 14:50:16 PDT 2004



Changes in directory llvm/test/Regression/Transforms/GlobalOpt:

storepointer.llx added (r1.1)
---
Log message:

A testcase that globalopt now handles


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

Index: llvm/test/Regression/Transforms/GlobalOpt/storepointer.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/storepointer.llx:1.1
*** /dev/null	Sat Oct  9 16:50:15 2004
--- llvm/test/Regression/Transforms/GlobalOpt/storepointer.llx	Sat Oct  9 16:50:05 2004
***************
*** 0 ****
--- 1,20 ----
+ ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
+ 
+ %G = internal global void ()* null
+ 
+ implementation
+ 
+ internal void %Actual() {
+ 	ret void
+ }
+ 
+ void %init() {
+ 	store void()* %Actual, void()** %G
+ 	ret void
+ }
+ 
+ void %doit() {
+ 	%FP = load void()** %G
+ 	call void %FP()
+ 	ret void
+ }






More information about the llvm-commits mailing list