From da36d63b6b6bbd6eef3e0bb404826830a4dfb81f Mon Sep 17 00:00:00 2001 From: "Kevin B. Smith" Date: Thu, 15 Oct 2015 17:05:12 +0000 Subject: [PATCH] Change test to use FileCheck rather than grep. 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/CodeGen/X86/opt-ext-uses.ll b/test/CodeGen/X86/opt-ext-uses.ll index 5d05ad9c454..39e6fd0e6a5 100644 --- a/test/CodeGen/X86/opt-ext-uses.ll +++ b/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: -- 2.34.1