OpcodeDispatcher: Minor optimization to small pushf

The push operation already truncates the result, there's no need to bfe
it. Noticed this while cleaning up in #4134. Removes one instruction for
16-bit and 32-bit pushf instructions.
This commit is contained in:
Ryan Houdek committed 2024-10-25 15:41:22 -07:00
1 parent 51fa61a1cd
commit f143462ebe
1 file changed
-4
@@ -3573,10 +3573,6 @@ void OpDispatchBuilder::PUSHFOp(OpcodeArgs) {
const uint8_t Size = GetSrcSize(Op);
Ref Src = GetPackedRFLAG();
if (Size != 8) {
Src = _Bfe(OpSize::i32Bit, Size * 8, 0, Src);
}
Push(Size, Src);
}