1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/SystemZ/atomic-fence-02.ll
Ulrich Weigand ef8c006d34 [SystemZ] Support ATOMIC_FENCE
A cross-thread sequentially consistent fence should be lowered into
z/Architecture's BCR serialization instruction, instead of causing a
fatal error in the back-end.

Author: bryanpkc
Differential Revision: http://reviews.llvm.org/D18644

llvm-svn: 265292
2016-04-04 12:45:44 +00:00

14 lines
256 B
LLVM

; Serialization is emitted only for fence seq_cst.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
define void @test() {
; CHECK: #MEMBARRIER
fence acquire
; CHECK: #MEMBARRIER
fence release
; CHECK: #MEMBARRIER
fence acq_rel
ret void
}