brintos

brintos / llvm-project-archived public Read only

0
0
Text · 742 B · 53e768c Raw
31 lines · plain
1; RUN: llc < %s -mtriple=s390x-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:       .section .llvm_stackmaps7; CHECK-NEXT:  __LLVM_StackMaps:8; Header9; CHECK-NEXT:   .byte 310; CHECK-NEXT:   .byte 011; CHECK-NEXT:   .short 012; Num Functions13; CHECK-NEXT:   .long 114; Num LargeConstants15; CHECK-NEXT:   .long 016; Num Callsites17; CHECK-NEXT:   .long 118 19; Functions and stack size20; CHECK-NEXT:   .quad f21; CHECK-NEXT:   .quad -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