mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 22:00:16 +02:00
Frontend: Remove DST_RDX flag
Easiest initial one to remove. Adds a helper that matches behaviour of previous StoreResult around zero-extend mechanics to make things easier.
This commit is contained in:
5 files changed
+18
-6
No files matched your search
@@ -1083,8 +1083,7 @@ void OpDispatchBuilder::CQOOp(OpcodeArgs) {
|
||||
Ref Src = LoadSourceGPR(Op, Op->Src[0], Op->Flags, {.AllowUpperGarbage = true});
|
||||
auto Size = OpSizeFromSrc(Op);
|
||||
Ref Upper = _Sbfe(std::max(OpSize::i32Bit, Size), 1, GetSrcBitSize(Op) - 1, Src);
|
||||
|
||||
StoreResultGPR(Op, Upper);
|
||||
StoreGPRResultWithZExtSemantics(X86State::REG_RDX, Upper, OpSizeFromDst(Op));
|
||||
}
|
||||
|
||||
void OpDispatchBuilder::XCHGOp(OpcodeArgs) {
|
||||
|
||||
Reference in new issue
Block a user