forked from OSchip/llvm-project
17 lines
297 B
LLVM
17 lines
297 B
LLVM
|
; RUN: llc < %s -march=xcore | FileCheck %s
|
||
|
|
||
|
; CHECK-LABEL: atomic_fence
|
||
|
; CHECK: #MEMBARRIER
|
||
|
; CHECK: #MEMBARRIER
|
||
|
; CHECK: #MEMBARRIER
|
||
|
; CHECK: #MEMBARRIER
|
||
|
; CHECK: retsp 0
|
||
|
define void @atomic_fence() nounwind {
|
||
|
entry:
|
||
|
fence acquire
|
||
|
fence release
|
||
|
fence acq_rel
|
||
|
fence seq_cst
|
||
|
ret void
|
||
|
}
|