[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/calls.ll

Chris Lattner lattner at cs.uiuc.edu
Tue May 16 20:57:43 PDT 2006



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

calls.ll added (r1.1)
---
Log message:

new test for various forms of calls


---
Diffs of the changes:  (+23 -0)

 calls.ll |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/calls.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/calls.ll:1.1
*** /dev/null	Tue May 16 22:57:41 2006
--- llvm/test/Regression/CodeGen/PowerPC/calls.ll	Tue May 16 22:57:31 2006
***************
*** 0 ****
--- 1,23 ----
+ ; Test various forms of calls.
+ 
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'bl ' | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'bctrl' | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'bla ' | wc -l | grep 1
+ 
+ declare void %foo()
+ 
+ void %test_direct() {
+ 	call void %foo()
+ 	ret void
+ }
+ 
+ void %test_indirect(void()* %fp) {
+ 	call void %fp()
+ 	ret void
+ }
+ 
+ void %test_abs() {
+ 	%fp = cast int 400 to void()*
+ 	call void %fp()
+ 	ret void
+ }






More information about the llvm-commits mailing list