blob: b510553b1fb86f009923eee796ee2cbe4051f65e [file] [log] [blame]
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +00001; RUN: llc -march=hexagon -O2 < %s | FileCheck %s
2; CHECK: dcfetch(
3
4target triple = "hexagon"
5
6; Function Attrs: nounwind
7define i32 @f0() #0 {
8b0:
9 %v0 = alloca i32, align 4
10 store i32 0, i32* %v0, align 4, !tbaa !0
11 %v1 = bitcast i32* %v0 to i8*
12 call void @llvm.hexagon.prefetch(i8* %v1)
13 ret i32 0
14}
15
16; Function Attrs: nounwind
17declare void @llvm.hexagon.prefetch(i8*) #1
18
19attributes #0 = { nounwind "target-cpu"="hexagonv60" }
20attributes #1 = { nounwind }
21
22!0 = !{!1, !1, i64 0}
23!1 = !{!"int", !2, i64 0}
24!2 = !{!"omnipotent char", !3, i64 0}
25!3 = !{!"Simple C/C++ TBAA"}