1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Add a test showing how hidden stubs are handled on ppc.

llvm-svn: 269766
This commit is contained in:
Rafael Espindola 2016-05-17 14:24:33 +00:00
parent a4c8f60ff3
commit 6af348a0a8

View File

@ -0,0 +1,23 @@
; RUN: llc -mtriple=powerpc-apple-darwin < %s | FileCheck %s
@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
; CHECK-NEXT: L_b$non_lazy_ptr:
; CHECK-NEXT: .indirect_symbol _b
; CHECK-NEXT: .long 0
; CHECK: .section __DATA,__data
; CHECK-NEXT: .p2align 2
; CHECK-NEXT: L_a$non_lazy_ptr:
; CHECK-NEXT: .long _a