mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Convert test to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30c0f72237
commit
1dd4d5f760
@ -1,24 +1,28 @@
|
||||
; Test to make sure that the 'private' is used correctly.
|
||||
;
|
||||
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu > %t
|
||||
; RUN: grep .Lfoo: %t
|
||||
; RUN: grep bl.*\.Lfoo %t
|
||||
; RUN: grep .Lbaz: %t
|
||||
; RUN: grep lis.*\.Lbaz %t
|
||||
; RUN: llc < %s -mtriple=powerpc-apple-darwin > %t
|
||||
; RUN: grep L_foo: %t
|
||||
; RUN: grep bl.*\L_foo %t
|
||||
; RUN: grep L_baz: %t
|
||||
; RUN: grep lis.*\L_baz %t
|
||||
; 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
|
||||
}
|
||||
|
||||
@baz = private global i32 4
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user