[llvm] r250431 - Change test to use FileCheck rather than grep.
Kevin B. Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 10:05:13 PDT 2015
Author: kbsmith1
Date: Thu Oct 15 12:05:12 2015
New Revision: 250431
URL: http://llvm.org/viewvc/llvm-project?rev=250431&view=rev
Log:
Change test to use FileCheck rather than grep.
Differential Revision: http://reviews.llvm.org/D13751
Modified:
llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll
Modified: llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll?rev=250431&r1=250430&r2=250431&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll (original)
+++ llvm/trunk/test/CodeGen/X86/opt-ext-uses.ll Thu Oct 15 12:05:12 2015
@@ -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:
More information about the llvm-commits
mailing list