[PATCH] D13751: Change test to use FileCheck rather than grep.

Kevin B. Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 15:28:34 PDT 2015


kbsmith1 created this revision.
kbsmith1 added reviewers: mcrosier, qcolombet.
kbsmith1 added a subscriber: llvm-commits.

Change test to use FileCheck rather than grep since FileCheck is the preferred method for unit testing.

http://reviews.llvm.org/D13751

Files:
  test/CodeGen/X86/opt-ext-uses.ll

Index: test/CodeGen/X86/opt-ext-uses.ll
===================================================================
--- test/CodeGen/X86/opt-ext-uses.ll
+++ test/CodeGen/X86/opt-ext-uses.ll
@@ -1,4 +1,10 @@
-; RUN: llc < %s -march=x86 | grep movw | count 1
+; RUN: llc < %s -march=x86 | FileCheck %s
+
+; This test should get one and only one register to register mov.
+; CHECK-LABEL: t:
+; CHECK:     movw
+; CHECK-NOT: movw
+; CHECK:     ret
 
 define signext i16 @t()   {
 entry:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13751.37404.patch
Type: text/x-patch
Size: 475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/bb8565b0/attachment.bin>


More information about the llvm-commits mailing list