• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=powerpc-apple-darwin < %s | FileCheck %s
2
3@a = external hidden global i32
4@b = external global i32
5
6define i32* @get_a() {
7  ret i32* @a
8}
9
10define i32* @get_b() {
11  ret i32* @b
12}
13
14; CHECK:      .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
15; CHECK-NEXT: .p2align  2
16; CHECK-NEXT: L_a$non_lazy_ptr:
17; CHECK-NEXT:   .indirect_symbol        _a
18; CHECK-NEXT:   .long   0
19; CHECK-NEXT: L_b$non_lazy_ptr:
20; CHECK-NEXT:   .indirect_symbol        _b
21; CHECK-NEXT:   .long   0
22