[llvm-commits] [llvm] r155433 - in /llvm/trunk/test/Analysis/CallGraph: 2008-09-09-DirectCall.ll 2008-09-09-UsedByGlobal.ll

Bill Wendling isanbard at gmail.com
Tue Apr 24 03:36:42 PDT 2012


Author: void
Date: Tue Apr 24 05:36:42 2012
New Revision: 155433

URL: http://llvm.org/viewvc/llvm-project?rev=155433&view=rev
Log:
FileCheck-ize these tests.

Modified:
    llvm/trunk/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
    llvm/trunk/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll

Modified: llvm/trunk/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CallGraph/2008-09-09-DirectCall.ll?rev=155433&r1=155432&r2=155433&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CallGraph/2008-09-09-DirectCall.ll (original)
+++ llvm/trunk/test/Analysis/CallGraph/2008-09-09-DirectCall.ll Tue Apr 24 05:36:42 2012
@@ -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:

Modified: llvm/trunk/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll?rev=155433&r1=155432&r2=155433&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll (original)
+++ llvm/trunk/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll Tue Apr 24 05:36:42 2012
@@ -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
 }





More information about the llvm-commits mailing list