From 03119ab3d7de15c54e29efb960bbac4bfc5d2ebf Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 2 Jul 2011 20:42:42 +0000 Subject: [PATCH] FileCheck-ize, tightening checks and avoiding a temporary file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134341 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/change-compare-stride-1.ll | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/CodeGen/X86/change-compare-stride-1.ll b/test/CodeGen/X86/change-compare-stride-1.ll index a9ddbdb7f74..eee3b79acfa 100644 --- a/test/CodeGen/X86/change-compare-stride-1.ll +++ b/test/CodeGen/X86/change-compare-stride-1.ll @@ -1,11 +1,14 @@ -; RUN: llc < %s -march=x86-64 > %t -; RUN: grep {cmpq \$-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-64 | 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: decq +; CHECK-NEXT: cmpq $-478 +; CHECK: ret + bb4.thread: br label %bb2.outer -- 2.34.1