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(i16* nocapture %s) #0 {
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
19 attributes #0 = { nounwind }