blob: 91ea38db8b8c8da45c918663179751ec316e8b74 [file] [edit]
; RUN: llc < %s -mtriple=bpfel | FileCheck %s
; RUN: llc < %s -mtriple=bpfeb | FileCheck %s
; CHECK-LABEL: fence_singlethread:
; CHECK-COUNT-4: #MEMBARRIER
; CHECK-NEXT: exit
define void @fence_singlethread() nounwind {
entry:
fence syncscope("singlethread") acquire
fence syncscope("singlethread") release
fence syncscope("singlethread") acq_rel
fence syncscope("singlethread") seq_cst
ret void
}