29 lines · plain
1; RUN: not llc -mtriple=amdgcn -mcpu=gfx908 -o - %s 2>%t.err | FileCheck -implicit-check-not=error %s2; RUN: FileCheck -check-prefix=ERR %s < %t.err3 4; This testcase would fail on an "illegal eviction". If the assert was5; relaxed to allow equivalent cascade numbers, it would infinite loop.6 7; ERR: error: inline assembly requires more registers than available8 9%asm.output = type { <16 x i32>, <8 x i32>, <5 x i32>, <4 x i32>, <16 x i32> }10 11; CHECK-LABEL: {{^}}illegal_eviction_assert:12; CHECK: ; def v[13:28] v[0:7] v[8:12] v[0:3] a[0:15]13; CHECK: ; clobber14; CHECK: ; use v[13:28] v[0:7] v[8:12] v[0:3] a[1:16]15define void @illegal_eviction_assert(ptr addrspace(1) %arg) #0 {16 ;%agpr0 = call i32 asm sideeffect "; def $0","=${a0}"()17 %asm = call %asm.output asm sideeffect "; def $0 $1 $2 $3 $4","=v,=v,=v,=v,={a[0:15]}"()18 %vgpr0 = extractvalue %asm.output %asm, 019 %vgpr1 = extractvalue %asm.output %asm, 120 %vgpr2 = extractvalue %asm.output %asm, 221 %vgpr3 = extractvalue %asm.output %asm, 322 %agpr0 = extractvalue %asm.output %asm, 423 call void asm sideeffect "; clobber", "~{v[0:31]}"()24 call void asm sideeffect "; use $0 $1 $2 $3 $4","v,v,v,v,{a[1:16]}"(<16 x i32> %vgpr0, <8 x i32> %vgpr1, <5 x i32> %vgpr2, <4 x i32> %vgpr3, <16 x i32> %agpr0)25 ret void26}27 28attributes #0 = { "amdgpu-waves-per-eu"="8,8" }29