Skip to content

Commit

Permalink
jit-ir: Oops, correct vtfm for transposed case.
Browse files Browse the repository at this point in the history
The ones that are aligned are here in this case.  Fixes crash in Crisis
Core.
  • Loading branch information
unknownbrackets committed May 14, 2016
1 parent 01d63a1 commit e1dbcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/MIPS/IR/IRCompVFPU.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit e1dbcd7

Please sign in to comment.