rev 7982 : 8074869: C2 code generator can replace -0.0f with +0.0f on Linux Reviewed-by: kvn, simonis
@@ -4414,15 +4414,15 @@ op_cost(40); format %{ %} interface(CONST_INTER); %} -// constant 'float +0.0'. +// Float Immediate: +0.0f. operand immF_0() %{ - predicate((n->getf() == 0) && - (fpclassify(n->getf()) == FP_ZERO) && (signbit(n->getf()) == 0)); + predicate(jint_cast(n->getf()) == 0); match(ConF); + op_cost(0); format %{ %} interface(CONST_INTER); %}