From 803fb108744b2c8282f4f69781c603160822d096 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 6 Feb 2014 23:35:22 +0000 Subject: [PATCH] Convert test to FileCheck. llvm-svn: 200955 --- llvm/test/CodeGen/PowerPC/private.ll | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/llvm/test/CodeGen/PowerPC/private.ll b/llvm/test/CodeGen/PowerPC/private.ll index f9405f6af2ff..e606dd1136b5 100644 --- a/llvm/test/CodeGen/PowerPC/private.ll +++ b/llvm/test/CodeGen/PowerPC/private.ll @@ -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