From a894b7377d040102fa49b39a6d95e7385e7deb00 Mon Sep 17 00:00:00 2001 From: "Kevin B. Smith" Date: Wed, 7 Oct 2015 18:21:41 +0000 Subject: [PATCH] [X86]Update test to use FileCheck. Updates this test to use FileCheck and a single llc invocation rather than 3 llc invocations and grep. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249583 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll b/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll index 422d68e7ff4..de95e7925f0 100644 --- a/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll +++ b/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 ; [#uses=1] @atomic2 = global double 0.000000e+00 ; [#uses=1]