History log of /external/lldb/test/arm_emulation/TestEmulations.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2c11caa9ffc78d3245fe7d8c46e8b147ac3f2797 22-Apr-2011 Caroline Tice <ctice@apple.com> Modify to use the new test files.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/arm_emulation/TestEmulations.py
09008d035b798ccae9fc5208567aaf4a01a28b23 21-Apr-2011 Johnny Chen <johnny.chen@apple.com> Use self.TraceOn() API to decide whether to print debug output.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129935 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/arm_emulation/TestEmulations.py
6b8d3b5e7f0507aca2ee1c0937d7ec80fa2a9c5b 20-Apr-2011 Caroline Tice <ctice@apple.com> Add the infrastructure to test instruction emulations automatically.
The idea is that the instruction to be emulated is actually executed
on the hardware to be emulated, with the before and after state of the
hardware being captured and 'freeze-dried' into .dat files. The
emulation testing code then loads the before & after state from the
.dat file, emulates the instruction using the before state, and
compares the resulting state to the 'after' state. If they match, the
emulation is accurate, otherwise there is a problem.

The final format of the .dat files needs a bit more work; the plan is
to generalize them a bit and to convert the plain values to key-value pairs.
But I wanted to get this first pass committed.

This commit adds arm instruction emulation testing to the testsuite, along with
many initial .dat files.

It also fixes a bug in the llvm disassembler, where 32-bit thumb opcodes
were getting their upper & lower 16-bits reversed.

There is a new Instruction sub-class, that is intended to be loaded
from a .dat file rather than read from an executable. There is also a
new EmulationStateARM class, for handling the before & after states.
EmulationStates for other architetures can be added later when we
emulate their instructions.




git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129832 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/arm_emulation/TestEmulations.py