2010-10-25 22:17:05 +00:00
|
|
|
; RUN: llc -mtriple=i386-apple-darwin11 -O2 < %s | FileCheck %s
|
|
|
|
|
|
|
|
%struct.I = type { i32 (...)** }
|
|
|
|
define x86_stdcallcc void @bar(%struct.I* nocapture %this) ssp align 2 {
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: bar:
|
2010-10-25 22:17:05 +00:00
|
|
|
; CHECK-NOT: jmp
|
2014-01-08 12:58:07 +00:00
|
|
|
; CHECK: retl $4
|
2010-10-25 22:17:05 +00:00
|
|
|
entry:
|
|
|
|
tail call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2013-11-22 15:18:28 +00:00
|
|
|
define x86_thiscallcc void @test2(%struct.I* %this, i32 %a) {
|
|
|
|
; CHECK-LABEL: test2:
|
|
|
|
; CHECK: calll _foo
|
2014-01-08 12:58:07 +00:00
|
|
|
; CHECK: retl $4
|
2013-11-22 15:18:28 +00:00
|
|
|
tail call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2010-10-25 22:17:05 +00:00
|
|
|
declare void @foo()
|