brintos

brintos / llvm-project-archived public Read only

0
0
Text · 704 B · 717bd89 Raw
29 lines · plain
1; RUN: llc < %s | FileCheck %s2target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"3target triple = "x86_64-pc-linux-gnu"4 5declare void @use(ptr)6 7; Test that a frame which requires dynamic relocation produces a stack map8; with a size of UINT64_MAX.9define void @test(ptr %ptr) gc "erlang" {10   ; 32 byte alignment (for the alloca) is larger than the default11   ; 16 byte alignment12   %slot = alloca <4 x ptr>13   call void @use(ptr %slot);14   ret void15}16 17; CHECK: .note.gc18; CHECK-NEXT: .p2align 319; safe point count20; CHECK: .short	121; CHECK: .long	.Ltmp022; stack frame size (in words)23; CHECK: .short	-124; stack arity (arguments on the stack)25; CHECK: .short	026; live root count27; CHECK: .short	028 29