capstone
capstone copied to clipboard
Remove asm-text "normalization" from `cstest`
Feature
- [ ] New architecture module
- [ ] Support for processor extension
- [ ] Add more instruction details (elaborated below)
- [ ] Binding support for:
language - [x] Other (elaborated below)
Describe the feature you'd like
The previous cstest "normalized` the asm string. It removes spaces, replaces tabs, replaces hex with decimal and converts negative numbers to their two's complement positive version.
The last point is very problematic, because we no longer detect incorrect assembly output.
I had to move it into the new cstest, because otherwise too many test cases fail. But this should be removed for all auto-sync architectures.
Additional context
Functions I had to move in suite/cstest/src/helper.c