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

Function GenCodeCmdGreaterD

NULLC/CodeGen_X86.cpp:2926–2942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2924}
2925
2926void GenCodeCmdGreaterD(VMCmd cmd)
2927{
2928 (void)cmd;
2929 EMIT_COMMENT("GREATER double");
2930 EMIT_OP_RPTR(o_fld, sQWORD, rESP, 0);
2931 EMIT_OP_RPTR(o_fcomp, sQWORD, rESP, 8);
2932 EMIT_OP_REG_NUM(o_add, rESP, 12);
2933 EMIT_OP(o_fnstsw);
2934 EMIT_OP_REG_NUM(o_test, rEAX, 0x05);
2935 EMIT_OP_LABEL(o_jp, aluLabels);
2936 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 0, 1);
2937 EMIT_OP_LABEL(o_jmp, aluLabels + 1);
2938 EMIT_LABEL(aluLabels);
2939 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 0, 0);
2940 EMIT_LABEL(aluLabels + 1);
2941 aluLabels += 2;
2942}
2943
2944void GenCodeCmdLEqualD(VMCmd cmd)
2945{

Callers

nothing calls this directly

Calls 7

EMIT_COMMENTFunction · 0.85
EMIT_OP_RPTRFunction · 0.85
EMIT_OP_REG_NUMFunction · 0.85
EMIT_OPFunction · 0.85
EMIT_OP_LABELFunction · 0.85
EMIT_OP_RPTR_NUMFunction · 0.85
EMIT_LABELFunction · 0.85

Tested by

no test coverage detected