brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · ccfced9 Raw
61 lines · plain
1; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck %s2; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s3 4@llvm.global_ctors = appending global [2 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @init1, ptr null }, { i32, ptr, ptr } { i32 65535, ptr @init2, ptr null }]5@llvm.global_dtors = appending global [2 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @destruct1, ptr null }, { i32, ptr, ptr } { i32 65535, ptr @destruct2, ptr null }]6 7define i32 @extFunc() {8entry:9  ret i32 310}11 12define internal void @init1() {13  ret void14}15 16define internal void @destruct1() {17  ret void18}19 20define internal void @init2() {21  ret void22}23 24define internal void @destruct2() {25  ret void26}27 28; CHECK:       .lglobl	init1[DS]29; CHECK:       .lglobl	.init130; CHECK:       .csect init1[DS]31; CHECK: __sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0: # @init132; CHECK: .init1:33; CHECK: .__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0:34; CHECK:       .lglobl	destruct1[DS]35; CHECK:       .lglobl	.destruct136; CHECK:       .csect destruct1[DS]37; CHECK: __sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0: # @destruct138; CHECK: .destruct1:39; CHECK: .__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0:40; CHECK:       .lglobl	init2[DS]41; CHECK:       .lglobl	.init242; CHECK:       .csect init2[DS]43; CHECK: __sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1: # @init244; CHECK: .init2:45; CHECK: .__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1:46; CHECK:       .lglobl	destruct2[DS]47; CHECK:       .lglobl	.destruct248; CHECK:       .csect destruct2[DS]49; CHECK: __sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1: # @destruct250; CHECK: .destruct2:51; CHECK: .__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1:52 53; CHECK: 	.globl	__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_054; CHECK: 	.globl	.__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_055; CHECK: 	.globl	__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_156; CHECK: 	.globl	.__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_157; CHECK: 	.globl	__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_058; CHECK: 	.globl	.__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_059; CHECK: 	.globl	__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_160; CHECK: 	.globl	.__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_161