blob: bb858744399568ddf7f54fe5ccc66d08ec30752d [file] [log] [blame]
; RUN: llc -march=hexagon -debug-only=commgep 2>&1 < %s | FileCheck %s
; REQUIRES: asserts
; We should generate new GEPs with "inbounds" flag.
; CHECK: new GEP:{{.*}}inbounds
; CHECK: new GEP:{{.*}}inbounds
target triple = "hexagon"
%struct.0 = type { i16, i16 }
; Function Attrs: nounwind
define i16 @TraceBack(ptr %t) #0 {
entry:
%p = getelementptr inbounds %struct.0, ptr %t, i32 0, i32 1
%a = load i16, ptr %p
ret i16 %a
}
attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" }