bolt/deps/llvm-18.1.8/llvm/test/Verifier/NVPTX/setmaxnreg.ll

15 lines
526 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
declare void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 %reg_count)
declare void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 %reg_count)
define void @test_set_maxn_reg() {
; CHECK: reg_count argument to nvvm.setmaxnreg must be in multiples of 8
call void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 95)
; CHECK: reg_count argument to nvvm.setmaxnreg must be within [24, 256]
call void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 16)
ret void
}