1; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN 2; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | FileCheck %s --check-prefix=DARWIN 3; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=static | FileCheck %s -check-prefix=DARWIN-STATIC 4; RUN: llc < %s -mtriple=arm-linux-gnu -target-abi=apcs | FileCheck %s -check-prefix=ELF 5; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=GNUEABI 6 7; DARWIN: .section __DATA,__mod_init_func,mod_init_funcs 8; DARWIN: .long _f151 9; DARWIN-NEXT: .long _f152 10 11; DARWIN-STATIC: .section __TEXT,__constructor 12 13; ELF: .section .ctors.65384,"aw",%progbits 14; ELF: .long f151 15; ELF: .section .ctors.65383,"aw",%progbits 16; ELF: .long f152 17 18; GNUEABI: .section .init_array.151,"aw",%init_array 19; GNUEABI: .long f151 20; GNUEABI: .section .init_array.152,"aw",%init_array 21; GNUEABI: .long f152 22 23 24@llvm.global_ctors = appending global [2 x { i32, void ()*, i8* }] [ { i32, void ()*, i8* } { i32 151, void ()* @f151, i8* null }, { i32, void ()*, i8* } { i32 152, void ()* @f152, i8* null } ] 25 26define void @f151() { 27entry: 28 ret void 29} 30 31define void @f152() { 32entry: 33 ret void 34} 35