1 ; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu
2 ; Make sure we are not crashing on this test.
4 target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
6 declare void @extern(i8*)
8 ; Function Attrs: argmemonly nounwind
9 declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i1) #0
11 ; Function Attrs: nounwind
12 define void @func(float* noalias %arg, i32* noalias %arg1, i8* noalias %arg2, i8* noalias %arg3) #1 {
14 %tmp = getelementptr inbounds i8, i8* %arg2, i64 88
15 tail call void @llvm.memset.p0i8.i64(i8* align 8 noalias %arg2, i8 0, i64 40, i1 false)
18 store float 0.000000e+00, float* %arg
19 %tmp4 = bitcast i8* %tmp to <4 x float>*
20 store volatile <4 x float> zeroinitializer, <4 x float>* %tmp4
21 store i32 5, i32* %arg1
22 tail call void @extern(i8* %tmp)
26 ; Function Attrs: nounwind
27 define void @func2(float* noalias %arg, i32* noalias %arg1, i8* noalias %arg2, i8* noalias %arg3) #1 {
29 %tmp = getelementptr inbounds i8, i8* %arg2, i64 88
30 tail call void @llvm.memset.p0i8.i64(i8* align 8 noalias %arg2, i8 0, i64 40, i1 false)
33 store float 0.000000e+00, float* %arg
34 %tmp4 = bitcast i8* %tmp to <4 x float>*
35 store <4 x float> zeroinitializer, <4 x float>* %tmp4
36 store i32 5, i32* %arg1
37 tail call void @extern(i8* %tmp)
41 attributes #0 = { argmemonly nounwind }
42 attributes #1 = { nounwind "target-cpu"="cortex-a53" }