summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-24 10:36:42 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-24 10:36:42 +0000
commit4cf911c0cdd97ffd9eed8e6d8a269cb4c075a922 (patch)
tree20274a5b277975b84767c2a8638bc219df912c22 /llvm/test/Analysis
parentcd6df16cb4c6dd65d1b4b20b8b18a2378a584d52 (diff)
downloadbcm5719-llvm-4cf911c0cdd97ffd9eed8e6d8a269cb4c075a922.tar.gz
bcm5719-llvm-4cf911c0cdd97ffd9eed8e6d8a269cb4c075a922.zip
FileCheck-ize these tests.
llvm-svn: 155433
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r--llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll8
-rw-r--r--llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll4
2 files changed, 9 insertions, 3 deletions
diff --git a/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll b/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
index 784d6c7ba1b..55d0be6f26f 100644
--- a/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
+++ b/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
@@ -1,5 +1,9 @@
-; RUN: opt < %s -print-callgraph -disable-output |& \
-; RUN: grep {calls function 'callee'} | count 2
+; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
+
+; CHECK: Call graph node <<null function>>
+; CHECK: CS<{{.*}}> calls function 'callee'
+; CHECK: Call graph node for function: 'caller'
+; CHECK: CS<{{.*}}> calls function 'callee'
define internal void @callee(...) {
entry:
diff --git a/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll b/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
index 0c5ef92ef71..632cd0c790a 100644
--- a/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
+++ b/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
@@ -1,7 +1,9 @@
-; RUN: opt < %s -print-callgraph -disable-output |& grep {calls function}
+; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
@a = global void ()* @f ; <void ()**> [#uses=0]
+; CHECK: calls function 'f'
+
define internal void @f() {
unreachable
}
OpenPOWER on IntegriCloud