1 ; RUN: llc < %s -march=bpfel | FileCheck -check-prefixes=CHECK %s
12 ; struct test_t t = {.a = 5};
16 %struct.test_t = type { i32, i8, i32, i8 }
18 @test.t = private unnamed_addr constant %struct.test_t { i32 5, i8 0, i32 0, i8 0 }, align 4
20 ; Function Attrs: nounwind
21 define dso_local void @test() local_unnamed_addr #0 {
23 %1 = alloca %struct.test_t, align 4
24 call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #3
25 call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %1, ptr align 4 @test.t, i64 16, i1 false)
27 ; CHECK: *(u64 *)(r10 - 8) = r1
29 ; CHECK: *(u64 *)(r10 - 16) = r1
32 call void @foo(ptr nonnull %1) #3
34 call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #3
38 ; Function Attrs: argmemonly nounwind
39 declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #1
41 ; Function Attrs: argmemonly nounwind
42 declare void @llvm.memcpy.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1) #1
44 declare dso_local void @foo(ptr) local_unnamed_addr
46 ; Function Attrs: argmemonly nounwind
47 declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #1
49 attributes #0 = { nounwind }
50 attributes #1 = { argmemonly nounwind }
51 attributes #3 = { nounwind }