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

Function GenCodeCmdGreaterL

NULLC/CodeGen_X86.cpp:2656–2675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2654}
2655
2656void GenCodeCmdGreaterL(VMCmd cmd)
2657{
2658 (void)cmd;
2659 EMIT_COMMENT("GREATER long");
2660 EMIT_OP_REG(o_pop, rEAX);
2661 EMIT_OP_REG(o_pop, rEDX);
2662 EMIT_OP_RPTR_REG(o_cmp, sDWORD, rESP, 4, rEDX);
2663 EMIT_OP_LABEL(o_jl, aluLabels);
2664 EMIT_OP_LABEL(o_jg, aluLabels + 1);
2665 EMIT_OP_RPTR_REG(o_cmp, sDWORD, rESP, 0, rEAX);
2666 EMIT_OP_LABEL(o_jbe, aluLabels);
2667 EMIT_LABEL(aluLabels + 1);
2668 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 4, 1);
2669 EMIT_OP_LABEL(o_jmp, aluLabels + 2);
2670 EMIT_LABEL(aluLabels);
2671 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 4, 0);
2672 EMIT_LABEL(aluLabels + 2);
2673 EMIT_OP_REG(o_pop, rEAX);
2674 aluLabels += 3;
2675}
2676
2677void GenCodeCmdLEqualL(VMCmd cmd)
2678{

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