brintos

brintos / llvm-project-archived public Read only

0
0
Text · 913 B · f1d615a Raw
29 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; CHECK: v{{[0-9]*}}.w = vadd3 4target triple = "hexagon"5 6@g0 = common global <16 x i32> zeroinitializer, align 647@g1 = common global <16 x i32> zeroinitializer, align 648@g2 = common global <16 x i32> zeroinitializer, align 649 10; Function Attrs: nounwind11define void @f0() #0 {12b0:13  %v0 = load <16 x i32>, ptr @g0, align 32, !tbaa !014  %v1 = load <16 x i32>, ptr @g1, align 32, !tbaa !015  %v2 = tail call <16 x i32> @llvm.hexagon.V6.vaddw(<16 x i32> %v0, <16 x i32> %v1)16  store <16 x i32> %v2, ptr @g2, align 64, !tbaa !017  ret void18}19 20; Function Attrs: nounwind readnone21declare <16 x i32> @llvm.hexagon.V6.vaddw(<16 x i32>, <16 x i32>) #122 23attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }24attributes #1 = { nounwind readnone }25 26!0 = !{!1, !1, i64 0}27!1 = !{!"omnipotent char", !2}28!2 = !{!"Simple C/C++ TBAA"}29