Search
lxdream.org :: lxdream/test/sh4/README
lxdream 0.9.1
released Jun 29
Download Now
filename test/sh4/README
changeset 225:e5cea6125580
author nkeynes
date Sun Dec 14 07:50:48 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Setup a 'proper' stackframe in translated blocks. This doesn't affect performance noticeably,
but does ensure that
a) The stack is aligned correctly on OS X with no extra effort, and
b) We can't mess up the stack and crash that way anymore.
Replace all PUSH/POP instructions (outside of prologue/epilogue) with ESP-rel moves to stack
local variables.
Finally merge ia32mac and ia32abi together, since they're pretty much the same now anyway (and
thereby simplifying maintenance a good deal)
file annotate diff log raw
nkeynes@225
     1
SH4 instruction set tests.
nkeynes@225
     2
Each core instruction has its own set of tests that are assembled into the
nkeynes@225
     3
main test executable.
nkeynes@225
     4
nkeynes@225
     5
Note: Since each instruction's tests obviously depends on other
nkeynes@225
     6
instructions, its possible for multiple bugs to cancel each other out.
nkeynes@225
     7
However the tests are structured as much as possible to prevent this.
nkeynes@225
     8
nkeynes@225
     9
Each test loops repeatedly for a constant number of times (currently 1000)
nkeynes@225
    10
to a) ensure that dynamic recompilation kicks in and recompiles the block,
nkeynes@225
    11
and b) allow the code to be timed (to a first approximation anyway).
.