Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

21 lines
535 B
LLVM

; 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() #0 {
entry:
%p = getelementptr inbounds %struct.0, %struct.0* undef, i32 0, i32 0
%a = load i16, i16* %p
ret i16 %a
}
attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" }