brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 7c8d938 Raw
42 lines · plain
1; RUN: llc -mtriple=hexagon -O0 < %s | FileCheck %s2; RUN: llc -mtriple=hexagon -O2 < %s | FileCheck %s3 4; Checking for alignment of stack to 64.5; CHECK: r{{[0-9]+}} = and(r{{[0-9]+}},#-64)6 7target triple = "hexagon"8 9%s.0 = type { i32, i32, i32, i32, i32 }10 11@g0 = private unnamed_addr constant [7 x i8] c"%x %x\0A\00", align 812@g1 = global %s.0 { i32 11, i32 13, i32 15, i32 17, i32 19 }, align 413@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 6414 15; Function Attrs: nounwind16declare i32 @f0(ptr nocapture, ...) #017 18; Function Attrs: nounwind19define void @f1(ptr byval(%s.0) %a0, <16 x i32> %a1) #0 {20b0:21  %v0 = alloca <16 x i32>, align 6422  store <16 x i32> %a1, ptr %v0, align 64, !tbaa !023  %v1 = ptrtoint ptr %a0 to i3224  %v2 = ptrtoint ptr %v0 to i3225  %v3 = call i32 (ptr, ...) @f0(ptr @g0, i32 %v1, i32 %v2) #026  ret void27}28 29; Function Attrs: nounwind30define i32 @f2() #0 {31b0:32  %v0 = load <16 x i32>, ptr @g2, align 64, !tbaa !033  tail call void @f1(ptr byval(%s.0) @g1, <16 x i32> %v0)34  ret i32 035}36 37attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }38 39!0 = !{!1, !1, i64 0}40!1 = !{!"omnipotent char", !2}41!2 = !{!"Simple C/C++ TBAA"}42