1; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK-LABEL: foo:
3; CHECK: memh(r0+#0){{.*}}={{.*}}#-2
4; Don't use memh(r0+#0)=##65534.
5
6target datalayout = "e-m:e-p:32:32-i1:32-i64:64-a:0-v32:32-n16:32"
7target triple = "hexagon"
8
9; Function Attrs: nounwind
10define void @foo(i16* nocapture %s) #0 {
11entry:
12  %0 = bitcast i16* %s to i8*
13  store i8 -2, i8* %0, align 2
14  %add.ptr = getelementptr inbounds i8, i8* %0, i32 1
15  store i8 -1, i8* %add.ptr, align 1
16  ret void
17}
18
19attributes #0 = { nounwind }
20