aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-02 20:42:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-02 20:42:42 +0000
commit03119ab3d7de15c54e29efb960bbac4bfc5d2ebf (patch)
tree49c08c2ecf24a4db967fa3898ed16f78855bfb0e /test/CodeGen
parent5a26013390d0f5f501a185eccfd522849bf8e2d6 (diff)
downloadexternal_llvm-03119ab3d7de15c54e29efb960bbac4bfc5d2ebf.zip
external_llvm-03119ab3d7de15c54e29efb960bbac4bfc5d2ebf.tar.gz
external_llvm-03119ab3d7de15c54e29efb960bbac4bfc5d2ebf.tar.bz2
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
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/change-compare-stride-1.ll15
1 files 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 a9ddbdb..eee3b79 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