[llvm] r260751 - fix test to use FileCheck

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 14:07:54 PST 2016


Author: spatel
Date: Fri Feb 12 16:07:54 2016
New Revision: 260751

URL: http://llvm.org/viewvc/llvm-project?rev=260751&view=rev
Log:
fix test to use FileCheck

Modified:
    llvm/trunk/test/CodeGen/X86/mfence.ll

Modified: llvm/trunk/test/CodeGen/X86/mfence.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mfence.ll?rev=260751&r1=260750&r2=260751&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mfence.ll (original)
+++ llvm/trunk/test/CodeGen/X86/mfence.ll Fri Feb 12 16:07:54 2016
@@ -1,8 +1,11 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep sfence
-; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep lfence
-; RUN: llc < %s -march=x86 -mattr=+sse2 | grep mfence
+; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+sse2 | FileCheck %s
 
 define void @test() {
+; CHECK-LABEL: test:
+; CHECK:       # BB#0:
+; CHECK-NEXT:    mfence
+; CHECK-NEXT:    retl
   fence seq_cst
   ret void
 }
+




More information about the llvm-commits mailing list