OpcodeDispatcher: don't mask bt source

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig committed 2023-11-29 13:16:55 -04:00
1 parent 8892580c41
commit 6716077cb6
1 file changed
+2 -1
@@ -2742,7 +2742,8 @@ void OpDispatchBuilder::BTOp(OpcodeArgs) {
InvalidateDeferredFlags();
if (Op->Src[SrcIndex].IsGPR()) {
Src = LoadSource(GPRClass, Op, Op->Src[SrcIndex], Op->Flags);
// Because we mask explicitly with an AND after, we can allow garbage here.
Src = LoadSource(GPRClass, Op, Op->Src[SrcIndex], Op->Flags, {.AllowUpperGarbage = true});
} else {
// Can only be an immediate
// Masked by operand size