diff --git a/src/arch/amdgpu/gcn3/insts/instructions.cc b/src/arch/amdgpu/gcn3/insts/instructions.cc index 8c51af5187..478b1d38d0 100644 --- a/src/arch/amdgpu/gcn3/insts/instructions.cc +++ b/src/arch/amdgpu/gcn3/insts/instructions.cc @@ -32123,9 +32123,9 @@ namespace Gcn3ISA for (int lane = 0; lane < NumVecElemPerVecReg; ++lane) { if (gpuDynInst->exec_mask[lane]) { - vdst0[lane] = (reinterpret_cast( + vdst0[lane] = (reinterpret_cast( gpuDynInst->d_data))[lane * 2]; - vdst1[lane] = (reinterpret_cast( + vdst1[lane] = (reinterpret_cast( gpuDynInst->d_data))[lane * 2 + 1]; } } diff --git a/src/arch/amdgpu/vega/insts/instructions.cc b/src/arch/amdgpu/vega/insts/instructions.cc index 45c84910f2..6c014bc107 100644 --- a/src/arch/amdgpu/vega/insts/instructions.cc +++ b/src/arch/amdgpu/vega/insts/instructions.cc @@ -35665,13 +35665,13 @@ namespace VegaISA Inst_DS__DS_READ2ST64_B32::completeAcc(GPUDynInstPtr gpuDynInst) { VecOperandU32 vdst0(gpuDynInst, extData.VDST); - VecOperandU32 vdst1(gpuDynInst, extData.VDST + 2); + VecOperandU32 vdst1(gpuDynInst, extData.VDST + 1); for (int lane = 0; lane < NumVecElemPerVecReg; ++lane) { if (gpuDynInst->exec_mask[lane]) { - vdst0[lane] = (reinterpret_cast( + vdst0[lane] = (reinterpret_cast( gpuDynInst->d_data))[lane * 2]; - vdst1[lane] = (reinterpret_cast( + vdst1[lane] = (reinterpret_cast( gpuDynInst->d_data))[lane * 2 + 1]; } }