OpcodeDispatcher: allow upper garbage for a2/a3

stores mask.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-08-11 09:48:46 -04:00
parent 23d07d7d0c
commit 6cddd6cbe7

View File

@ -1403,7 +1403,7 @@ void OpDispatchBuilder::MOVOffsetOp(OpcodeArgs) {
case 0xA3:
// Source is GPR
// Dest is memory(literal)
Src = LoadSource(GPRClass, Op, Op->Src[0], Op->Flags);
Src = LoadSource(GPRClass, Op, Op->Src[0], Op->Flags, {.AllowUpperGarbage = true});
// This one is a bit special since the destination is a literal
// So the destination gets stored in Src[1]
StoreResult(GPRClass, Op, Op->Src[1], Src, -1);