1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
3 declare void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 %reg_count)
4 declare void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 %reg_count)
6 define void @test_set_maxn_reg() {
7 ; CHECK: reg_count argument to nvvm.setmaxnreg must be in multiples of 8
8 call void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 95)
10 ; CHECK: reg_count argument to nvvm.setmaxnreg must be within [24, 256]
11 call void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 16)