blob: 71b976994b7a7d66a7faa015a96323624eb0e7f0 [file] [log] [blame]
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +00001; RUN: llc -march=hexagon -O0 < %s | FileCheck %s
2; CHECK: allocframe(r29,#{{[1-9][0-9]*}}):raw
3; CHECK: r29 = and(r29,#-64)
4
5target triple = "hexagon"
6
7; Function Attrs: nounwind
8define i32 @f0() #0 {
9b0:
10 %v0 = alloca <16 x i32>, align 64
11 %v1 = bitcast <16 x i32>* %v0 to i8*
12 call void @llvm.lifetime.start.p0i8(i64 64, i8* %v1) #3
13 %v2 = tail call <16 x i32> @llvm.hexagon.V6.lvsplatw(i32 1)
14 %v3 = tail call <16 x i32> @llvm.hexagon.V6.vsubh.rt(<16 x i32> %v2, i32 -1)
15 store <16 x i32> %v3, <16 x i32>* %v0, align 64, !tbaa !0
16 call void @f1(i32 64, i8* %v1) #3
17 call void @llvm.lifetime.end.p0i8(i64 64, i8* %v1) #3
18 ret i32 0
19}
20
21; Function Attrs: nounwind readnone
22declare <16 x i32> @llvm.hexagon.V6.vsubh.rt(<16 x i32>, i32) #1
23
24; Function Attrs: nounwind readnone
25declare <16 x i32> @llvm.hexagon.V6.lvsplatw(i32) #1
26
27declare void @f1(i32, i8*) #0
28
29; Function Attrs: argmemonly nounwind
30declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #2
31
32; Function Attrs: argmemonly nounwind
33declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #2
34
35attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }
36attributes #1 = { nounwind readnone }
37attributes #2 = { argmemonly nounwind }
38attributes #3 = { nounwind }
39
40!0 = !{!1, !1, i64 0}
41!1 = !{!"omnipotent char", !2, i64 0}
42!2 = !{!"Simple C/C++ TBAA"}