Check parity

From sebastianbiallas/pearpc · View interactive version

Check parity is an AI agent skill from the GitHub repository sebastianbiallas/pearpc. Check that aarch64 JIT interpreter functions match generic CPU behavior

How to use this skill

Skill file

Check Interpreter Parity

Run the interpreter parity check and analyze results. If an opcode name is given, show a side-by-side diff for that specific opcode.

Steps

  1. Always run the stub audit first — this catches no-op stubs (the #1 bug source):

```

python3 scripts/debug/stub_audit.py $ARGUMENTS

```

If an opcode name was given, this shows a side-by-side generic vs JIT diff.

If no arguments, it scans all functions and reports no-op stubs.

  1. Run ./scripts/debug/check_interpreter_parity.sh
  2. For any issues found:
  1. For each GEN_INTERPRET warning, check the x86 JIT (src/cpu/cpu_jitc_x86/ppc_opc.cc) to see how it handles the same opcode. The x86 JIT is the reference for how gen_ functions should work.

Critical rule

GEN_INTERPRET CANNOT dispatch synchronous exceptions. The only correct approaches are:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.