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