1 ; RUN: llc -march=hexagon < %s
2 target triple = "hexagon-unknown--elf"
4 ; Function Attrs: norecurse nounwind
5 define void @_Z4lockv() #0 {
7 %__shared_owners = alloca i32, align 4
8 %0 = cmpxchg weak ptr %__shared_owners, i32 0, i32 1 seq_cst seq_cst
12 attributes #0 = { nounwind }