• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr4 -mattr=-altivec -data-sections=false < %s | \
2; RUN:   FileCheck %s
3; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=pwr4 -mattr=-altivec -data-sections=false < %s |\
4; RUN:   FileCheck %s
5
6@b =  global i32 0, align 4
7@b_h = hidden global i32 0, align 4
8
9define void @foo() {
10entry:
11  ret void
12}
13
14define hidden void @foo_h(i32* %ip) {
15entry:
16  ret void
17}
18
19define protected void @foo_protected(i32* %ip) {
20entry:
21  ret void
22}
23
24define weak hidden void @foo_weak_h() {
25entry:
26  ret void
27}
28
29@foo_p = global void ()* @zoo_weak_extern_h, align 4
30declare extern_weak hidden void @zoo_weak_extern_h()
31
32define i32 @main() {
33entry:
34  %call1= call i32 @bar_h(i32* @b_h)
35  call void @foo_weak_h()
36  %0 = load void ()*, void ()** @foo_p, align 4
37  call void %0()
38  ret i32 0
39}
40
41declare hidden i32 @bar_h(i32*)
42
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
51
52; CHECK:        .globl  b{{[[:space:]]*([#].*)?$}}
53; CHECK:        .globl  b_h,hidden
54
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
59