mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-17 09:51:26 +00:00
- Fixed: FxCompareRel::Emit() generated broken code for floating point operands.
SVN r3895 (scripting)
This commit is contained in:
parent
c1aefec1e3
commit
2c92941f6b
1 changed files with 2 additions and 2 deletions
|
@ -1566,7 +1566,7 @@ ExpEmit FxCompareRel::Emit(VMFunctionBuilder *build)
|
||||||
{ OP_LT_RR, OP_LTF_RR, 0 }, // <
|
{ OP_LT_RR, OP_LTF_RR, 0 }, // <
|
||||||
{ OP_LE_RR, OP_LEF_RR, 1 }, // >
|
{ OP_LE_RR, OP_LEF_RR, 1 }, // >
|
||||||
{ OP_LT_RR, OP_LTF_RR, 1 }, // >=
|
{ OP_LT_RR, OP_LTF_RR, 1 }, // >=
|
||||||
{ OP_LE_RR, OP_LE_RR, 0 } // <=
|
{ OP_LE_RR, OP_LEF_RR, 0 } // <=
|
||||||
};
|
};
|
||||||
int instr, check, index;
|
int instr, check, index;
|
||||||
|
|
||||||
|
@ -1591,7 +1591,7 @@ ExpEmit FxCompareRel::Emit(VMFunctionBuilder *build)
|
||||||
{
|
{
|
||||||
op1.Free(build);
|
op1.Free(build);
|
||||||
}
|
}
|
||||||
ExpEmit to(build, op1.RegType);
|
ExpEmit to(build, REGT_INT);
|
||||||
|
|
||||||
// See FxUnaryNotBoolean for comments, since it's the same thing.
|
// See FxUnaryNotBoolean for comments, since it's the same thing.
|
||||||
build->Emit(OP_LI, to.RegNum, 0, 0);
|
build->Emit(OP_LI, to.RegNum, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue