2009-01-15 20:18:42 +00:00
|
|
|
; Test to make sure that the 'private' is used correctly.
|
|
|
|
;
|
2014-02-06 23:35:22 +00:00
|
|
|
; 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
|
2009-01-15 20:18:42 +00:00
|
|
|
|
2014-02-06 23:35:22 +00:00
|
|
|
; LINUX: .Lfoo:
|
2014-02-19 17:23:20 +00:00
|
|
|
; OSX: l_foo:
|
2009-07-14 04:50:12 +00:00
|
|
|
define private void @foo() nounwind {
|
2009-01-15 20:18:42 +00:00
|
|
|
ret void
|
2009-08-23 10:44:51 +00:00
|
|
|
}
|
2009-07-23 00:09:46 +00:00
|
|
|
|
2009-07-14 04:50:12 +00:00
|
|
|
define i32 @bar() nounwind {
|
2014-02-06 23:35:22 +00:00
|
|
|
; LINUX: bl{{.*}}.Lfoo
|
2014-02-19 17:23:20 +00:00
|
|
|
; OSX: bl{{.*}}l_foo
|
2009-01-15 20:18:42 +00:00
|
|
|
call void @foo()
|
2014-02-06 23:35:22 +00:00
|
|
|
|
|
|
|
; LINUX: lis{{.*}}.Lbaz
|
2014-02-19 17:23:20 +00:00
|
|
|
; OSX: lis{{.*}}l_baz
|
2009-01-15 20:18:42 +00:00
|
|
|
%1 = load i32* @baz, align 4
|
|
|
|
ret i32 %1
|
|
|
|
}
|
2014-02-06 23:35:22 +00:00
|
|
|
|
|
|
|
; LINUX: .Lbaz:
|
2014-02-19 17:23:20 +00:00
|
|
|
; OSX: l_baz:
|
2014-02-06 23:35:22 +00:00
|
|
|
@baz = private global i32 4
|