summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2016-01-06 22:55:03 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2016-01-06 22:55:03 +0000
commit0f1762caf97f72ba2dbc3696de51e9c3894e80c4 (patch)
tree05eba76fa9b23c10913edc256c94e983ba727d9a /llvm/test
parentcf07a311072ce67f6c32050dc608d0cf1b0184da (diff)
downloadbcm5719-llvm-0f1762caf97f72ba2dbc3696de51e9c3894e80c4.tar.gz
bcm5719-llvm-0f1762caf97f72ba2dbc3696de51e9c3894e80c4.zip
Recommit r256952 "Filtering IR printing for print-after-all/print-before-all"
Fix lit test fail due to outputting an extra line. Differential Revision: http://reviews.llvm.org/D15776 llvm-svn: 256987
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Other/2010-05-06-Printer.ll14
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/test/Other/2010-05-06-Printer.ll b/llvm/test/Other/2010-05-06-Printer.ll
index e57b9825b33..dcc0e752bb5 100644
--- a/llvm/test/Other/2010-05-06-Printer.ll
+++ b/llvm/test/Other/2010-05-06-Printer.ll
@@ -1,7 +1,19 @@
; RUN: llc -O2 -print-after-all < %s 2>/dev/null
+; RUN: llc -O2 -print-after-all < %s 2>&1 | FileCheck %s --check-prefix=ALL
+; RUN: llc -O2 -print-after-all -filter-print-funcs=foo < %s 2>&1 | FileCheck %s --check-prefix=FOO
; REQUIRES: default_triple
-
define void @tester(){
ret void
}
+define void @foo(){
+ ret void
+}
+
+;ALL: define void @tester()
+;ALL: define void @foo()
+;ALL: ModuleID =
+
+;FOO: IR Dump After
+;FOO-NEXT: define void @foo()
+;FOO-NOT: define void @tester
OpenPOWER on IntegriCloud