MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / CDQOp

Method CDQOp

FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp:1167–1175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1165}
1166
1167void OpDispatchBuilder::CDQOp(OpcodeArgs) {
1168 const auto DstSize = OpSizeFromDst(Op);
1169 const auto SrcSize = DstSize / 2;
1170 Ref Src = LoadGPRRegister(X86State::REG_RAX, SrcSize, 0, true);
1171
1172 Src = _Sbfe(DstSize <= OpSize::i32Bit ? OpSize::i32Bit : OpSize::i64Bit, IR::OpSizeAsBits(SrcSize), 0, Src);
1173
1174 StoreResult_WithOpSize(GPRClass, Op, Op->Dest, Src, DstSize, OpSize::iInvalid);
1175}
1176
1177void OpDispatchBuilder::SAHFOp(OpcodeArgs) {
1178 // Extract AH

Callers

nothing calls this directly

Calls 1

OpSizeAsBitsFunction · 0.85

Tested by

no test coverage detected