From c2a5bd6822469c336a86532ff4efc9b60657918f Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 3 Jul 2012 04:21:57 +0000 Subject: [PATCH] test/CodeGen/SPARC/private.ll: FileCheck-ize. llvm-svn: 159642 --- llvm/test/CodeGen/SPARC/private.ll | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/llvm/test/CodeGen/SPARC/private.ll b/llvm/test/CodeGen/SPARC/private.ll index f06ccd0df1aa..f543136f9fd9 100644 --- a/llvm/test/CodeGen/SPARC/private.ll +++ b/llvm/test/CodeGen/SPARC/private.ll @@ -1,6 +1,6 @@ ; 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 call.*\.foo %t ; RUN: grep .baz: %t @@ -9,6 +9,7 @@ define private void @foo() { ret void } +; CHECK: [[FOO:\..*foo]]: @baz = private global i32 4 @@ -17,3 +18,8 @@ define i32 @bar() { %1 = load i32* @baz, align 4 ret i32 %1 } + +; CHECK: call [[FOO]] +; CHECK: ld {{.+}}[[BAZ:\..*baz]] + +; CHECK: [[BAZ]]