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(ptr)
8 ; Function Attrs: argmemonly nounwind
9 declare void @llvm.memset.p0.i64(ptr nocapture, i8, i64, i1) #0
11 ; Function Attrs: nounwind
12 define void @func(ptr noalias %arg, ptr noalias %arg1, ptr noalias %arg2, ptr noalias %arg3) #1 {
14 %tmp = getelementptr inbounds i8, ptr %arg2, i64 88
15 tail call void @llvm.memset.p0.i64(ptr align 8 noalias %arg2, i8 0, i64 40, i1 false)
18 store float 0.000000e+00, ptr %arg
19 store volatile <4 x float> zeroinitializer, ptr %tmp
20 store i32 5, ptr %arg1
21 tail call void @extern(ptr %tmp)
25 ; Function Attrs: nounwind
26 define void @func2(ptr noalias %arg, ptr noalias %arg1, ptr noalias %arg2, ptr noalias %arg3) #1 {
28 %tmp = getelementptr inbounds i8, ptr %arg2, i64 88
29 tail call void @llvm.memset.p0.i64(ptr align 8 noalias %arg2, i8 0, i64 40, i1 false)
32 store float 0.000000e+00, ptr %arg
33 store <4 x float> zeroinitializer, ptr %tmp
34 store i32 5, ptr %arg1
35 tail call void @extern(ptr %tmp)
39 attributes #0 = { argmemonly nounwind }
40 attributes #1 = { nounwind "target-cpu"="cortex-a53" }