brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1016 B · 8e04695 Raw
26 lines · plain
1; RUN: not llc -mtriple=bpf < %s 2> %t12; RUN: FileCheck %s < %t13; CHECK: by value not supported4 5%struct.S = type { [10 x i32] }6 7; Function Attrs: nounwind uwtable8define void @bar(i32 %a) #0 {9entry:10  %.compoundliteral = alloca %struct.S, align 811  store i32 1, ptr %.compoundliteral, align 812  %arrayinit.element = getelementptr inbounds %struct.S, ptr %.compoundliteral, i64 0, i32 0, i64 113  store i32 2, ptr %arrayinit.element, align 414  %arrayinit.element2 = getelementptr inbounds %struct.S, ptr %.compoundliteral, i64 0, i32 0, i64 215  store i32 3, ptr %arrayinit.element2, align 816  %arrayinit.start = getelementptr inbounds %struct.S, ptr %.compoundliteral, i64 0, i32 0, i64 317  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) #319  ret void20}21 22declare void @foo(i32, ptr byval(%struct.S) align 8) #123 24; Function Attrs: nounwind25declare void @llvm.memset.p0.i64(ptr nocapture, i8, i64, i1) #326