brintos

brintos / llvm-project-archived public Read only

0
0
Text · 446 B · 0e2ff1a Raw
13 lines · plain
1; RUN: not llc -mtriple=bpf -mcpu=v1 < %s 2> %t12; RUN: FileCheck %s < %t13; CHECK: error: <unknown>:0:0: in function foo i32 (i32, i32, i32): {{t10|0x[0-f]+}}: i64 = GlobalAddress<ptr @bar> 0 too many arguments4 5; Function Attrs: nounwind uwtable6define i32 @foo(i32 %a, i32 %b, i32 %c) #0 {7entry:8  %call = tail call i32 @bar(i32 %a, i32 %b, i32 %c, i32 1, i32 2, i32 3) #39  ret i32 %call10}11 12declare i32 @bar(i32, i32, i32, i32, i32, i32) #113