OpcodeDispatcher: fuse orlshl in rcr 1-bit

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-01-25 17:40:48 -04:00
parent 7c288b09f1
commit c92099aa98

View File

@ -2390,7 +2390,7 @@ void OpDispatchBuilder::RCROp1Bit(OpcodeArgs) {
Res = _Bfe(OpSize::i32Bit, Size - Shift, Shift, Dest);
// inject the CF
Res = _Or(OpSize::i32Bit, Res, _Lshl(OpSize::i32Bit, CF, _Constant(Size, Size - Shift)));
Res = _Orlshl(OpSize::i32Bit, Res, CF, Size - Shift);
}
// CF only changes if we actually shifted