1 ; RUN: llc -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -verify-machineinstrs < %s | FileCheck %s
4 @llvm.global_ctors = appending global [5 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 0, ptr @cf1, ptr null }, { i32, ptr, ptr } { i32 21, ptr @cf2, ptr null }, { i32, ptr, ptr } { i32 81, ptr @cf3, ptr null }, { i32, ptr, ptr } { i32 1125, ptr @cf4, ptr null }, { i32, ptr, ptr } { i32 64512, ptr @cf5, ptr null }]
5 @llvm.global_dtors = appending global [5 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 20, ptr @df1, ptr null }, { i32, ptr, ptr } { i32 80, ptr @df2, ptr null }, { i32, ptr, ptr } { i32 1124, ptr @df3, ptr null }, { i32, ptr, ptr } { i32 64511, ptr @df4, ptr null }, { i32, ptr, ptr } { i32 65535, ptr @df5, ptr null }]
7 define i32 @cf1(i32 %a) {
27 define i32 @df1(i32 %a) {
47 ; CHECK: .globl cf1[DS]
50 ; CHECK: .csect cf1[DS]
51 ; CHECK: __sinit00000000_clang_f6a1bc9396775a64c6249effda300afe_0: # @cf1
53 ; CHECK: .__sinit00000000_clang_f6a1bc9396775a64c6249effda300afe_0:
55 ; CHECK: .globl cf2[DS]
58 ; CHECK: .csect cf2[DS]
59 ; CHECK: __sinit00000024_clang_f6a1bc9396775a64c6249effda300afe_1: # @cf2
61 ; CHECK: .__sinit00000024_clang_f6a1bc9396775a64c6249effda300afe_1:
63 ; CHECK: .globl cf3[DS]
66 ; CHECK: .csect cf3[DS]
67 ; CHECK: __sinit000003ec_clang_f6a1bc9396775a64c6249effda300afe_2: # @cf3
69 ; CHECK: .__sinit000003ec_clang_f6a1bc9396775a64c6249effda300afe_2:
71 ; CHECK: .globl cf4[DS]
74 ; CHECK: .csect cf4[DS]
75 ; CHECK: __sinit00008c55_clang_f6a1bc9396775a64c6249effda300afe_3: # @cf4
77 ; CHECK: .__sinit00008c55_clang_f6a1bc9396775a64c6249effda300afe_3:
79 ; CHECK: .globl cf5[DS]
82 ; CHECK: .csect cf5[DS]
83 ; CHECK: __sinit7ffffc01_clang_f6a1bc9396775a64c6249effda300afe_4: # @cf5
85 ; CHECK: .__sinit7ffffc01_clang_f6a1bc9396775a64c6249effda300afe_4:
87 ; CHECK: .globl df1[DS]
90 ; CHECK: .csect df1[DS]
91 ; CHECK: __sterm00000014_clang_f6a1bc9396775a64c6249effda300afe_0: # @df1
93 ; CHECK: .__sterm00000014_clang_f6a1bc9396775a64c6249effda300afe_0:
95 ; CHECK: .globl df2[DS]
98 ; CHECK: .csect df2[DS]
99 ; CHECK: __sterm000003d4_clang_f6a1bc9396775a64c6249effda300afe_1: # @df2
101 ; CHECK: .__sterm000003d4_clang_f6a1bc9396775a64c6249effda300afe_1:
103 ; CHECK: .globl df3[DS]
106 ; CHECK: .csect df3[DS]
107 ; CHECK: __sterm000007ff_clang_f6a1bc9396775a64c6249effda300afe_2: # @df3
109 ; CHECK: .__sterm000007ff_clang_f6a1bc9396775a64c6249effda300afe_2:
111 ; CHECK: .globl df4[DS]
114 ; CHECK: .csect df4[DS]
115 ; CHECK: __sterm7fff2211_clang_f6a1bc9396775a64c6249effda300afe_3: # @df4
117 ; CHECK: .__sterm7fff2211_clang_f6a1bc9396775a64c6249effda300afe_3:
119 ; CHECK: .globl df5[DS]
122 ; CHECK: .csect df5[DS]
123 ; CHECK: __sterm80000000_clang_f6a1bc9396775a64c6249effda300afe_4: # @df5
125 ; CHECK: .__sterm80000000_clang_f6a1bc9396775a64c6249effda300afe_4:
127 ; CHECK: .globl __sinit00000000_clang_f6a1bc9396775a64c6249effda300afe_0
128 ; CHECK: .globl .__sinit00000000_clang_f6a1bc9396775a64c6249effda300afe_0
129 ; CHECK: .globl __sinit00000024_clang_f6a1bc9396775a64c6249effda300afe_1
130 ; CHECK: .globl .__sinit00000024_clang_f6a1bc9396775a64c6249effda300afe_1
131 ; CHECK: .globl __sinit000003ec_clang_f6a1bc9396775a64c6249effda300afe_2
132 ; CHECK: .globl .__sinit000003ec_clang_f6a1bc9396775a64c6249effda300afe_2
133 ; CHECK: .globl __sinit00008c55_clang_f6a1bc9396775a64c6249effda300afe_3
134 ; CHECK: .globl .__sinit00008c55_clang_f6a1bc9396775a64c6249effda300afe_3
135 ; CHECK: .globl __sinit7ffffc01_clang_f6a1bc9396775a64c6249effda300afe_4
136 ; CHECK: .globl .__sinit7ffffc01_clang_f6a1bc9396775a64c6249effda300afe_4
137 ; CHECK: .globl __sterm00000014_clang_f6a1bc9396775a64c6249effda300afe_0
138 ; CHECK: .globl .__sterm00000014_clang_f6a1bc9396775a64c6249effda300afe_0
139 ; CHECK: .globl __sterm000003d4_clang_f6a1bc9396775a64c6249effda300afe_1
140 ; CHECK: .globl .__sterm000003d4_clang_f6a1bc9396775a64c6249effda300afe_1
141 ; CHECK: .globl __sterm000007ff_clang_f6a1bc9396775a64c6249effda300afe_2
142 ; CHECK: .globl .__sterm000007ff_clang_f6a1bc9396775a64c6249effda300afe_2
143 ; CHECK: .globl __sterm7fff2211_clang_f6a1bc9396775a64c6249effda300afe_3
144 ; CHECK: .globl .__sterm7fff2211_clang_f6a1bc9396775a64c6249effda300afe_3
145 ; CHECK: .globl __sterm80000000_clang_f6a1bc9396775a64c6249effda300afe_4
146 ; CHECK: .globl .__sterm80000000_clang_f6a1bc9396775a64c6249effda300afe_4