1 ; RUN: llc -march=sparc -O0 <%s
2 ; RUN: llc -march=sparc <%s | FileCheck %s --check-prefix=V8
3 ; RUN: llc -march=sparcv9 <%s | FileCheck %s --check-prefix=V9
23 define void @test() nounwind {
25 %0 = tail call i32 (...) @foo() nounwind
26 tail call void (...) @bar() nounwind
32 declare void @bar(...)
35 ; V8-LABEL: test_tail_call_with_return
40 ; V8-NEXT: restore %g0, %o0, %o0
42 ; V9-LABEL: test_tail_call_with_return
47 ; V9-NEXT: restore %g0, %o0, %o0
49 define i32 @test_tail_call_with_return() nounwind {
51 %0 = tail call i32 (...) @foo() nounwind