From e1dbcd724e8b11274711176e72f8cef38913e13b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 14 May 2016 16:20:39 -0700 Subject: [PATCH] jit-ir: Oops, correct vtfm for transposed case. The ones that are aligned are here in this case. Fixes crash in Crisis Core. --- Core/MIPS/IR/IRCompVFPU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/IR/IRCompVFPU.cpp b/Core/MIPS/IR/IRCompVFPU.cpp index 837f71fcdf3d..aef7dc18d3fe 100644 --- a/Core/MIPS/IR/IRCompVFPU.cpp +++ b/Core/MIPS/IR/IRCompVFPU.cpp @@ -1258,10 +1258,10 @@ namespace MIPSComp { ir.Write(IROp::Vec4Scale, s0, sregs[0], tregs[0]); for (int i = 1; i < 4; i++) { if (!homogenous || (i != n - 1)) { - ir.Write(IROp::Vec4Scale, s1, sregs[i * 4], tregs[i]); + ir.Write(IROp::Vec4Scale, s1, sregs[i], tregs[i]); ir.Write(IROp::Vec4Add, s0, s0, s1); } else { - ir.Write(IROp::Vec4Add, s0, s0, sregs[i * 4]); + ir.Write(IROp::Vec4Add, s0, s0, sregs[i]); } } if (IsConsecutive4(dregs)) {