2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep bl &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep blx
|
2006-10-18 16:21:43 +00:00
|
|
|
|
2006-07-25 20:17:20 +00:00
|
|
|
void %f() {
|
|
|
|
entry:
|
|
|
|
call void %g( int 1, int 2, int 3, int 4 )
|
2006-10-18 12:03:07 +00:00
|
|
|
call fastcc void %h()
|
2006-07-25 20:17:20 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void %g(int, int, int, int)
|
2006-10-18 12:03:07 +00:00
|
|
|
declare fastcc void %h()
|
2006-10-18 16:21:43 +00:00
|
|
|
|
|
|
|
void %g(void (...)* %g) {
|
|
|
|
entry:
|
|
|
|
%g_c = cast void (...)* %g to void ()*
|
|
|
|
call void %g_c( )
|
|
|
|
ret void
|
|
|
|
}
|