[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/globalsra.llx
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 8 10:30:00 PDT 2004
Changes in directory llvm/test/Regression/Transforms/GlobalOpt:
globalsra.llx added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+19 -0)
Index: llvm/test/Regression/Transforms/GlobalOpt/globalsra.llx
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/globalsra.llx:1.1
*** /dev/null Fri Oct 8 12:29:57 2004
--- llvm/test/Regression/Transforms/GlobalOpt/globalsra.llx Fri Oct 8 12:29:47 2004
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
+
+ %G = internal global { int, float, {double} } { int 1, float 1.0, {double} {double 17.27} }
+
+ void %onlystore() {
+ store int 123, int* getelementptr ({ int, float, {double} }* %G, int 0, uint 0)
+ ret void
+ }
+
+ float %storeinit() {
+ store float 1.0, float* getelementptr ({ int, float, {double} }* %G, int 0, uint 1)
+ %X = load float* getelementptr ({ int, float, {double} }* %G, int 0, uint 1)
+ ret float %X
+ }
+
+ double %constantize() {
+ %X = load double* getelementptr ({ int, float, {double} }* %G, int 0, uint 2, uint 0)
+ ret double %X
+ }
More information about the llvm-commits
mailing list