mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 11:00:53 +02:00
Merge pull request #3819 from alyssarosenzweig/bug/rcr-smol
Fix 8/16-bit RCR
This commit is contained in:
4 files changed
+127
-11
No files matched your search
@@ -2224,9 +2224,10 @@ void OpDispatchBuilder::RCRSmallerOp(OpcodeArgs) {
|
||||
Tmp = _Bfi(OpSize::i64Bit, 17, 34, Tmp, Tmp);
|
||||
}
|
||||
|
||||
// Entire bitfield has been setup
|
||||
// Just extract the 8 or 16bits we need
|
||||
Ref Res = _Lshr(OpSize::i32Bit, Tmp, Src);
|
||||
// Entire bitfield has been setup. Just extract the 8 or 16bits we need.
|
||||
// 64-bit shift used because we want to rotate in our cascaded upper bits
|
||||
// rather than zeroes.
|
||||
Ref Res = _Lshr(OpSize::i64Bit, Tmp, Src);
|
||||
|
||||
StoreResult(GPRClass, Op, Res, -1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user