xref: /llvm-project/llvm/test/CodeGen/Hexagon/isel-dcfetch-intrin-map.ll (revision 2208c97c1bec2512d4e47b6223db6d95a7037956)
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s
2
3; Check that intrinsic int_hexagon_Y2_dcfetch is mapped to Y2_dcfetchbo
4; (not Y2_dcfetch).
5
6; CHECK: dcfetch(r0+#0)
7
8target triple = "hexagon"
9
10define void @fred(ptr %a0) #0 {
11  call void @llvm.hexagon.Y2.dcfetch(ptr %a0)
12  ret void
13}
14
15declare void @llvm.hexagon.Y2.dcfetch(ptr) #0
16
17attributes #0 = { nounwind }
18
19