MCPcopy Create free account
hub / github.com/WheretIB/nullc / GenCodeCmdLEqualL

Function GenCodeCmdLEqualL

NULLC/CodeGen_X86.cpp:2677–2696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2675}
2676
2677void GenCodeCmdLEqualL(VMCmd cmd)
2678{
2679 (void)cmd;
2680 EMIT_COMMENT("LEQUAL long");
2681 EMIT_OP_REG(o_pop, rEAX);
2682 EMIT_OP_REG(o_pop, rEDX);
2683 EMIT_OP_RPTR_REG(o_cmp, sDWORD, rESP, 4, rEDX);
2684 EMIT_OP_LABEL(o_jg, aluLabels);
2685 EMIT_OP_LABEL(o_jl, aluLabels + 1);
2686 EMIT_OP_RPTR_REG(o_cmp, sDWORD, rESP, 0, rEAX);
2687 EMIT_OP_LABEL(o_ja, aluLabels);
2688 EMIT_LABEL(aluLabels + 1);
2689 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 4, 1);
2690 EMIT_OP_LABEL(o_jmp, aluLabels + 2);
2691 EMIT_LABEL(aluLabels);
2692 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 4, 0);
2693 EMIT_LABEL(aluLabels + 2);
2694 EMIT_OP_REG(o_pop, rEAX);
2695 aluLabels += 3;
2696}
2697
2698void GenCodeCmdGEqualL(VMCmd cmd)
2699{

Callers

nothing calls this directly

Calls 6

EMIT_COMMENTFunction · 0.85
EMIT_OP_REGFunction · 0.85
EMIT_OP_RPTR_REGFunction · 0.85
EMIT_OP_LABELFunction · 0.85
EMIT_LABELFunction · 0.85
EMIT_OP_RPTR_NUMFunction · 0.85

Tested by

no test coverage detected