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

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 16 11:28:12 PDT 2004



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

undef-init.llx added (r1.1)
---
Log message:

New testcase


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

Index: llvm/test/Regression/Transforms/GlobalOpt/undef-init.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/undef-init.llx:1.1
*** /dev/null	Sat Oct 16 13:28:11 2004
--- llvm/test/Regression/Transforms/GlobalOpt/undef-init.llx	Sat Oct 16 13:28:01 2004
***************
*** 0 ****
--- 1,18 ----
+ ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep store
+ 
+ %llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %_GLOBAL__I__Z3foov } ]		; <[1 x { int, void ()* }]*> [#uses=0]
+ %X.0 = internal global int undef		; <int*> [#uses=2]
+ 
+ implementation   ; Functions:
+ 
+ int %_Z3foov() {
+ entry:
+ 	%tmp.1 = load int* %X.0		; <int> [#uses=1]
+ 	ret int %tmp.1
+ }
+ 
+ internal void %_GLOBAL__I__Z3foov() {
+ entry:
+ 	store int 1, int* %X.0
+ 	ret void
+ }






More information about the llvm-commits mailing list