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