From 2ed4c1bd6beee83904689d860b19204a325a9df1 Mon Sep 17 00:00:00 2001 From: Bovine Date: Sat, 3 Jan 2015 02:04:08 -0700 Subject: [PATCH] Fix matrix disassembly notation Changed disassembler output to match gas input for operations on transposed matrices where row != col. --- Core/MIPS/MIPSVFPUUtils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSVFPUUtils.cpp b/Core/MIPS/MIPSVFPUUtils.cpp index 4f018df14..385926d5b 100644 --- a/Core/MIPS/MIPSVFPUUtils.cpp +++ b/Core/MIPS/MIPSVFPUUtils.cpp @@ -460,7 +460,10 @@ const char *GetMatrixNotation(int reg, MatrixSize size) default: c='?'; break; } if (transpose && c=='M') c='E'; - sprintf(hej[yo],"%c%i%i%i",c,mtx,col,row); + if (transpose) + sprintf(hej[yo],"%c%i%i%i",c,mtx,row,col); + else + sprintf(hej[yo],"%c%i%i%i",c,mtx,col,row); return hej[yo]; }