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

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 05:00:41 PDT 2015


LGTM

On 14 October 2015 at 18:28, Kevin B. Smith via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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:
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>


More information about the llvm-commits mailing list