OpcodeDispatcher: fuse orlshl in rcl

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-01-22 14:36:32 -04:00
parent 2884337d85
commit 6d82c957fa

View File

@ -2618,8 +2618,7 @@ void OpDispatchBuilder::RCLOp1Bit(OpcodeArgs) {
auto CF = GetRFLAG(FEXCore::X86State::RFLAG_CF_RAW_LOC);
// Rotate left and insert CF in to lowest bit
OrderedNode *Res = _Lshl(OpSize, Dest, _Constant(Size, 1));
Res = _Or(OpSize, Res, CF);
OrderedNode *Res = _Orlshl(OpSize, CF, Dest, 1);
StoreResult(GPRClass, Op, Res, -1);