bolt/deps/llvm-18.1.8/llvm/test/CodeGen/BPF/dynamic-stack.ll

9 lines
217 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: not llc < %s -mtriple=bpfel 2>&1 | FileCheck %s
define i64 @vla(i64 %num) {
; CHECK: unsupported dynamic stack allocation
%vla = alloca i32, i64 %num
%ret = ptrtoint ptr %vla to i64
ret i64 %ret
}