Merge pull request #3819 from alyssarosenzweig/bug/rcr-smol

Fix 8/16-bit RCR
This commit is contained in:
Ryan Houdek authored and GitHub committed 2024-07-05 12:49:23 -07:00
commit 653bf04db0
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);