brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · f60fca1 Raw
31 lines · plain
1; RUN: not llc -mtriple=amdgcn -mcpu=gfx908 -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR -implicit-check-not=error %s2 3; ERR: error: inline assembly requires more registers than available4; ERR-NOT: ERROR5; ERR-NOT: Bad machine code6 7; This test requires respecting undef on the spill source operand when8; expanding the pseudos to avoid all verifier errors9 10%asm.output = type { <16 x i32>, <8 x i32>, <4 x i32>, <3 x i32>, <3 x i32> }11 12define void @foo(<32 x i32> addrspace(1)* %arg) #0 {13  %agpr0 = call i32 asm sideeffect "; def $0","=${a0}"()14  %asm = call %asm.output asm sideeffect "; def $0 $1 $2 $3 $4","=v,=v,=v,=v,=v"()15  %vgpr0 = extractvalue %asm.output %asm, 016  %vgpr1 = extractvalue %asm.output %asm, 117  %vgpr2 = extractvalue %asm.output %asm, 218  %vgpr3 = extractvalue %asm.output %asm, 319  %vgpr4 = extractvalue %asm.output %asm, 420  call void asm sideeffect "; clobber", "~{a[0:31]},~{v[0:31]}"()21  call void asm sideeffect "; use $0","v"(<16 x i32> %vgpr0)22  call void asm sideeffect "; use $0","v"(<8 x i32> %vgpr1)23  call void asm sideeffect "; use $0","v"(<4 x i32> %vgpr2)24  call void asm sideeffect "; use $0","v"(<3 x i32> %vgpr3)25  call void asm sideeffect "; use $0","v"(<3 x i32> %vgpr4)26  call void asm sideeffect "; use $0","{a1}"(i32 %agpr0)27  ret void28}29 30attributes #0 = { "amdgpu-waves-per-eu"="8,8" }31