summaryrefslogtreecommitdiff
path: root/Source/UnitTests/AudioJitTests.cpp
diff options
context:
space:
mode:
authorpierre <pierre@pirsoft.de>2010-11-07 23:15:31 +0000
committerpierre <pierre@pirsoft.de>2010-11-07 23:15:31 +0000
commit874dab37f893ccd6d22b6dcc750e665405c0b755 (patch)
tree0497fbbcf2bf4003e90ad08d00a14b3a9c9e0b47 /Source/UnitTests/AudioJitTests.cpp
parente96943c1211235dff56d94606ee779ed2a3dfa73 (diff)
Core/DSPCore: Make Jit read from coefficient ROM when told to do so,
change the unit test to catch this bug if it turns up again and two more zeroWriteBackLog() calls. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6356 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/UnitTests/AudioJitTests.cpp')
-rw-r--r--Source/UnitTests/AudioJitTests.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/UnitTests/AudioJitTests.cpp b/Source/UnitTests/AudioJitTests.cpp
index 4cef5931fa..4991eeb485 100644
--- a/Source/UnitTests/AudioJitTests.cpp
+++ b/Source/UnitTests/AudioJitTests.cpp
@@ -286,6 +286,27 @@ void nx_slnm()
tester2.Report();
}
+void nx_ld()
+{
+ DSPJitTester tester1(0x8000, 0x00c0);
+ tester1.AddTestData(DSP_REG_AXL0,0xdead);
+ tester1.AddTestData(DSP_REG_AXL1,0xbeef);
+ tester1.AddTestData(DSP_REG_AR0);
+ tester1.AddTestData(DSP_REG_WR0);
+ tester1.AddTestData(DSP_REG_IX0);
+ tester1.TestAll(true);
+ tester1.Report();
+
+ DSPJitTester tester2(0x8000, 0x00c0);
+ tester2.AddTestData(DSP_REG_AXL0,0xdead);
+ tester2.AddTestData(DSP_REG_AXL1,0xbeef);
+ tester2.AddTestData(DSP_REG_AR3);
+ tester2.AddTestData(DSP_REG_WR3);
+ tester2.AddTestData(DSP_REG_IX3);
+ tester2.TestAll(true);
+ tester2.Report();
+}
+
void AudioJitTests()
{
DSPJitTester::Initialize();
@@ -315,6 +336,7 @@ void AudioJitTests()
nx_sln();
nx_slm();
nx_slnm();
+ nx_ld();
}
//required to be able to link against DSPCore