brintos

brintos / llvm-project-archived public Read only

0
0
Text · 617 B · 1afebea Raw
17 lines · plain
1; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s2 3declare void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 %reg_count)4declare void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 %reg_count)5 6define void @test_set_maxn_reg() {7  ; CHECK: reg_count argument to nvvm.setmaxnreg must be in multiples of 88  call void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 95)9 10  ; CHECK: immarg value 16 out of range [24, 257)11  call void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 16)12 13  ; CHECK: immarg value 264 out of range [24, 257)14  call void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 264)15  ret void16}17