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

Function GenCodeCmdLessL

NULLC/CodeGen_X86.cpp:2635–2654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2633}
2634
2635void GenCodeCmdLessL(VMCmd cmd)
2636{
2637 (void)cmd;
2638 EMIT_COMMENT("LESS long");
2639 EMIT_OP_REG(o_pop, rEAX);
2640 EMIT_OP_REG(o_pop, rEDX);
2641 EMIT_OP_RPTR_REG(o_cmp, sDWORD, rESP, 4, rEDX);
2642 EMIT_OP_LABEL(o_jg, aluLabels);
2643 EMIT_OP_LABEL(o_jl, aluLabels + 1);
2644 EMIT_OP_RPTR_REG(o_cmp, sDWORD, rESP, 0, rEAX);
2645 EMIT_OP_LABEL(o_jae, aluLabels);
2646 EMIT_LABEL(aluLabels + 1);
2647 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 4, 1);
2648 EMIT_OP_LABEL(o_jmp, aluLabels + 2);
2649 EMIT_LABEL(aluLabels);
2650 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 4, 0);
2651 EMIT_LABEL(aluLabels + 2);
2652 EMIT_OP_REG(o_pop, rEAX);
2653 aluLabels += 3;
2654}
2655
2656void GenCodeCmdGreaterL(VMCmd cmd)
2657{

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