brintos

brintos / llvm-project-archived public Read only

0
0
Text · 746 B · 232719c Raw
31 lines · plain
1; RUN: llc < %s -mtriple=arm64-linux-gnu | FileCheck %s2 3; When a function does a dynamic stack allocation, the function's stack size4; is reported as UINT64_MAX.5 6; CHECK-LABEL:  .section  .llvm_stackmaps7; CHECK-NEXT:  __LLVM_StackMaps:8; Header9; CHECK-NEXT:   .byte 310; CHECK-NEXT:   .byte 011; CHECK-NEXT:   .hword 012; Num Functions13; CHECK-NEXT:   .word 114; Num LargeConstants15; CHECK-NEXT:   .word 016; Num Callsites17; CHECK-NEXT:   .word 118 19; Functions and stack size20; CHECK-NEXT:   .xword f21; CHECK-NEXT:   .xword -122 23define void @f(i32 %nelems) {24entry:25  %mem = alloca i32, i32 %nelems26  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 0, ptr %mem)27  ret void28}29 30declare void @llvm.experimental.stackmap(i64, i32, ...)31