1 ; RUN: llc -march=hexagon -O0 < %s | FileCheck %s
2 ; RUN: llc -march=hexagon -O2 < %s | FileCheck %s
4 ; Checking for alignment of stack to 64.
5 ; CHECK: r{{[0-9]+}} = and(r{{[0-9]+}},#-64)
7 target triple = "hexagon"
9 %s.0 = type { i32, i32, i32, i32, i32 }
11 @g0 = private unnamed_addr constant [7 x i8] c"%x %x\0A\00", align 8
12 @g1 = global %s.0 { i32 11, i32 13, i32 15, i32 17, i32 19 }, align 4
13 @g2 = global <16 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16>, align 64
15 ; Function Attrs: nounwind
16 declare i32 @f0(ptr nocapture, ...) #0
18 ; Function Attrs: nounwind
19 define void @f1(ptr byval(%s.0) %a0, <16 x i32> %a1) #0 {
21 %v0 = alloca <16 x i32>, align 64
22 store <16 x i32> %a1, ptr %v0, align 64, !tbaa !0
23 %v1 = ptrtoint ptr %a0 to i32
24 %v2 = ptrtoint ptr %v0 to i32
25 %v3 = call i32 (ptr, ...) @f0(ptr @g0, i32 %v1, i32 %v2) #0
29 ; Function Attrs: nounwind
32 %v0 = load <16 x i32>, ptr @g2, align 64, !tbaa !0
33 tail call void @f1(ptr byval(%s.0) @g1, <16 x i32> %v0)
37 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }
40 !1 = !{!"omnipotent char", !2}
41 !2 = !{!"Simple C/C++ TBAA"}