1 ; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr4 -mattr=-altivec -data-sections=false < %s | \
3 ; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=pwr4 -mattr=-altivec -data-sections=false < %s |\
6 @b = global i32 0, align 4
7 @b_h = hidden global i32 0, align 4
14 define hidden void @foo_h(i32* %ip) {
19 define protected void @foo_protected(i32* %ip) {
24 define weak hidden void @foo_weak_h() {
29 @foo_p = global void ()* @zoo_weak_extern_h, align 4
30 declare extern_weak hidden void @zoo_weak_extern_h()
34 %call1= call i32 @bar_h(i32* @b_h)
35 call void @foo_weak_h()
36 %0 = load void ()*, void ()** @foo_p, align 4
41 declare hidden i32 @bar_h(i32*)
43 ; CHECK: .globl foo[DS]{{[[:space:]]*([#].*)?$}}
44 ; CHECK: .globl .foo{{[[:space:]]*([#].*)?$}}
45 ; CHECK: .globl foo_h[DS],hidden
46 ; CHECK: .globl .foo_h,hidden
47 ; CHECK: .globl foo_protected[DS],protected
48 ; CHECK: .globl .foo_protected,protected
49 ; CHECK: .weak foo_weak_h[DS],hidden
50 ; CHECK: .weak .foo_weak_h,hidden
52 ; CHECK: .globl b{{[[:space:]]*([#].*)?$}}
53 ; CHECK: .globl b_h,hidden
55 ; CHECK: .weak .zoo_weak_extern_h[PR],hidden
56 ; CHECK: .weak zoo_weak_extern_h[DS],hidden
57 ; CHECK: .extern .bar_h[PR],hidden
58 ; CHECK: .extern bar_h[DS],hidden