xref: /llvm-project/llvm/test/CodeGen/X86/stdcall-notailcall.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc -mtriple=i386-apple-darwin11 -O2 < %s | FileCheck %s
2
3%struct.I = type { ptr }
4define x86_stdcallcc void @bar(ptr nocapture %this) ssp align 2 {
5; CHECK-LABEL: bar:
6; CHECK-NOT: jmp
7; CHECK: retl $4
8entry:
9  tail call void @foo()
10  ret void
11}
12
13define x86_thiscallcc void @test2(ptr  %this, i32 %a) {
14; CHECK-LABEL: test2:
15; CHECK: calll _foo
16; CHECK: retl $4
17  tail call void @foo()
18  ret void
19}
20
21declare void @foo()
22