1 ; RUN: llc -march=hexagon -debug-only=commgep 2>&1 < %s | FileCheck %s
4 ; We should generate new GEPs with "inbounds" flag.
5 ; CHECK: new GEP:{{.*}}inbounds
6 ; CHECK: new GEP:{{.*}}inbounds
8 target triple = "hexagon"
10 %struct.0 = type { i16, i16 }
12 ; Function Attrs: nounwind
13 define i16 @TraceBack(%struct.0* %t) #0 {
15 %p = getelementptr inbounds %struct.0, %struct.0* %t, i32 0, i32 0
16 %a = load i16, i16* %p
20 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" }