1; RUN: llc < %s -mtriple=i386-pc-unknown-linux-gnu -relocation-model=pic | FileCheck %s 2 3@a0 = global i32 0, align 4 4 5define x86_regcallcc void @tail_call_regcall(i32 %a) nounwind { 6 tail call x86_regcallcc void @__regcall3__func(i32 %a) nounwind 7 ret void 8} 9 10define internal x86_regcallcc void @__regcall3__func(i32 %i1) { 11entry: 12 store i32 %i1, i32* @a0, align 4 13 ret void 14} 15 16;CHECK-LABLE: tail_call_regcall: 17;CHECK: # %bb.0: 18;CHECK-NEXT: jmp __regcall3__func # TAILCALL 19;CHECK-NEXT: .Lfunc_end0: 20 21;CHECK-LABLE: __regcall3__func: 22;CHECK: addl $_GLOBAL_OFFSET_TABLE_+({{.*}}), %ecx 23;CHECK-NEXT: movl a0@GOT(%ecx), %ecx 24;CHECK-NEXT: movl %eax, (%ecx) 25;CHECK-NEXT: retl 26;CHECK-NEXT: .Lfunc_end1: 27