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 [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @foo, ptr null }]
6 define internal void @foo() {
10 ; Use the Pid, threadId, and timestamp to generate a unique module id when strong external
11 ; symbols are not available in current module. The module id generated in this
12 ; way is not reproducible. A function name sample would be:
13 ; __sinit80000000_clangPidTidTime_56689326_1_57027228417827568_0
15 ; CHECK: .lglobl foo[DS]
17 ; CHECK: .csect foo[DS]
18 ; CHECK-NEXT: __sinit80000000_clangPidTidTime_[[PID:[0-9]+]]_[[TID:[0-9]+]]_[[TIMESTAMP:[0-9]+]]_0:
20 ; CHECK-NEXT: .__sinit80000000_clangPidTidTime_[[PID]]_[[TID]]_[[TIMESTAMP]]_0:
21 ; CHECK: .globl __sinit80000000_clangPidTidTime_[[PID]]_[[TID]]_[[TIMESTAMP]]_0
22 ; CHECK: .globl .__sinit80000000_clangPidTidTime_[[PID]]_[[TID]]_[[TIMESTAMP]]_0