1; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s 2; RUN: verify-uselistorder < %s 3 4define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) { 5 cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst 6 ; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst 7 8 cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic 9 ; CHECK: cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic 10 11 cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire 12 ; CHECK: cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire 13 14 cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread release monotonic 15 ; CHECK: cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new singlethread release monotonic 16 17 ret void 18} 19