[AMDGPU] Add missing testcase for SGPR to AGPR copy
authorhsmahesha <mahesha.comp@gmail.com>
Wed, 23 Mar 2022 15:51:58 +0000 (21:21 +0530)
committerhsmahesha <mahesha.comp@gmail.com>
Wed, 23 Mar 2022 16:08:04 +0000 (21:38 +0530)
commitf5b6866d7ea91cbd5ef73bbc312de4c20e32f654
treef313b307956990af39aa3c64c9c05aae2690825e
parent850de56b06ce011422fdff31e6531b77d4d0d2b8
[AMDGPU] Add missing testcase for SGPR to AGPR copy

and, also update the function indirectCopyToAGPR() to ensure that it is called only on GFX908 sub-target.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D122286
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/agpr-copy-no-free-registers.ll