mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 21:20:18 +00:00
![Duncan P. N. Exon Smith](/assets/img/avatar_default.png)
Change the default for `-num-shuffles` to 5 and better document the algorithm in the header docs of `verify-uselistorder`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214419 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
805 B
LLVM
19 lines
805 B
LLVM
; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder < %s -preserve-bc-use-list-order
|
|
|
|
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
|
|
}
|