From ab083f727bbe569d80bc98fee8933d9a7c6b42ad Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 25 Jan 2013 22:11:46 +0000 Subject: FileCheck-ify some grep tests These tests in particular try to use escaped square brackets as an argument to grep, which is failing for me with native win32 python. It appears the backslash is being lost near the CreateProcess*() call. llvm-svn: 173506 --- llvm/test/CodeGen/Thumb2/thumb2-ldr_post.ll | 4 ++-- llvm/test/TableGen/Slice.td | 8 ++++++-- llvm/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll | 5 ++--- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'llvm') diff --git a/llvm/test/CodeGen/Thumb2/thumb2-ldr_post.ll b/llvm/test/CodeGen/Thumb2/thumb2-ldr_post.ll index 2178eecb43e..bce847471be 100644 --- a/llvm/test/CodeGen/Thumb2/thumb2-ldr_post.ll +++ b/llvm/test/CodeGen/Thumb2/thumb2-ldr_post.ll @@ -1,5 +1,4 @@ -; RUN: llc < %s -march=thumb -mattr=+thumb2 | \ -; RUN: grep "ldr.*\[.*\]," | count 1 +; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s define i32 @test(i32 %a, i32 %b, i32 %c) { %tmp1 = mul i32 %a, %b ; [#uses=2] @@ -9,4 +8,5 @@ define i32 @test(i32 %a, i32 %b, i32 %c) { %tmp5 = mul i32 %tmp4, %tmp3 ; [#uses=1] ret i32 %tmp5 } +; CHECK: ldr r{{.*}}, [{{.*}}], diff --git a/llvm/test/TableGen/Slice.td b/llvm/test/TableGen/Slice.td index cec9fb65ca8..7a35d315c5d 100644 --- a/llvm/test/TableGen/Slice.td +++ b/llvm/test/TableGen/Slice.td @@ -1,5 +1,4 @@ -// RUN: llvm-tblgen %s | grep "\[(set" | count 2 -// RUN: llvm-tblgen %s | grep "\[\]" | count 2 +// RUN: llvm-tblgen %s | FileCheck %s class ValueType { int Size = size; @@ -85,3 +84,8 @@ multiclass myscalar opcode, string asmstr = "", list> patterns vscalar; defm NOT : myscalar<0x10, "not", [[], [(set FR32:$dst, (f32 (not FR32:$src)))]]>; + +// CHECK: Pattern = [(set FR32:$dst, (f32 (not FR32:$src)))]; +// CHECK: Pattern = []; +// CHECK: Pattern = [(set FR32:$dst, (f32 (not FR32:$src)))]; +// CHECK: Pattern = []; diff --git a/llvm/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll b/llvm/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll index 0b5e4152c42..3f28cb187f8 100644 --- a/llvm/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll +++ b/llvm/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll @@ -1,7 +1,6 @@ ; Scalar replacement was incorrectly promoting this alloca!! ; -; RUN: opt < %s -scalarrepl -S | \ -; RUN: sed "s/;.*//g" | grep "\[" +; RUN: opt < %s -scalarrepl -S | FileCheck %s define i8* @test() { %A = alloca [30 x i8] ; <[30 x i8]*> [#uses=1] @@ -10,4 +9,4 @@ define i8* @test() { store i8 0, i8* %B ret i8* %C } - +; CHECK: alloca [ -- cgit v1.2.3