Emulator Issues #14148
openARM64 JIT asserts on addme/subfme with destination r0 (2609-59)
0%
Description
Game Name?
Standalone libogc homebrew arithmetic probes (addme-r0.dol / subfme-r0.dol). Originally encountered in the GTI Club 2 Wii recompilation port; attached probes need no game assets.
Game ID?
N/A: standalone homebrew DOLs, no disc Game ID.
MD5 Hash?
File MD5s (homebrew DOLs, not disc integrity hashes):
addme-r0.dol: 0726f781f83c120d257db97dcdd6eacf
subfme-r0.dol: 8862301f00d52e264a272d20584d47ff
What's the problem? Describe what went wrong.
Native ARM64 JIT asserts instead of completing these arithmetic probes: "Attempted to load a discarded value", !will_read || reg.IsInPPCState(), JitArm64_RegCache.cpp:423, BindForWrite (2609-59).
Expected: all ten cases print OK, then END PASS failures=0.
Destination-r5 controls pass.
Integer-JIT-disabled r0 probes pass in 2606.
What steps will reproduce the problem?
- Extract dolphin-arm-integer-repro.zip.
- Run official universal Dolphin natively on Apple Silicon, ARM64 JIT (CPUCore=4), normal integer JIT enabled.
- Open addme-r0.dol or subfme-r0.dol; the assertion appears.
- Open corresponding r5 control separately to see ten passing cases.
No assertions were ignored in the clean standalone reproductions.
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
Yes: official 2609-59, both probes. Listed as latest development build on https://dolphin-emu.org/download/ when checked on 2026-10-05.
Is the issue present in the latest release? For future reference, please also write down the version number of the latest release.
Latest release 2609 has not been tested with these standalone probes.
Confirmed in release 2606 (both probes, BindForWrite line 412), and 2407 (addme probe, BindToRegister line 386).
Latest release listing checked 2026-10-05.
If the issue isn't present in the latest release, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
Unknown; not bisected.
Oldest tested affected version is 2407 (addme).
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
Not a graphical issue; standalone integer arithmetic/JIT register-cache assertion. No fifolog attached.
What are your PC specifications?
Apple M4 Pro, 14 CPU cores, 20 GPU cores, 48 GiB RAM. macOS 15.8.1 (24H32), native arm64; Metal renderer.
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots, configuration files, savefiles, savestates)
ZIP includes four standalone probes, source/build instructions, checksums, logs and a two-line 2606 patch. No arcade ROMs/media included.
Likely cause: shared addex/addmex and subfex/subfmex handlers request will_read=(d==a || d==b). For mex, RB is reserved zero, not an input; the handler uses literal -1. Destination r0 therefore requests discarded old r0. Proposed predicate: d==a || (!mex && d==b).
A separate patched 2606 ARM64 build passes both r0 probes (20/20 cases) with normal integer JIT and the unchanged game's scripted checkpoint; its 16 MiB RAM matches the Intel baseline byte-for-byte. No assertions ignored.
Probe scope: result values, not outgoing XER, record or overflow variants. DOLs include trailing padding required by the development loader. Separate game session-wide-ignore sweep in 2609-59 logged 127 occurrences of this same assertion and no additional distinct assertion through the scripted checkpoint.
See session-error-sweep.txt for scope and startup warnings.
HTH!
Files
No data to display