Fixes:
- M68K optimizer: prove index-register liveness before deleting scale
instructions in optimizeIndexedPointerLea.
- M68K optimizer: reject staged-add pair fold when the staged register is
also the add destination.
- M68K optimizer: prove removed flag-setting moves are dead before folding
staged adds or replacing pushes with pea.
- M68K optimizer: only treat full .l writes as redefinitions in the deadness
proof; byte/word partial writes keep the staged value live.
- M68K optimizer: treat add/sub/addq/subq to address registers as flag-
preserving (ADDA/SUBA semantics).
- M68K FPO: reject subroutines whose inline assembly mentions A5 (reads as
well as writes) and subroutines containing PUSH/POP/PUSHST/POPST.
- ADPCM wavc example: stop byte-swapping already-native m68k decoder output;
add deinterleave_16bit_stereo_be helper.
- M68K/new6502 backends and IR codec: preserve ImmediateOperand.SymbolAddress
offsets instead of dropping them; fix codec round-trip with type suffix.
- Clean up M68kMnemonics allFlagOverwriters classification for address-register
arithmetic.
- Remove unnecessary d1-d2 register saves in deinterleave_16bit_stereo_be.
A multi-assign returning one status flag plus register values used to
read the registers first, wrapped in PUSHST/POPST. That crashes the
68000 backend, which cannot save/restore CCR, and wastes two
instructions everywhere else. Extract the flag first instead: nothing
can clobber the status bits before it is captured, so no
preservation is needed. Multi-flag calls keep the old behavior.
add 8 IR opcodes (LOADMZ/LOADMS/LOADMZL/LOADMSL and the indexed
LOADI variants) and a peephole fusion pass that replaces
loadm/indexload followed by ext/exts/extl/extls with a single
extending load. Implemented for m68k, new6502 and the VM; run
deduplicateAddressComputations before fusion so it still sees the
unfused loadm+ext pairs.
appendSpillSlotsToFrame() now builds a per-subroutine type map because
renumberVregsPerSubroutine() reuses vreg numbers across subroutines with
different types. Using the global virtualRegisterTypes map caused spilled
pointer vregs to be sized as byte/word, producing unaligned stack slots
like -9(a5) and crashing 68000 / corrupting saved registers on 68020.