1 ; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck %s
2 ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s
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 }]
7 define i32 @extFunc() {
12 define internal void @init1() {
16 define internal void @destruct1() {
20 define internal void @init2() {
24 define internal void @destruct2() {
28 ; CHECK: .lglobl init1[DS]
29 ; CHECK: .lglobl .init1
30 ; CHECK: .csect init1[DS]
31 ; CHECK: __sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0: # @init1
33 ; CHECK: .__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0:
34 ; CHECK: .lglobl destruct1[DS]
35 ; CHECK: .lglobl .destruct1
36 ; CHECK: .csect destruct1[DS]
37 ; CHECK: __sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0: # @destruct1
39 ; CHECK: .__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0:
40 ; CHECK: .lglobl init2[DS]
41 ; CHECK: .lglobl .init2
42 ; CHECK: .csect init2[DS]
43 ; CHECK: __sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1: # @init2
45 ; CHECK: .__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1:
46 ; CHECK: .lglobl destruct2[DS]
47 ; CHECK: .lglobl .destruct2
48 ; CHECK: .csect destruct2[DS]
49 ; CHECK: __sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1: # @destruct2
51 ; CHECK: .__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1:
53 ; CHECK: .globl __sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0
54 ; CHECK: .globl .__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0
55 ; CHECK: .globl __sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1
56 ; CHECK: .globl .__sinit80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1
57 ; CHECK: .globl __sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0
58 ; CHECK: .globl .__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_0
59 ; CHECK: .globl __sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1
60 ; CHECK: .globl .__sterm80000000_clang_ac404299654d2af7eae71e75c17f7c9b_1