OpcodeDispatcher: use _ShiftFlags for ASHR

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2024-04-03 13:38:26 -04:00
parent c632543451
commit 098859caf7

View File

@ -1772,9 +1772,7 @@ void OpDispatchBuilder::ASHROp(OpcodeArgs) {
}
OrderedNode *Result = _Ashr(IR::SizeToOpSize(std::max<uint8_t>(4, GetSrcSize(Op))), Dest, Src);
StoreResult(GPRClass, Op, Result, -1);
GenerateFlags_SignShiftRight(Op, Result, Dest, Src);
HandleShift(Op, Result, Dest, ShiftType::ASR, Src);
}
template<bool SHR1Bit>