mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 11:03:45 +01:00
ARM disassembler: Rewrite, cover everything the emitter can emit, add a test
The old disarm handled the integer instructions but only a fraction of VFP and NEON, and got several of those wrong. The new one decodes ARMv7-A ARM state with VFPv4 and NEON, printing UAL with upper case mnemonics. The new ArmDisasm test runs every ARM emitter function through it, two examples each. Tools/arm_disasm_check.py compares the test's output with llvm-mc; they agree on all of it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e9d2c5966f
commit
f7db56628c
11 files changed
+2508
-1608
No files matched your search
@@ -3087,6 +3087,7 @@ struct TestItem {
|
||||
#define TEST_ITEM(name) { #name, &Test ##name, }
|
||||
|
||||
bool TestArmEmitter();
|
||||
bool TestArmDisasm();
|
||||
bool TestArm64Emitter();
|
||||
bool TestArm64Disasm();
|
||||
bool TestCrossSIMD();
|
||||
@@ -3417,6 +3418,7 @@ TestItem availableTests[] = {
|
||||
#endif
|
||||
#if PPSSPP_ARCH(ARM) || PPSSPP_ARCH(AMD64) || PPSSPP_ARCH(X86)
|
||||
TEST_ITEM(ArmEmitter),
|
||||
TEST_ITEM(ArmDisasm),
|
||||
#endif
|
||||
#if PPSSPP_ARCH(AMD64) || PPSSPP_ARCH(X86)
|
||||
TEST_ITEM(X64Emitter),
|
||||
|
||||
Reference in new issue
Block a user