MOVEM is used to spill the register, which will cause problem with 1 byte data, since it only supports word (2 bytes) and long (4 bytes) size.
We change to use the normal move instruction to spill 1 byte data.
Fixes #57660
Differential D133636
[M68k] Fix the crash of fast register allocator 0x59616e on Sep 9 2022, 11:49 PM. Authored by
Details MOVEM is used to spill the register, which will cause problem with 1 byte data, since it only supports word (2 bytes) and long (4 bytes) size. We change to use the normal move instruction to spill 1 byte data. Fixes #57660
Diff Detail Event Timeline
Comment Actions Thank you for fixing this bug! Comment Actions Fix the assertion in M68kInstrInfo::storeRegToStackSlot and M68kInstrInfo::loadRegFromStackSlot
|
does i16 need fixing as well?