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:
hrydgard
2009-06-13 20:20:48 +00:00
parent 625eeec130
commit 757e8e5b4c
2 changed files with 6 additions and 6 deletions

View File

@ -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() {