32 lines · plain
1; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -vgpr-regalloc=greedy -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s2; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -vgpr-regalloc=basic -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s3; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 -vgpr-regalloc=fast -filetype=null %s 2>&1 | FileCheck -implicit-check-not=error %s4 5declare <32 x i32> @llvm.amdgcn.mfma.i32.32x32x4i8(i32, i32, <32 x i32>, i32 immarg, i32 immarg, i32 immarg)6 7; CHECK: error: <unknown>:0:0: no registers from class available to allocate in function 'no_registers_from_class_available_to_allocate'8define <32 x i32> @no_registers_from_class_available_to_allocate(<32 x i32> %arg) #0 {9 %ret = call <32 x i32> @llvm.amdgcn.mfma.i32.32x32x4i8(i32 1, i32 2, <32 x i32> %arg, i32 1, i32 2, i32 3)10 ret <32 x i32> %ret11}12 13; CHECK: error: <unknown>:0:0: no registers from class available to allocate in function 'no_registers_from_class_available_to_allocate_asm_use'14define void @no_registers_from_class_available_to_allocate_asm_use(<32 x i32> %arg) #0 {15 call void asm sideeffect "; use $0", "v"(<32 x i32> %arg)16 ret void17}18 19; CHECK: error: <unknown>:0:0: no registers from class available to allocate in function 'no_registers_from_class_available_to_allocate_asm_def'20define <32 x i32> @no_registers_from_class_available_to_allocate_asm_def() #0 {21 %ret = call <32 x i32> asm sideeffect "; def $0", "=v"()22 ret <32 x i32> %ret23}24 25; CHECK: error: <unknown>:0:0: no registers from class available to allocate in function 'no_registers_from_class_available_to_allocate_undef_asm'26define void @no_registers_from_class_available_to_allocate_undef_asm() #0 {27 call void asm sideeffect "; use $0", "v"(<32 x i32> poison)28 ret void29}30 31attributes #0 = { "amdgpu-waves-per-eu"="10,10" }32