bolt/deps/llvm-18.1.8/llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll
2025-02-14 19:21:04 +01:00

10 lines
333 B
LLVM

; RUN: not llc -march=nvptx < %s 2>&1 | FileCheck %s
; RUN: not llc -march=nvptx64 < %s 2>&1 | FileCheck %s
; CHECK: in function test_dynamic_stackalloc{{.*}}: dynamic alloca unsupported by NVPTX backend
define void @test_dynamic_stackalloc(i64 %n) {
%alloca = alloca i32, i64 %n
store volatile i32 0, ptr %alloca
ret void
}