[jdk17] Integrated: 8269879: [PPC64] C2: Math.rint intrinsic uses wrong rounding mode
Martin Doerr
mdoerr at openjdk.java.net
Wed Jul 7 12:55:52 UTC 2021
On Mon, 5 Jul 2021 20:05:29 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
> We need to replace the frin and xvrdpi instructions which use a wrong rounding mode. xvrdpic is available with Power7. We can simply switch off RoundDoubleMode intrinsics for older processors (which are outdated).
> Note that xvrdpic requires RN=0b00 to use the correct rounding mode. These 2 bits are 0 by default (see "Registers Specified during Process Initialization" in [1]) and are treated as "Limited-Access Bits" (see "2.2.1.2. Limited-Access Bits" in [1] for preservation rules).
>
> [1] "64-Bit ELF V2 ABI Specification" http://cdn.openpowerfoundation.org/wp-content/uploads/resources/leabi/leabi-20170510.pdf
This pull request has now been integrated.
Changeset: 1f2bf1d1
Author: Martin Doerr <mdoerr at openjdk.org>
URL: https://git.openjdk.java.net/jdk17/commit/1f2bf1d19482f9240ba494994b584d1cd7edf898
Stats: 7 lines in 3 files changed: 5 ins; 0 del; 2 mod
8269879: [PPC64] C2: Math.rint intrinsic uses wrong rounding mode
Reviewed-by: lucy, goetz
-------------
PR: https://git.openjdk.java.net/jdk17/pull/215
More information about the hotspot-compiler-dev
mailing list