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

Function GenCodeCmdLEqualD

NULLC/CodeGen_X86.cpp:2944–2960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2942}
2943
2944void GenCodeCmdLEqualD(VMCmd cmd)
2945{
2946 (void)cmd;
2947 EMIT_COMMENT("LEQUAL double");
2948 EMIT_OP_RPTR(o_fld, sQWORD, rESP, 0);
2949 EMIT_OP_RPTR(o_fcomp, sQWORD, rESP, 8);
2950 EMIT_OP_REG_NUM(o_add, rESP, 12);
2951 EMIT_OP(o_fnstsw);
2952 EMIT_OP_REG_NUM(o_test, rEAX, 0x01);
2953 EMIT_OP_LABEL(o_jne, aluLabels);
2954 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 0, 1);
2955 EMIT_OP_LABEL(o_jmp, aluLabels + 1);
2956 EMIT_LABEL(aluLabels);
2957 EMIT_OP_RPTR_NUM(o_mov, sDWORD, rESP, 0, 0);
2958 EMIT_LABEL(aluLabels + 1);
2959 aluLabels += 2;
2960}
2961
2962void GenCodeCmdGEqualD(VMCmd cmd)
2963{

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