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

Method CMPOp

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

Source from the content-addressed store, hash-verified

1096}
1097
1098void OpDispatchBuilder::CMPOp(OpcodeArgs, uint32_t SrcIndex) {
1099 // CMP is an instruction that does a SUB between the sources
1100 // Result isn't stored in result, only writes to flags
1101 Ref Src = LoadSource(GPRClass, Op, Op->Src[SrcIndex], Op->Flags, {.AllowUpperGarbage = true});
1102 Ref Dest = LoadSource(GPRClass, Op, Op->Dest, Op->Flags, {.AllowUpperGarbage = true});
1103 CalculateFlags_SUB(OpSizeFromSrc(Op), Dest, Src);
1104}
1105
1106void OpDispatchBuilder::CQOOp(OpcodeArgs) {
1107 Ref Src = LoadSource(GPRClass, Op, Op->Src[0], Op->Flags, {.AllowUpperGarbage = true});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected