summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/intrinsics/llsc_bundling.ll
blob: 966945b66f470eebf6dba02f7b6cfd4686e67c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc -march=hexagon < %s
target triple = "hexagon-unknown--elf"

; Function Attrs: norecurse nounwind
define void @_Z4lockv() #0 {
entry:
  %__shared_owners = alloca i32, align 4
  %0 = cmpxchg weak i32* %__shared_owners, i32 0, i32 1 seq_cst seq_cst
  ret void
}

attributes #0 = { nounwind }
OpenPOWER on IntegriCloud