1 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O0 --frame-pointer=non-leaf %s -o - | FileCheck %s
3 %block = type { %blockheader, [0 x ptr] }
4 %blockheader = type { i64 }
6 define void @scanStackRoots(i32) {
10 define i32 @main(i32 %argc, ptr %argv) {
12 %0 = call tailcc ptr @apply_rule_6870(ptr null, ptr null)
16 define internal tailcc ptr @apply_rule_6870(ptr %0, ptr %1) {
18 %2 = tail call tailcc ptr @sender12(ptr %0, ptr %1)
22 define internal tailcc ptr @sender12(ptr %0, ptr %1) {
23 ; CHECK-LABEL: sender12:
24 ; CHECK: .cfi_startproc
25 ; CHECK: subq $8160, %rsp
27 ; CHECK: .cfi_def_cfa_offset 8176
28 ; CHECK: .cfi_offset %rbp, -8176
30 %a = alloca [1024 x i32]
31 %b = load [1024 x i32], ptr %a
32 call void @scanStackRoots(i32 1)
33 %2 = tail call tailcc ptr @apply_rule_6300(ptr %0, ptr %1, [1024 x i32] %b)
37 define internal tailcc ptr @apply_rule_6300(ptr %0, ptr %1, [1024 x i32] %2) {
39 %3 = tail call tailcc ptr @sender4(ptr %0, ptr %1)
43 define internal tailcc ptr @sender4(ptr %0, ptr %1) {
45 call void @scanStackRoots(i32 2)