diff options
| author | j4ck.fr0st <j4ck.fr0st@gmail.com> | 2010-04-11 12:27:27 +0000 |
|---|---|---|
| committer | j4ck.fr0st <j4ck.fr0st@gmail.com> | 2010-04-11 12:27:27 +0000 |
| commit | 800595980e0bea5a8da5bfe4124369f89c2bf8af (patch) | |
| tree | e46d0983cbc40cf6ea04a4b1486344b2d4f8e910 /Source/UnitTests/AudioJitTests.cpp | |
| parent | 7c35138435251458b482f82e62cef73da27bc76c (diff) | |
Fixed a small bug in J_CC when emitting jumps that exceed 0x80 in range (only used by DSP NR yet).
Add back a CMP nakee missed in his last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5328 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/UnitTests/AudioJitTests.cpp')
| -rw-r--r-- | Source/UnitTests/AudioJitTests.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/UnitTests/AudioJitTests.cpp b/Source/UnitTests/AudioJitTests.cpp index db17e24926..60597c9512 100644 --- a/Source/UnitTests/AudioJitTests.cpp +++ b/Source/UnitTests/AudioJitTests.cpp @@ -47,19 +47,21 @@ void nx_ir() void nx_nr() { SDSP test_dsp; - DSPJitTester tester(0x40, 0x0c); + DSPJitTester tester(0x40, 0x0c, true); - for (u16 input_reg = 0; input_reg < 50; input_reg++) + for (u16 input_reg = 0; input_reg < 10; input_reg++) for (u16 input_wr0 = 0; input_wr0 < 10; input_wr0++) + for (u16 input_ix0 = 0; input_ix0 < 10; input_ix0++) { memset(&test_dsp, 0, sizeof(SDSP)); + test_dsp.r[DSP_REG_IX0] = input_ix0; test_dsp.r[DSP_REG_WR0] = input_wr0; test_dsp.r[0] = input_reg; if (!tester.Test(test_dsp)) { - printf("%s Test failed: in = 0x%04x, wr0 = 0x%04x > int = 0x%04x, jit = 0x%04x\n", + printf("%s Test failed: in = 0x%04x, wr0 = 0x%04x, ix0 = 0x%04x > int = 0x%04x, jit = 0x%04x\n", tester.GetInstructionName(), - input_reg, input_wr0, + input_reg, input_wr0, input_ix0, tester.GetLastInterpreterDSP().r[0], tester.GetLastJitDSP().r[0]); } } |
