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() #0 {
25 %0 = tail call i32 (...) @foo() nounwind
26 tail call void (...) @bar() nounwind
32 declare void @bar(...)
34 ; V8-LABEL: test_tail_call_with_return
37 ; V8-NEXT: mov %g1, %o7
39 ; V9-LABEL: test_tail_call_with_return
42 ; V9-NEXT: mov %g1, %o7
44 define i32 @test_tail_call_with_return() nounwind {
46 %0 = tail call i32 (...) @foo() nounwind
50 attributes #0 = { nounwind "disable-tail-calls"="true" }