mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
OpcodeDispatcher: drop misinformed comment
tbnz only tests a single bit, not a mask. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
1 parent
d92de1d947
commit
8cc684fa12
1 file changed
+1
-7
@@ -1662,13 +1662,7 @@ void OpDispatchBuilder::SHLDOp(OpcodeArgs) {
|
||||
|
||||
const auto Size = GetSrcBitSize(Op);
|
||||
|
||||
// x86 masks the shift by 0x3F or 0x1F depending on size of op. Arm will mask
|
||||
// by 0x3F when we do 64-bit shifts so we don't need to mask in that case,
|
||||
// since the modulo is preserved even after presubtracting Size=64 for
|
||||
// ShiftRight.
|
||||
//
|
||||
// TODO: Implement this optimization, it requires turning the shift=0 cases
|
||||
// into (shift&0xc0) bit tests which is a bit complicated for now.
|
||||
// x86 masks the shift by 0x3F or 0x1F depending on size of op.
|
||||
if (Size == 64) {
|
||||
Shift = _And(OpSize::i64Bit, Shift, _Constant(0x3F));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user