[llvm] r185124 - Convert tests to FileCheck
Matt Arsenault
Matthew.Arsenault at amd.com
Thu Jun 27 18:29:35 PDT 2013
Author: arsenm
Date: Thu Jun 27 20:29:35 2013
New Revision: 185124
URL: http://llvm.org/viewvc/llvm-project?rev=185124&view=rev
Log:
Convert tests to FileCheck
Modified:
llvm/trunk/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll
llvm/trunk/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
llvm/trunk/test/Transforms/InstCombine/apint-call-cast-target.ll
llvm/trunk/test/Transforms/InstCombine/call-cast-target.ll
Modified: llvm/trunk/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll?rev=185124&r1=185123&r2=185124&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll Thu Jun 27 20:29:35 2013
@@ -1,5 +1,7 @@
; Ignore stderr, we expect warnings there
-; RUN: opt < %s -instcombine 2> /dev/null -S | not grep bitcast
+; RUN: opt < %s -instcombine 2> /dev/null -S | FileCheck %s
+
+; CHECK-NOT: bitcast
define void @a() {
ret void
Modified: llvm/trunk/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2008-01-06-VoidCast.ll?rev=185124&r1=185123&r2=185124&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2008-01-06-VoidCast.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2008-01-06-VoidCast.ll Thu Jun 27 20:29:35 2013
@@ -1,9 +1,9 @@
-; RUN: opt < %s -instcombine -S | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
define void @f(i16 %y) {
ret void
}
-
+; CHECK-NOT: bitcast
define i32 @g(i32 %y) {
%x = call i32 bitcast (void (i16)* @f to i32 (i32)*)( i32 %y ) ; <i32> [#uses=1]
ret i32 %x
Modified: llvm/trunk/test/Transforms/InstCombine/apint-call-cast-target.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/apint-call-cast-target.ll?rev=185124&r1=185123&r2=185124&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/apint-call-cast-target.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/apint-call-cast-target.ll Thu Jun 27 20:29:35 2013
@@ -1,9 +1,11 @@
-; RUN: opt < %s -instcombine -S | grep call | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
target datalayout = "e-p:32:32"
target triple = "i686-pc-linux-gnu"
-
+; CHECK-NOT: bitcast
+; CHECK: call
+; CHECK-NOT: bitcast
define i32 @main() {
entry:
%tmp = call i32 bitcast (i7* (i999*)* @ctime to i32 (i99*)*)( i99* null )
Modified: llvm/trunk/test/Transforms/InstCombine/call-cast-target.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/call-cast-target.ll?rev=185124&r1=185123&r2=185124&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/call-cast-target.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/call-cast-target.ll Thu Jun 27 20:29:35 2013
@@ -1,9 +1,12 @@
-; RUN: opt < %s -instcombine -S | \
-; RUN: grep call | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
target datalayout = "e-p:32:32"
target triple = "i686-pc-linux-gnu"
+; CHECK-NOT: bitcast
+; CHECK: call
+; CHECK-NOT: bitcast
+
define i32 @main() {
entry:
%tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null ) ; <i32> [#uses=1]
More information about the llvm-commits
mailing list