2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
|
2017-06-30 08:03:54 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-linux-gnu -target-abi=apcs | FileCheck %s -check-prefix=ELF
|
2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=GNUEABI
|
2009-08-02 08:32:26 +08:00
|
|
|
|
2009-08-10 09:39:42 +08:00
|
|
|
; DARWIN: .section __DATA,__mod_init_func,mod_init_funcs
|
|
|
|
; DARWIN: .section __DATA,__mod_term_func,mod_term_funcs
|
2009-08-02 08:32:26 +08:00
|
|
|
|
2011-03-05 04:03:14 +08:00
|
|
|
; ELF: .section .ctors,"aw",%progbits
|
|
|
|
; ELF: .section .dtors,"aw",%progbits
|
2009-08-02 08:32:26 +08:00
|
|
|
|
2011-03-05 04:03:14 +08:00
|
|
|
; GNUEABI: .section .init_array,"aw",%init_array
|
|
|
|
; GNUEABI: .section .fini_array,"aw",%fini_array
|
2007-01-04 22:41:33 +08:00
|
|
|
|
2008-02-18 04:02:20 +08: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 22:41:33 +08:00
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
define void @__mf_init() {
|
2007-01-04 22:41:33 +08:00
|
|
|
entry:
|
2008-02-18 04:02:20 +08:00
|
|
|
ret void
|
2007-01-04 22:41:33 +08:00
|
|
|
}
|
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
define void @__mf_fini() {
|
2007-01-04 22:41:33 +08:00
|
|
|
entry:
|
2008-02-18 04:02:20 +08:00
|
|
|
ret void
|
2007-01-04 22:41:33 +08:00
|
|
|
}
|