1 ; RUN: not llc -march=bpf < %s 2> %t1
2 ; RUN: FileCheck %s < %t1
3 ; CHECK: by value not supported
5 %struct.S = type { [10 x i32] }
7 ; Function Attrs: nounwind uwtable
8 define void @bar(i32 %a) #0 {
10 %.compoundliteral = alloca %struct.S, align 8
11 store i32 1, ptr %.compoundliteral, align 8
12 %arrayinit.element = getelementptr inbounds %struct.S, ptr %.compoundliteral, i64 0, i32 0, i64 1
13 store i32 2, ptr %arrayinit.element, align 4
14 %arrayinit.element2 = getelementptr inbounds %struct.S, ptr %.compoundliteral, i64 0, i32 0, i64 2
15 store i32 3, ptr %arrayinit.element2, align 8
16 %arrayinit.start = getelementptr inbounds %struct.S, ptr %.compoundliteral, i64 0, i32 0, i64 3
17 call void @llvm.memset.p0.i64(ptr align 4 %arrayinit.start, i8 0, i64 28, i1 false)
18 call void @foo(i32 %a, ptr byval(%struct.S) align 8 %.compoundliteral) #3
22 declare void @foo(i32, ptr byval(%struct.S) align 8) #1
24 ; Function Attrs: nounwind
25 declare void @llvm.memset.p0.i64(ptr nocapture, i8, i64, i1) #3