[PATCH] D13521: [X86]Update test to use FileCheck

Kevin B. Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 10:54:40 PDT 2015


kbsmith1 created this revision.
kbsmith1 added a reviewer: qcolombet.
kbsmith1 added a subscriber: llvm-commits.

Updates this test to use FileCheck and a single llc invocation rather than 3 llc invocations and grep.

http://reviews.llvm.org/D13521

Files:
  test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll

Index: test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll
===================================================================
--- test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll
+++ test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll
@@ -1,8 +1,10 @@
-; RUN: llc < %s -march=x86 | not grep movsd
-; RUN: llc < %s -march=x86 | grep movw
-; RUN: llc < %s -march=x86 | grep addw
+; RUN: llc < %s -march=x86 | FileCheck %s
 ; These transforms are turned off for load volatiles and stores.
 ; Check that they weren't turned off for all loads and stores!
+; CHECK-LABEL: f:
+; CHECK-NOT: movsd
+; CHECK: movw
+; CHECK: addw
 
 @atomic = global double 0.000000e+00		; <double*> [#uses=1]
 @atomic2 = global double 0.000000e+00		; <double*> [#uses=1]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13521.36769.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151007/5a954e62/attachment.bin>


More information about the llvm-commits mailing list