brintos

brintos / llvm-project-archived public Read only

0
0
Text · 532 B · 90e68fb Raw
21 lines · plain
1; RUN: llc -mtriple=hexagon -debug-only=commgep 2>&1 < %s | FileCheck %s2; REQUIRES: asserts3 4; We should generate new GEPs with "inbounds" flag.5; CHECK: new GEP:{{.*}}inbounds6; CHECK: new GEP:{{.*}}inbounds7 8target triple = "hexagon"9 10%struct.0 = type { i16, i16 }11 12; Function Attrs: nounwind13define i16 @TraceBack(ptr %t) #0 {14entry:15  %p = getelementptr inbounds %struct.0, ptr %t, i32 0, i32 116  %a = load i16, ptr %p17  ret i16 %a18}19 20attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="-hvx,-long-calls" }21