1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/CodeGen/Hexagon/common-gep-inbounds.ll
2017-06-07 20:04:33 +00:00

21 lines
542 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-double,-long-calls" }