17 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_90a -mattr=+ptx80| FileCheck --check-prefixes=CHECK %s2; RUN: %if ptxas-sm_90a && ptxas-isa-8.0 %{ llc < %s -mtriple=nvptx64 -mcpu=sm_90a -mattr=+ptx80| %ptxas-verify -arch=sm_90a %}3 4declare void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 %reg_count)5declare void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 %reg_count)6 7; CHECK-LABEL: test_set_maxn_reg8define void @test_set_maxn_reg() {9 ; CHECK: setmaxnreg.inc.sync.aligned.u32 96;10 call void @llvm.nvvm.setmaxnreg.inc.sync.aligned.u32(i32 96)11 12 ; CHECK: setmaxnreg.dec.sync.aligned.u32 64;13 call void @llvm.nvvm.setmaxnreg.dec.sync.aligned.u32(i32 64)14 15 ret void16}17