brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 8a06a1f Raw
30 lines · plain
1; RUN: llc < %s -mtriple=i686-linux-gnu -mcpu=pentium | FileCheck %s2 3; Tail call should not make register allocation fail (x86-32)4 5%struct.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }6%struct.BIG_PARM = type { i32 }7 8@vtable = internal unnamed_addr constant [1 x %struct.anon] [%struct.anon { ptr inttoptr (i32 -559038737 to ptr), ptr null, ptr null, ptr null, ptr null, ptr null, ptr null }], align 49 10; Function Attrs: nounwind uwtable11define dso_local i32 @something(ptr inreg noundef %a, ptr inreg noundef %b) local_unnamed_addr #0 {12entry:13  ; CHECK:	movl	(%eax), %ecx14  ; CHECK-NEXT: leal	(%ecx,%ecx,8), %esi15  ; CHECK-NEXT: leal	(%esi,%esi,2), %esi16  ; CHECK-NEXT: movl	vtable(%ecx,%esi), %ecx17  ; CHECK-NEXT: popl	%esi18  ; CHECK: jmpl	*%ecx19  %0 = load i32, ptr %a, align 420  %foo = getelementptr [1 x %struct.anon], ptr @vtable, i32 0, i32 %0, i32 021  %1 = load ptr, ptr %foo, align 422  %call = tail call i32 %1(ptr inreg noundef %a, ptr inreg noundef %b) #123  ret i32 %call24}25 26!llvm.module.flags = !{!0}27 28!0 = !{i32 1, !"NumRegisterParameters", i32 3}29 30