brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 6124078 Raw
36 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; CHECK-LABEL: f0:4; CHECK: vmemu5; CHECK: vmux6define <128 x i8> @f0(ptr %a0, i32 %a1, i32 %a2) #0 {7  %q0 = call <128 x i1> @llvm.hexagon.V6.pred.scalar2.128B(i32 %a2)8  %v0 = call <32 x i32> @llvm.hexagon.V6.lvsplatb.128B(i32 %a1)9  %v1 = bitcast <32 x i32> %v0 to <128 x i8>10  %v2 = call <128 x i8> @llvm.masked.load.v128i8.p0(ptr %a0, i32 4, <128 x i1> %q0, <128 x i8> %v1)11  ret <128 x i8> %v212}13 14; CHECK-LABEL: f1:15; CHECK: vlalign16; CHECK: if (q{{.}}) vmem{{.*}} = v17define void @f1(ptr %a0, i32 %a1, i32 %a2) #0 {18  %q0 = call <128 x i1> @llvm.hexagon.V6.pred.scalar2.128B(i32 %a2)19  %v0 = call <32 x i32> @llvm.hexagon.V6.lvsplatb.128B(i32 %a1)20  %v1 = bitcast <32 x i32> %v0 to <128 x i8>21  call void @llvm.masked.store.v128i8.p0(<128 x i8> %v1, ptr %a0, i32 4, <128 x i1> %q0)22  ret void23}24 25declare <128 x i1> @llvm.hexagon.V6.pred.scalar2.128B(i32) #126declare <32 x i32> @llvm.hexagon.V6.lvsplatb.128B(i32) #127declare <128 x i8> @llvm.masked.load.v128i8.p0(ptr, i32 immarg, <128 x i1>, <128 x i8>) #228declare void @llvm.masked.store.v128i8.p0(<128 x i8>, ptr, i32 immarg, <128 x i1>) #229 30attributes #0 = { nounwind "target-features"="+hvxv65,+hvx-length128b" }31attributes #1 = { nounwind readnone }32attributes #2 = { argmemonly nounwind readonly willreturn }33attributes #3 = { argmemonly nounwind willreturn }34 35 36