git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199355
91177308-0d34-0410-b5e6-
96231b3b80d8
-; 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 | not grep mfence
-; RUN: llc < %s -march=x86 -mattr=+sse2 | grep MEMBARRIER
+; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=+sse2 | FileCheck %s
define void @test() {
fence acquire
+ ; CHECK: #MEMBARRIER
+
fence release
+ ; CHECK: #MEMBARRIER
+
fence acq_rel
+ ; CHECK: #MEMBARRIER
+
ret void
}