brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 7e85eca Raw
43 lines · plain
1; RUN: llc -verify-machineinstrs -mtriple=i686-- < %s | FileCheck %s2; RUN: llc -verify-machineinstrs -mtriple=i686-- -O0 < %s | FileCheck %s3 4; CHECK-LABEL: t1:5; CHECK: jmp {{_?}}t1_callee6define x86_thiscallcc void @t1(ptr %this) {7  %adj = getelementptr i8, ptr %this, i32 48  musttail call x86_thiscallcc void @t1_callee(ptr %adj)9  ret void10}11declare x86_thiscallcc void @t1_callee(ptr %this)12 13; CHECK-LABEL: t2:14; CHECK: jmp {{_?}}t2_callee15define x86_thiscallcc i32 @t2(ptr %this, i32 %a) {16  %adj = getelementptr i8, ptr %this, i32 417  %rv = musttail call x86_thiscallcc i32 @t2_callee(ptr %adj, i32 %a)18  ret i32 %rv19}20declare x86_thiscallcc i32 @t2_callee(ptr %this, i32 %a)21 22; CHECK-LABEL: t3:23; CHECK: jmp {{_?}}t3_callee24define x86_thiscallcc ptr @t3(ptr %this, ptr inalloca(<{ ptr, i32 }>) %args) {25  %adj = getelementptr i8, ptr %this, i32 426  %a_ptr = getelementptr <{ ptr, i32 }>, ptr %args, i32 0, i32 127  store i32 0, ptr %a_ptr28  %rv = musttail call x86_thiscallcc ptr @t3_callee(ptr %adj, ptr inalloca(<{ ptr, i32 }>) %args)29  ret ptr %rv30}31declare x86_thiscallcc ptr @t3_callee(ptr %this, ptr inalloca(<{ ptr, i32 }>) %args);32 33; CHECK-LABEL: t4:34; CHECK: jmp {{_?}}t4_callee35define x86_thiscallcc ptr @t4(ptr %this, ptr preallocated(<{ ptr, i32 }>) %args) {36  %adj = getelementptr i8, ptr %this, i32 437  %a_ptr = getelementptr <{ ptr, i32 }>, ptr %args, i32 0, i32 138  store i32 0, ptr %a_ptr39  %rv = musttail call x86_thiscallcc ptr @t4_callee(ptr %adj, ptr preallocated(<{ ptr, i32 }>) %args)40  ret ptr %rv41}42declare x86_thiscallcc ptr @t4_callee(ptr %this, ptr preallocated(<{ ptr, i32 }>) %args);43