2009-01-16 04:18:42 +08:00
|
|
|
; Test to make sure that the 'private' is used correctly.
|
|
|
|
;
|
2018-08-28 09:18:29 +08:00
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
|
2009-01-16 04:18:42 +08:00
|
|
|
|
2018-08-28 09:18:29 +08:00
|
|
|
; CHECK: .Lfoo:
|
2009-07-14 12:50:12 +08:00
|
|
|
define private void @foo() nounwind {
|
2009-01-16 04:18:42 +08:00
|
|
|
ret void
|
2009-08-23 18:44:51 +08:00
|
|
|
}
|
2009-07-23 08:09:46 +08:00
|
|
|
|
2009-07-14 12:50:12 +08:00
|
|
|
define i32 @bar() nounwind {
|
2018-08-28 09:18:29 +08:00
|
|
|
; CHECK: bl{{.*}}.Lfoo
|
2009-01-16 04:18:42 +08:00
|
|
|
call void @foo()
|
2014-02-07 07:35:22 +08:00
|
|
|
|
2018-08-28 09:18:29 +08:00
|
|
|
; CHECK: lis{{.*}}.Lbaz
|
2015-02-28 05:17:42 +08:00
|
|
|
%1 = load i32, i32* @baz, align 4
|
2009-01-16 04:18:42 +08:00
|
|
|
ret i32 %1
|
|
|
|
}
|
2014-02-07 07:35:22 +08:00
|
|
|
|
2018-08-28 09:18:29 +08:00
|
|
|
; CHECK: .Lbaz:
|
2014-02-07 07:35:22 +08:00
|
|
|
@baz = private global i32 4
|