Convert tests using "| wc -l | grep ..." to use the count script.
[oota-llvm.git] / test / CodeGen / PowerPC / calls.ll
1 ; Test various forms of calls.
2
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
4 ; RUN:   grep {bl } | count 2
5 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
6 ; RUN:   grep {bctrl} | count 1
7 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
8 ; RUN:   grep {bla } | count 1
9
10 declare void %foo()
11
12 void %test_direct() {
13         call void %foo()
14         ret void
15 }
16
17 void %test_extsym(sbyte *%P) {
18         free sbyte* %P
19         ret void
20 }
21
22 void %test_indirect(void()* %fp) {
23         call void %fp()
24         ret void
25 }
26
27 void %test_abs() {
28         %fp = cast int 400 to void()*
29         call void %fp()
30         ret void
31 }