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

Function IsSignext

FEXCore/Source/Interface/IR/Passes/RegisterAllocationPass.cpp:460–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460inline bool IsSignext(const IROp_Header* IROp, OrderedNodeWrapper Src, OpSize Size) {
461 if (IROp->Op == OP_SBFE) {
462 auto Sbfe = IROp->C<IR::IROp_Sbfe>();
463 return Sbfe->Width == 1 && Sbfe->lsb == (IR::OpSizeAsBits(Size) - 1) && Sbfe->Src == Src;
464 } else {
465 return false;
466 }
467}
468
469inline bool IsZero(const IROp_Header* IROp) {
470 return IROp->Op == OP_CONSTANT && IROp->C<IROp_Constant>()->Constant == 0;

Callers 1

TryPostRAMergeMethod · 0.85

Calls 1

OpSizeAsBitsFunction · 0.85

Tested by

no test coverage detected