41 lines · plain
1; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu2; Make sure we are not crashing on this test.3 4target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"5 6declare void @extern(ptr)7 8; Function Attrs: argmemonly nounwind9declare void @llvm.memset.p0.i64(ptr nocapture, i8, i64, i1) #010 11; Function Attrs: nounwind12define void @func(ptr noalias %arg, ptr noalias %arg1, ptr noalias %arg2, ptr noalias %arg3) #1 {13bb:14 %tmp = getelementptr inbounds i8, ptr %arg2, i64 8815 tail call void @llvm.memset.p0.i64(ptr align 8 noalias %arg2, i8 0, i64 40, i1 false)16 store i8 0, ptr %arg317 store i8 2, ptr %arg218 store float 0.000000e+00, ptr %arg19 store volatile <4 x float> zeroinitializer, ptr %tmp20 store i32 5, ptr %arg121 tail call void @extern(ptr %tmp)22 ret void23}24 25; Function Attrs: nounwind26define void @func2(ptr noalias %arg, ptr noalias %arg1, ptr noalias %arg2, ptr noalias %arg3) #1 {27bb:28 %tmp = getelementptr inbounds i8, ptr %arg2, i64 8829 tail call void @llvm.memset.p0.i64(ptr align 8 noalias %arg2, i8 0, i64 40, i1 false)30 store i8 0, ptr %arg331 store i8 2, ptr %arg232 store float 0.000000e+00, ptr %arg33 store <4 x float> zeroinitializer, ptr %tmp34 store i32 5, ptr %arg135 tail call void @extern(ptr %tmp)36 ret void37}38 39attributes #0 = { argmemonly nounwind }40attributes #1 = { nounwind "target-cpu"="cortex-a53" }41