mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-23 08:27:24 +03:00
8047a5d0ed
Add support for abstract interpretation of division operations in the ARM backend (when the operands to division are concretely known). This commit also adds extended documentation on the semantics of these operations. The concrete evaluation eliminates constant division operations. The abstract cases are probably obsolete in light of that, but are still interesting... These changes were motivated by insufficient simplification around some of the syscall/errno handling code in musl |
||
---|---|---|
.. | ||
arm | ||
ARMTests.hs | ||
MismatchTests.hs | ||
README.md | ||
Shared.hs | ||
TestMain.hs |
Overview
The tests in this directory attempt to test both ARM and Thumb decoding/discovery. The test suite only runs on the binaries with corresponding .mcw.expected
files, which describe the expected discovered basic blocks.
- test-just-exit-a32.exe: Ensures that the very basics of anything at all works
- test-conditional-a32.exe: Ensures that conditional branches in A32 mode are handled correctly
- test-direct-call-a32.exe: Ensures that call and return sequences work in A32 mode
- test-direct-call-t32.exe: Ensures that transitions (via call) to Thumb mode work correctly
- test-conditional-mixed.exe: Ensures that multi-block Thumb functions are handled correctly
- test-just-exit-t32.exe: Ensures that Thumb entry points work correctly
Notes
The test-just-exit-t32.exe test is interesting because executables with Thumb entry points have the low bit set (even though it isn't technically the address where the function starts - it happens to work because the ISA clears the bit before jumping). We want to make sure that macaw handles it correctly.