OpcodeDispatcher: fix inverted BLSR carry

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-01-23 14:17:07 -04:00
parent 9b309b2102
commit 3a19133267

View File

@ -1059,7 +1059,7 @@ void OpDispatchBuilder::CalculateFlags_BLSR(uint8_t SrcSize, OrderedNode *Result
// CF
{
auto CFOp = _Select(IR::COND_NEQ, Src, Zero, One, Zero);
auto CFOp = _Select(IR::COND_EQ, Src, Zero, One, Zero);
SetRFLAG<X86State::RFLAG_CF_RAW_LOC>(CFOp);
}
}