[PATCH] D20571: [BPF] Remove exit-on-error flag in test (PR27767)

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 04:40:37 PDT 2016


rovka updated the summary for this revision.
rovka updated this revision to Diff 58402.
rovka added a comment.

Updated to use zeroes instead of undef.


http://reviews.llvm.org/D20571

Files:
  lib/Target/BPF/BPFISelLowering.cpp
  test/CodeGen/BPF/many_args2.ll

Index: test/CodeGen/BPF/many_args2.ll
===================================================================
--- test/CodeGen/BPF/many_args2.ll
+++ test/CodeGen/BPF/many_args2.ll
@@ -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
 
Index: lib/Target/BPF/BPFISelLowering.cpp
===================================================================
--- lib/Target/BPF/BPFISelLowering.cpp
+++ lib/Target/BPF/BPFISelLowering.cpp
@@ -199,6 +199,7 @@
       }
     } else {
       fail(DL, DAG, "defined with too many args");
+      InVals.push_back(DAG.getConstant(0, DL, VA.getLocVT()));
     }
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20571.58402.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160525/77733fdd/attachment.bin>


More information about the llvm-commits mailing list