[llvm] r270855 - [BPF] Remove exit-on-error flag in test (PR27767)
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 08:23:51 PDT 2016
Author: rovka
Date: Thu May 26 10:23:50 2016
New Revision: 270855
URL: http://llvm.org/viewvc/llvm-project?rev=270855&view=rev
Log:
[BPF] Remove exit-on-error flag in test (PR27767)
The exit-on-error flag is needed to avoid an assert where
llvm::SelectionDAGISel::LowerArguments doesn't create enough arguments. Fill up
with zeroes to reach the right number of args.
Fixes PR27767.
Differential Revision: http://reviews.llvm.org/D20571
Modified:
llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp
llvm/trunk/test/CodeGen/BPF/many_args2.ll
Modified: llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp?rev=270855&r1=270854&r2=270855&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/BPF/BPFISelLowering.cpp Thu May 26 10:23:50 2016
@@ -199,6 +199,7 @@ SDValue BPFTargetLowering::LowerFormalAr
}
} else {
fail(DL, DAG, "defined with too many args");
+ InVals.push_back(DAG.getConstant(0, DL, VA.getLocVT()));
}
}
Modified: llvm/trunk/test/CodeGen/BPF/many_args2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/many_args2.ll?rev=270855&r1=270854&r2=270855&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/many_args2.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/many_args2.ll Thu May 26 10:23:50 2016
@@ -1,4 +1,4 @@
-; RUN: not llc -march=bpf -exit-on-error < %s 2> %t1
+; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: too many args
More information about the llvm-commits
mailing list