mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
17 lines
744 B
LLVM
17 lines
744 B
LLVM
|
; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s
|
||
|
|
||
|
define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
|
||
|
cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
|
||
|
; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
|
||
|
|
||
|
cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
|
||
|
; CHECK: cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
|
||
|
|
||
|
cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
|
||
|
; CHECK: cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
|
||
|
|
||
|
cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread release monotonic
|
||
|
; CHECK: cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread release monotonic
|
||
|
|
||
|
ret void
|
||
|
}
|