summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/barrier-sse.ll
blob: bbfeea6419bdd39b1ccaee0f91697061242bab38 (plain)
1
2
3
4
5
6
7
8
9
10
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 | not grep mfence
; RUN: llc < %s -march=x86 -mattr=+sse2 | grep MEMBARRIER

define void @test() {
  fence acquire
  fence release
  fence acq_rel
  ret void
}