FileCheck-ize, tightening checks and avoiding a temporary file.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 2 Jul 2011 20:42:39 +0000 (20:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 2 Jul 2011 20:42:39 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134340 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/change-compare-stride-0.ll

index d520a6ff13b24d8589a5472400aa32a4dcb6eea1..3a383ee9c1d6bca7f41c172ef9e7a49057d7887a 100644 (file)
@@ -1,11 +1,14 @@
-; RUN: llc < %s -march=x86 > %t
-; RUN: grep {cmpl      \$-478,} %t
-; RUN: not grep inc %t
-; RUN: not grep {leal  1(} %t
-; RUN: not grep {leal  -1(} %t
-; RUN: grep dec %t | count 1
+; RUN: llc < %s -march=x86 | FileCheck %s
 
 define void @borf(i8* nocapture %in, i8* nocapture %out) nounwind {
+; CHECK: borf:
+; CHECK-NOT: inc
+; CHECK-NOT: leal 1(
+; CHECK-NOT: leal -1(
+; CHECK: decl
+; CHECK-NEXT: cmpl $-478
+; CHECK: ret
+
 bb4.thread:
        br label %bb2.outer