1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

AMDGPU: Fix element size assertion

The GlobalISel usage called this with bits, but the DAG usage was
incorrectly using bytes.
This commit is contained in:
Matt Arsenault 2020-01-22 11:18:45 -05:00 committed by Matt Arsenault
parent b889862fe2
commit 42c5f78e96

View File

@ -3505,7 +3505,7 @@ static MachineBasicBlock *emitIndirectDst(MachineInstr &MI,
}
const MCInstrDesc &MovRelDesc
= TII->getIndirectRegWritePseudo(TRI.getRegSizeInBits(*VecRC), 4, false);
= TII->getIndirectRegWritePseudo(TRI.getRegSizeInBits(*VecRC), 32, false);
if (setM0ToIndexFromSGPR(TII, MRI, MI, Offset, UseGPRIdxMode, false)) {
MachineBasicBlock::iterator I(&MI);