2009-08-10 01:39:42 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
|
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=ELF
|
2009-08-02 00:32:26 +00:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=GNUEABI
|
|
|
|
|
2009-08-10 01:39:42 +00:00
|
|
|
; DARWIN: .section __DATA,__mod_init_func,mod_init_funcs
|
|
|
|
; DARWIN: .section __DATA,__mod_term_func,mod_term_funcs
|
2009-08-02 00:32:26 +00:00
|
|
|
|
|
|
|
; ELF: .section .ctors,"aw",%progbits
|
|
|
|
; ELF: .section .dtors,"aw",%progbits
|
|
|
|
|
|
|
|
; GNUEABI: .section .init_array,"aw",%init_array
|
|
|
|
; GNUEABI: .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
|
|
|
}
|