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