mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-08 13:00:43 +00:00
bbf43bf006
The exit-on-error flag on the many_args1.ll test is needed to avoid an unreachable in BPFTargetLowering::LowerCall. We can also avoid it by ignoring any superfluous arguments to the call (i.e. any arguments after the first 5). Fixes PR27766. Differential Revision: http://reviews.llvm.org/D20471 v2 of r270419 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270440 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
321 B
LLVM
13 lines
321 B
LLVM
; RUN: not llc -march=bpf < %s 2> %t1
|
|
; RUN: FileCheck %s < %t1
|
|
; CHECK: too many args
|
|
|
|
; Function Attrs: nounwind uwtable
|
|
define i32 @foo(i32 %a, i32 %b, i32 %c) #0 {
|
|
entry:
|
|
%call = tail call i32 @bar(i32 %a, i32 %b, i32 %c, i32 1, i32 2, i32 3) #3
|
|
ret i32 %call
|
|
}
|
|
|
|
declare i32 @bar(i32, i32, i32, i32, i32, i32) #1
|