OSDN Git Service

[AMDGPU][MC][GFX908] Corrected src0 of v_accvgpr_write to accept only VGPRs and inlin...
authorDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>
Thu, 28 May 2020 12:07:58 +0000 (15:07 +0300)
committerDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>
Thu, 28 May 2020 12:10:55 +0000 (15:10 +0300)
commitf47e27e260e3e06167a7e1de8a4c092b95717e15
treec6e0d199fa099b56778ca3f6dd80e6f4437525d1
parent73ae678363fb42418a8959955d05488191045b31
[AMDGPU][MC][GFX908] Corrected src0 of v_accvgpr_write to accept only VGPRs and inline constants.

This change disables use of special SGPR registers like scc, vccz, execz, etc as operands of v_accvgpr_write.

See bug 45414: https://bugs.llvm.org/show_bug.cgi?id=45414

Reviewers: arsenm, rampitec

Differential Revision: https://reviews.llvm.org/D80530
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/test/MC/AMDGPU/mai.s