view test/CodeGen/X86/stdcall-notailcall.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children 54457678186b
line wrap: on
line source

; 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 {
; CHECK-LABEL: bar:
; CHECK-NOT: jmp
; CHECK: ret $4
entry:
  tail call void @foo()
  ret void
}

define x86_thiscallcc void @test2(%struct.I*  %this, i32 %a) {
; CHECK-LABEL: test2:
; CHECK: calll _foo
; CHECK: ret $4
  tail call void @foo()
  ret void
}

declare void @foo()