1; RUN: llvm-dis < %s.bc | FileCheck %s 2 3; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just 4; before the IR change on this file. 5 6define void @test(i32* %addr) { 7 cmpxchg i32* %addr, i32 42, i32 0 monotonic 8; CHECK: cmpxchg i32* %addr, i32 42, i32 0 monotonic monotonic 9 10 cmpxchg i32* %addr, i32 42, i32 0 acquire 11; CHECK: cmpxchg i32* %addr, i32 42, i32 0 acquire acquire 12 13 cmpxchg i32* %addr, i32 42, i32 0 release 14; CHECK: cmpxchg i32* %addr, i32 42, i32 0 release monotonic 15 16 cmpxchg i32* %addr, i32 42, i32 0 acq_rel 17; CHECK: cmpxchg i32* %addr, i32 42, i32 0 acq_rel acquire 18 19 cmpxchg i32* %addr, i32 42, i32 0 seq_cst 20; CHECK: cmpxchg i32* %addr, i32 42, i32 0 seq_cst seq_cst 21 22 ret void 23}