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