Change test to use FileCheck rather than grep.
authorKevin B. Smith <kevin.b.smith@intel.com>
Thu, 15 Oct 2015 17:05:12 +0000 (17:05 +0000)
committerKevin B. Smith <kevin.b.smith@intel.com>
Thu, 15 Oct 2015 17:05:12 +0000 (17:05 +0000)
Differential Revision: http://reviews.llvm.org/D13751

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250431 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 5d05ad9..39e6fd0 100644 (file)
@@ -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: