2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
|
2007-04-15 19:11:47 +00:00
|
|
|
; RUN: grep {\\.mod_init_func}
|
2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
|
2007-04-15 19:11:47 +00:00
|
|
|
; RUN: grep {\\.mod_term_func}
|
2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | \
|
2007-04-15 19:11:47 +00:00
|
|
|
; RUN: grep {\\.section \\.ctors,"aw",.progbits}
|
2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | \
|
2007-04-15 19:11:47 +00:00
|
|
|
; RUN: grep {\\.section \\.dtors,"aw",.progbits}
|
2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
|
2007-04-15 19:11:47 +00:00
|
|
|
; RUN: grep {\\.section \\.init_array,"aw",.init_array}
|
2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
|
2007-04-15 19:11:47 +00:00
|
|
|
; RUN: grep {\\.section \\.fini_array,"aw",.fini_array}
|
2007-01-04 14:41:33 +00:00
|
|
|
|
2008-02-17 20:02:20 +00:00
|
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @__mf_init } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
|
|
|
|
@llvm.global_dtors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @__mf_fini } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
|
2007-01-04 14:41:33 +00:00
|
|
|
|
2008-02-17 20:02:20 +00:00
|
|
|
define void @__mf_init() {
|
2007-01-04 14:41:33 +00:00
|
|
|
entry:
|
2008-02-17 20:02:20 +00:00
|
|
|
ret void
|
2007-01-04 14:41:33 +00:00
|
|
|
}
|
|
|
|
|
2008-02-17 20:02:20 +00:00
|
|
|
define void @__mf_fini() {
|
2007-01-04 14:41:33 +00:00
|
|
|
entry:
|
2008-02-17 20:02:20 +00:00
|
|
|
ret void
|
2007-01-04 14:41:33 +00:00
|
|
|
}
|