[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/ctors_dtors.ll

Lauro Ramos Venancio lauro.venancio at gmail.com
Thu Jan 4 06:41:48 PST 2007



Changes in directory llvm/test/Regression/CodeGen/ARM:

ctors_dtors.ll added (r1.1)
---
Log message:

Add test for constructor and destructor sections. 


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

 ctors_dtors.ll |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)


Index: llvm/test/Regression/CodeGen/ARM/ctors_dtors.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/ctors_dtors.ll:1.1
*** /dev/null	Thu Jan  4 08:41:43 2007
--- llvm/test/Regression/CodeGen/ARM/ctors_dtors.ll	Thu Jan  4 08:41:33 2007
***************
*** 0 ****
--- 1,16 ----
+ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -o %t.s -f &&
+ ; RUN: grep '\.section \.ctors,"aw",.progbits' %t.s | grep % &&
+ ; RUN: grep '\.section \.dtors,"aw",.progbits' %t.s | grep %
+ 
+ %llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %__mf_init } ]		; <[1 x { int, void ()* }]*> [#uses=0]
+ %llvm.global_dtors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %__mf_fini } ]		; <[1 x { int, void ()* }]*> [#uses=0]
+ 
+ void %__mf_init() {
+ entry:
+ 	ret void
+ }
+ 
+ void %__mf_fini() {
+ entry:
+ 	ret void
+ }






More information about the llvm-commits mailing list