mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
TestSuite: fix bug in first fpu test (must use stfd to get value of FPSCR, stfs corrupts the value trying to convert to single precision)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3430 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -41,12 +41,12 @@ void TestDivision() {
|
||||
}
|
||||
|
||||
void TestFres() {
|
||||
u32 fpscr;
|
||||
u32 fpscr[2];
|
||||
float out, out2;
|
||||
TestFRES1(&fpscr, &out, &out2);
|
||||
TestFRES1(fpscr, &out, &out2);
|
||||
char temp[100];
|
||||
sprintf(temp, "%08x %1.1f %1.1f", fpscr, out, out2);
|
||||
Compare(temp, "ffc00004 inf 0.0");
|
||||
sprintf(temp, "%08x %1.1f %1.1f", fpscr[1], out, out2);
|
||||
Compare(temp, "86002004 inf 0.0");
|
||||
}
|
||||
|
||||
void TestNormalize() {
|
||||
|
Reference in New Issue
Block a user