Corrections made in this follow-up

  1. Load/store allocation: reject SIMD unprivileged imm9 forms, invalid pre/post-indexed or unprivileged prefetch forms, and non-temporal LDPSW. See ARM ARM C6.2.82, C6.2.97-102 and C6.2.143, together with C4 allocation.
  2. SIMD structure allocation: reject nonzero Rm in no-offset structure loads/stores, and bit 21 in multiple-structure forms. See C7.2.152/153 and C7.2.275/276. 0c427020 and 0c607020 each failed both emitters before the fix. Register writeback and V31-to-V0 register-list wraparound are also tested.
  3. FP/SIMD allocation: reject the later general FP16 FMOV forms (C7.2.114 explicitly makes type 11 unallocated), invalid scalar FCVTL, URECPE/URSQRTE, AdvSIMD FSQRT, and three-register scalar ADDP encodings.
  4. Exclusive allocation: reject LDLAR/STLLR on this profile. SBO violations in unused exclusive-instruction fields now choose UNDEFINED, an outcome permitted by C2.2.1. Previously ignoring those SBO fields was not by itself an architectural violation; it is distinct from accepting later LOR words.
  5. Defined integer C arithmetic: negative ADR/ADRP offsets no longer left-shift a negative signed C value. SIMD wrapping ABS/NEG and SADDW/SSUBW, widening shifts, 64-bit saturation bounds, and doubled signed products avoid signed overflow/invalid shifts. In particular, 2 * INT32_MIN * INT32_MIN needs a wider intermediate before saturation. See C7.2.206, .247-.250 and .274. These are portability/UB corrections, not a claim that all old runtime builds produced incorrect integer results (they used -fwrapv, which is now banned).
  6. A57 FP state: MSR FPCR retains only 0x07c00000 for the Switch target (a target with FEAT_FP16 also keeps FZ16, 0x07c80000); MSR FPSR retains only 0xf800009f. This follows the TRM, rather than the more permissive Unicorn register implementation. Direct specification witnesses test readback.

SNX_ABI is 13 (9 added RtAPI.svcs, 10 moved the dispatch miss to RtAPI.miss, 11 is the reworked LLVM backend's modules, 12 added RtAPI.cas128, which snx_cas128 takes the CPU for, and 13 the AOT module's snx_variants() table, which the runtime reads as optional). Rebuild the runtime and regenerate game modules; stale AOT code must not retain the old decoder/operation semantics.


Made from docs/history/divergences.md at 69237645142c. GPL-3.0-or-later.