[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/ctor-list-opt.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 25 18:42:15 PDT 2005
Changes in directory llvm/test/Regression/Transforms/GlobalOpt:
ctor-list-opt.ll added (r1.1)
---
Log message:
new testcase for static ctor list optimizations
---
Diffs of the changes: (+14 -0)
ctor-list-opt.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/Transforms/GlobalOpt/ctor-list-opt.ll
diff -c /dev/null llvm/test/Regression/Transforms/GlobalOpt/ctor-list-opt.ll:1.1
*** /dev/null Sun Sep 25 20:42:13 2005
--- llvm/test/Regression/Transforms/GlobalOpt/ctor-list-opt.ll Sun Sep 25 20:42:03 2005
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | opt -globalopt -disable-output &&
+ ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep CTOR
+
+ %llvm.global_ctors = appending global [2 x { int, void ()* }] [
+ { int, void ()* } { int 65535, void ()* %CTOR1 },
+ { int, void ()* } { int 65535, void ()* %CTOR1 }
+ ]
+
+ implementation
+
+ internal void %CTOR1() { ;; noop ctor, remove.
+ ret void
+ }
+
More information about the llvm-commits
mailing list