mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 13:00:41 +02:00
OpcodeDispatcher: optimize BZHI
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
d17c427e47
commit
0ef8aaebeb
3 files changed
+5
-9
No files matched your search
@@ -1877,8 +1877,11 @@ void OpDispatchBuilder::BZHI(OpcodeArgs) {
|
||||
|
||||
auto Zero = _Constant(0);
|
||||
auto One = _Constant(1);
|
||||
auto CF = _NZCVSelect(OpSize::i32Bit, {COND_NEQ}, One, Zero);
|
||||
CalculateFlags_BZHI(Size, Result, CF);
|
||||
auto CFInv = _NZCVSelect(OpSize::i32Bit, {COND_EQ}, One, Zero);
|
||||
|
||||
InvalidatePF_AF();
|
||||
SetNZ_ZeroCV(Size, Result);
|
||||
SetCFInverted(CFInv);
|
||||
}
|
||||
|
||||
void OpDispatchBuilder::RORX(OpcodeArgs) {
|
||||
|
||||
Reference in new issue
Block a user