RFR: 8265917: Different values computed by C2 and interpreter/C1 for Math.pow(x, 2.0) on x86_32 [v2]

Jie Fu jiefu at openjdk.java.net
Tue Apr 27 11:12:39 UTC 2021


On Tue, 27 Apr 2021 09:29:28 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> 64-bit code also handles `Special case: pow(x, 0.5) => sqrt(x)`. Don't we need to add that as well for consistency?

This is the bug fix for C2's optimization of pow(x, 2.0).

pow(x, 0.5) will be handled in JDK-8265940 .
Thanks.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3677


More information about the hotspot-compiler-dev mailing list