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

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 8 13:57:59 PDT 2004



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

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

New testcase


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

Index: llvm/test/Regression/Transforms/GlobalOpt/iterate.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/iterate.llx:1.1
*** /dev/null	Fri Oct  8 15:57:56 2004
--- llvm/test/Regression/Transforms/GlobalOpt/iterate.llx	Fri Oct  8 15:57:46 2004
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep %G
+ 
+ %G = internal global int 0
+ %H = internal global { int* } { int* %G }
+ 
+ int %loadg() {
+ 	%G = load int** getelementptr ({int*}* %H, int 0, uint 0)
+ 	%GV = load int* %G
+ 	ret int %GV
+ }






More information about the llvm-commits mailing list