xref: /llvm-project/llvm/test/CodeGen/X86/sibcall-4.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=i386-pc-linux-gnu | FileCheck %s
2; pr7610
3
4define ghccc void @t(ptr %Base_Arg, ptr %Sp_Arg, ptr %Hp_Arg, i32 %R1_Arg) nounwind {
5cm1:
6; CHECK-LABEL: t:
7; CHECK: jmpl *%eax
8  %nm3 = getelementptr i32, ptr %Sp_Arg, i32 1
9  %nm9 = load i32, ptr %Sp_Arg
10  %nma = inttoptr i32 %nm9 to ptr
11  tail call ghccc void %nma(ptr %Base_Arg, ptr %nm3, ptr %Hp_Arg, i32 %R1_Arg) nounwind
12  ret void
13}
14