mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 04:52:54 +02:00
bf4e7d8ac3
This causes the LLVMgold plugin to segfault. More information on the replies to r201608. llvm-svn: 201669
29 lines
592 B
LLVM
29 lines
592 B
LLVM
; Test to make sure that the 'private' is used correctly.
|
|
;
|
|
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | \
|
|
; RUN: FileCheck --check-prefix=LINUX %s
|
|
;
|
|
; RUN: llc < %s -mtriple=powerpc-apple-darwin | \
|
|
; RUN: FileCheck --check-prefix=OSX %s
|
|
|
|
; LINUX: .Lfoo:
|
|
; OSX: L_foo:
|
|
define private void @foo() nounwind {
|
|
ret void
|
|
}
|
|
|
|
define i32 @bar() nounwind {
|
|
; LINUX: bl{{.*}}.Lfoo
|
|
; OSX: bl{{.*}}L_foo
|
|
call void @foo()
|
|
|
|
; LINUX: lis{{.*}}.Lbaz
|
|
; OSX: lis{{.*}}L_baz
|
|
%1 = load i32* @baz, align 4
|
|
ret i32 %1
|
|
}
|
|
|
|
; LINUX: .Lbaz:
|
|
; OSX: L_baz:
|
|
@baz = private global i32 4
|