1; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck %s
2; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s
3
4@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }]
5
6define internal void @foo() {
7  ret void
8}
9
10; FIXME: Adjust the comment after we use source file full path to generate unique
11; module id instead.
12; Use the Pid and timestamp to generate a unique module id when strong external
13; symbols are not available in current module. The module id generated in this
14; way is not reproducible. A function name sample would be:
15; __sinit80000000_clangPidTime_119189_1597348415_0
16
17; CHECK:              .lglobl        foo[DS]
18; CHECK:              .lglobl        .foo
19; CHECK:              .csect foo[DS]
20; CHECK-NEXT: __sinit80000000_clangPidTime_[[PID:[0-9]+]]_[[TIMESTAMP:[0-9]+]]_0:
21; CHECK:      .foo:
22; CHECK-NEXT: .__sinit80000000_clangPidTime_[[PID]]_[[TIMESTAMP]]_0:
23; CHECK:      .globl	__sinit80000000_clangPidTime_[[PID]]_[[TIMESTAMP]]_0
24; CHECK:      .globl	.__sinit80000000_clangPidTime_[[PID]]_[[TIMESTAMP]]_0
25