llvm/llvm/test/CodeGen/Hexagon/store-imm-halword.ll

; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: memh{{.*}} = #-1

target triple = "hexagon"

; Function Attrs: nounwind
define void @f0(ptr %a0) #0 {
b0:
  store i16 -1, ptr %a0, align 2
  ret void
}

attributes #0 = { nounwind }