1; RUN: llc -verify-machineinstrs -mtriple=i686-- < %s | FileCheck %s 2; RUN: llc -verify-machineinstrs -mtriple=i686-- -O0 < %s | FileCheck %s 3 4; CHECK-LABEL: t1: 5; CHECK: jmp {{_?}}t1_callee 6define x86_thiscallcc void @t1(ptr %this) { 7 %adj = getelementptr i8, ptr %this, i32 4 8 musttail call x86_thiscallcc void @t1_callee(ptr %adj) 9 ret void 10} 11declare x86_thiscallcc void @t1_callee(ptr %this) 12 13; CHECK-LABEL: t2: 14; CHECK: jmp {{_?}}t2_callee 15define x86_thiscallcc i32 @t2(ptr %this, i32 %a) { 16 %adj = getelementptr i8, ptr %this, i32 4 17 %rv = musttail call x86_thiscallcc i32 @t2_callee(ptr %adj, i32 %a) 18 ret i32 %rv 19} 20declare x86_thiscallcc i32 @t2_callee(ptr %this, i32 %a) 21 22; CHECK-LABEL: t3: 23; CHECK: jmp {{_?}}t3_callee 24define x86_thiscallcc ptr @t3(ptr %this, ptr inalloca(<{ ptr, i32 }>) %args) { 25 %adj = getelementptr i8, ptr %this, i32 4 26 %a_ptr = getelementptr <{ ptr, i32 }>, ptr %args, i32 0, i32 1 27 store i32 0, ptr %a_ptr 28 %rv = musttail call x86_thiscallcc ptr @t3_callee(ptr %adj, ptr inalloca(<{ ptr, i32 }>) %args) 29 ret ptr %rv 30} 31declare x86_thiscallcc ptr @t3_callee(ptr %this, ptr inalloca(<{ ptr, i32 }>) %args); 32 33; CHECK-LABEL: t4: 34; CHECK: jmp {{_?}}t4_callee 35define x86_thiscallcc ptr @t4(ptr %this, ptr preallocated(<{ ptr, i32 }>) %args) { 36 %adj = getelementptr i8, ptr %this, i32 4 37 %a_ptr = getelementptr <{ ptr, i32 }>, ptr %args, i32 0, i32 1 38 store i32 0, ptr %a_ptr 39 %rv = musttail call x86_thiscallcc ptr @t4_callee(ptr %adj, ptr preallocated(<{ ptr, i32 }>) %args) 40 ret ptr %rv 41} 42declare x86_thiscallcc ptr @t4_callee(ptr %this, ptr preallocated(<{ ptr, i32 }>) %args); 43