Skip to content
Snippets Groups Projects
Commit c2a5bd68 authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

test/CodeGen/SPARC/private.ll: FileCheck-ize.

llvm-svn: 159642
parent 2a4930c9
No related branches found
No related tags found
No related merge requests found
; Test to make sure that the 'private' is used correctly. ; Test to make sure that the 'private' is used correctly.
; ;
; RUN: llc < %s -march=sparc > %t ; RUN: llc < %s -march=sparc | FileCheck %s
; RUN: grep .foo: %t ; RUN: grep .foo: %t
; RUN: grep call.*\.foo %t ; RUN: grep call.*\.foo %t
; RUN: grep .baz: %t ; RUN: grep .baz: %t
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
define private void @foo() { define private void @foo() {
ret void ret void
} }
; CHECK: [[FOO:\..*foo]]:
@baz = private global i32 4 @baz = private global i32 4
...@@ -17,3 +18,8 @@ define i32 @bar() { ...@@ -17,3 +18,8 @@ define i32 @bar() {
%1 = load i32* @baz, align 4 %1 = load i32* @baz, align 4
ret i32 %1 ret i32 %1
} }
; CHECK: call [[FOO]]
; CHECK: ld {{.+}}[[BAZ:\..*baz]]
; CHECK: [[BAZ]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment