Improve Compile_Vector_VRCPH
The issue is that it was writing to RSP_Vect before writing to accumulator. Also removed minor overhead, since Recp.UHW[0] always = 0.
This commit is contained in:
parent
aebc9fa8b0
commit
0102762456
|
@ -4620,7 +4620,7 @@ void Compile_Vector_VRCPL ( void ) {
|
|||
|
||||
void Compile_Vector_VRCPH ( void ) {
|
||||
char Reg[256];
|
||||
int count, el, last = -1;
|
||||
int count, el, last;
|
||||
BOOL bWriteToAccum = WriteToAccum(Low16BitAccum, CompilePC);
|
||||
|
||||
#ifndef CompileVrcph
|
||||
|
@ -4634,15 +4634,10 @@ void Compile_Vector_VRCPH ( void ) {
|
|||
MoveVariableToX86regHalf(&RSP_Vect[RSPOpC.rt].UHW[el], Reg, x86_EDX);
|
||||
MoveX86regHalfToVariable(x86_EDX, &Recp.UHW[1], "Recp.UHW[1]");
|
||||
|
||||
MoveConstHalfToVariable(0, &Recp.UHW[0], "Recp.UHW[0]");
|
||||
|
||||
MoveVariableToX86regHalf(&RecpResult.UHW[1], "RecpResult.UHW[1]", x86_ECX);
|
||||
el = 7 - (RSPOpC.rd & 0x7);
|
||||
sprintf(Reg, "RSP_Vect[%i].UHW[%i]", RSPOpC.sa, el);
|
||||
MoveX86regHalfToVariable(x86_ECX, &RSP_Vect[RSPOpC.sa].UHW[el], Reg);
|
||||
|
||||
if (bWriteToAccum == FALSE) return;
|
||||
|
||||
if (bWriteToAccum != FALSE) {
|
||||
last = -1;
|
||||
for (count = 0; count < 8; count++) {
|
||||
el = EleSpec[RSPOpC.rs].B[count];
|
||||
|
||||
|
@ -4657,6 +4652,11 @@ void Compile_Vector_VRCPH ( void ) {
|
|||
}
|
||||
}
|
||||
|
||||
el = 7 - (RSPOpC.rd & 0x7);
|
||||
sprintf(Reg, "RSP_Vect[%i].UHW[%i]", RSPOpC.sa, el);
|
||||
MoveX86regHalfToVariable(x86_ECX, &RSP_Vect[RSPOpC.sa].UHW[el], Reg);
|
||||
}
|
||||
|
||||
void Compile_Vector_VMOV ( void ) {
|
||||
char Reg[256];
|
||||
int el, count;
|
||||
|
|
Loading…
Reference in New Issue