1 ; RUN: llc -verify-machineinstrs -mtriple=i686-- < %s | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -mtriple=i686-- -O0 < %s | FileCheck %s
5 ; CHECK: jmp {{_?}}t1_callee
6 define x86_thiscallcc void @t1(ptr %this) {
7 %adj = getelementptr i8, ptr %this, i32 4
8 musttail call x86_thiscallcc void @t1_callee(ptr %adj)
11 declare x86_thiscallcc void @t1_callee(ptr %this)
14 ; CHECK: jmp {{_?}}t2_callee
15 define 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)
20 declare x86_thiscallcc i32 @t2_callee(ptr %this, i32 %a)
23 ; CHECK: jmp {{_?}}t3_callee
24 define 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)
31 declare x86_thiscallcc ptr @t3_callee(ptr %this, ptr inalloca(<{ ptr, i32 }>) %args);
34 ; CHECK: jmp {{_?}}t4_callee
35 define 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)
42 declare x86_thiscallcc ptr @t4_callee(ptr %this, ptr preallocated(<{ ptr, i32 }>) %args);