From 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 15 Aug 2012 19:34:23 +0000 Subject: Vendor import of llvm trunk r161861: http://llvm.org/svn/llvm-project/llvm/trunk@161861 --- test/CodeGen/SPARC/private.ll | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/CodeGen/SPARC/private.ll') diff --git a/test/CodeGen/SPARC/private.ll b/test/CodeGen/SPARC/private.ll index f06ccd0..38cea4c 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]] -- cgit v1.1