2009-01-15 20:18:42 +00:00
|
|
|
; Test to make sure that the 'private' is used correctly.
|
|
|
|
;
|
2013-07-13 17:30:25 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
2009-01-15 20:18:42 +00:00
|
|
|
|
|
|
|
define private void @foo() {
|
|
|
|
ret void
|
|
|
|
|
2013-07-13 17:30:25 +00:00
|
|
|
; CHECK: .Lfoo:
|
|
|
|
}
|
2009-01-15 20:18:42 +00:00
|
|
|
|
|
|
|
define i32 @bar() {
|
|
|
|
call void @foo()
|
2015-02-27 21:17:42 +00:00
|
|
|
%1 = load i32, i32* @baz, align 4
|
2009-01-15 20:18:42 +00:00
|
|
|
ret i32 %1
|
2013-07-13 17:30:25 +00:00
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: bar:
|
2013-07-13 17:30:25 +00:00
|
|
|
; CHECK: callq .Lfoo
|
|
|
|
; CHECK: movl .Lbaz(%rip)
|
2009-01-15 20:18:42 +00:00
|
|
|
}
|
2013-07-13 17:30:25 +00:00
|
|
|
|
|
|
|
@baz = private global i32 4
|
|
|
|
; CHECK: .Lbaz:
|