[llvm] r249583 - [X86]Update test to use FileCheck.

Kevin B. Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 11:21:41 PDT 2015


Author: kbsmith1
Date: Wed Oct  7 13:21:41 2015
New Revision: 249583

URL: http://llvm.org/viewvc/llvm-project?rev=249583&view=rev
Log:
[X86]Update test to use FileCheck.
Updates this test to use FileCheck and a single llc invocation rather than
3 llc invocations and grep.

Modified:
    llvm/trunk/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll

Modified: llvm/trunk/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll?rev=249583&r1=249582&r2=249583&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll Wed Oct  7 13:21:41 2015
@@ -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]




More information about the llvm-commits mailing list