summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/cmpxchg.3.6.ll
blob: bec51a128c336434b38cb934c54a0e3ee7032277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-dis < %s.bc | FileCheck %s

define void @f2(i32* %x, i32 %y.orig, i32 %z) {
entry:
  br label %a
b:
  cmpxchg i32* %x, i32 %y, i32 %z acquire acquire
; CHECK: cmpxchg i32* %x, i32 %y, i32 %z acquire acquire
  ret void
a:
  %y = add i32 %y.orig, 1
  br label %a
}
OpenPOWER on IntegriCloud