summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC/private.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-08-15 19:34:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-08-15 19:34:23 +0000
commit58b69754af0cbff56b1cfce9be9392e4451f6628 (patch)
treeeacfc83d988e4b9d11114387ae7dc41243f2a363 /test/CodeGen/SPARC/private.ll
parent0378662f5bd3dbe8305a485b0282bceb8b52f465 (diff)
Notes
Diffstat (limited to 'test/CodeGen/SPARC/private.ll')
-rw-r--r--test/CodeGen/SPARC/private.ll12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/CodeGen/SPARC/private.ll b/test/CodeGen/SPARC/private.ll
index f06ccd0df1aae..38cea4ca6e4f9 100644
--- a/test/CodeGen/SPARC/private.ll
+++ b/test/CodeGen/SPARC/private.ll
@@ -1,14 +1,11 @@
; Test to make sure that the 'private' is used correctly.
;
-; RUN: llc < %s -march=sparc > %t
-; RUN: grep .foo: %t
-; RUN: grep call.*\.foo %t
-; RUN: grep .baz: %t
-; RUN: grep ld.*\.baz %t
+; RUN: llc < %s -march=sparc | FileCheck %s
define private void @foo() {
ret void
}
+; CHECK: [[FOO:\..*foo]]:
@baz = private global i32 4
@@ -17,3 +14,8 @@ define i32 @bar() {
%1 = load i32* @baz, align 4
ret i32 %1
}
+
+; CHECK: call [[FOO]]
+; CHECK: ld {{.+}}[[BAZ:\..*baz]]
+
+; CHECK: [[BAZ]]