mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user