brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · e7f6524 Raw
35 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Check for successful compilation.4; CHECK-LABEL: f0:5; CHECK: dealloc_return6 7target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"8target triple = "hexagon"9 10define dso_local void @f0(ptr %a0) local_unnamed_addr #0 {11b0:12  %v0 = getelementptr i16, ptr %a0, i32 813  %v2 = icmp eq i32 0, 014  %v3 = insertelement <8 x i1> undef, i1 %v2, i64 015  %v4 = shufflevector <8 x i1> %v3, <8 x i1> undef, <8 x i32> zeroinitializer16  %v5 = call <8 x i32> @llvm.masked.load.v8i32.p0(ptr nonnull undef, i32 4, <8 x i1> %v4, <8 x i32> undef)17  %v6 = sub nsw <8 x i32> zeroinitializer, %v518  %v7 = add nsw <8 x i32> %v6, zeroinitializer19  %v8 = add <8 x i32> zeroinitializer, %v720  %v9 = lshr <8 x i32> %v8, <i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6>21  %v10 = trunc <8 x i32> %v9 to <8 x i16>22  call void @llvm.masked.store.v8i16.p0(<8 x i16> %v10, ptr %v0, i32 2, <8 x i1> %v4)23  ret void24}25 26; Function Attrs: argmemonly nounwind readonly willreturn27declare <8 x i32> @llvm.masked.load.v8i32.p0(ptr, i32 immarg, <8 x i1>, <8 x i32>) #128 29; Function Attrs: argmemonly nounwind willreturn30declare void @llvm.masked.store.v8i16.p0(<8 x i16>, ptr, i32 immarg, <8 x i1>) #231 32attributes #0 = { "target-features"="+hvx-length64b,+hvxv65,+v65,-long-calls,-packets" }33attributes #1 = { argmemonly nounwind readonly willreturn }34attributes #2 = { argmemonly nounwind willreturn }35