2009-08-10 03:39:42 +02: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 02:32:26 +02:00
|
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=GNUEABI
|
|
|
|
|
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
|
|
|
|
|
|
|
; 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 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
|
|
|
}
|