mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
ef8c006d34
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
14 lines
256 B
LLVM
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
|
|
}
|