You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
545 B
21 lines
545 B
; 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(%struct.0* %t) #0 {
|
|
entry:
|
|
%p = getelementptr inbounds %struct.0, %struct.0* %t, i32 0, i32 0
|
|
%a = load i16, i16* %p
|
|
ret i16 %a
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" }
|