2016-08-04 02:17:35 +08:00
|
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc-apple-darwin < %s | FileCheck %s
|
2016-05-17 22:24:33 +08:00
|
|
|
|
|
|
|
@a = external hidden global i32
|
|
|
|
@b = external global i32
|
|
|
|
|
|
|
|
define i32* @get_a() {
|
|
|
|
ret i32* @a
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32* @get_b() {
|
|
|
|
ret i32* @b
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
|
|
|
|
; CHECK-NEXT: .p2align 2
|
2016-05-20 20:00:52 +08:00
|
|
|
; CHECK-NEXT: L_a$non_lazy_ptr:
|
|
|
|
; CHECK-NEXT: .indirect_symbol _a
|
|
|
|
; CHECK-NEXT: .long 0
|
2016-05-17 22:24:33 +08:00
|
|
|
; CHECK-NEXT: L_b$non_lazy_ptr:
|
|
|
|
; CHECK-NEXT: .indirect_symbol _b
|
|
|
|
; CHECK-NEXT: .long 0
|