[jdk22u] Integrated: 8318158: RISC-V: implement roundD/roundF intrinsics

Olga Mikhaltsova omikhaltcova at openjdk.org
Thu Jan 18 16:02:40 UTC 2024


On Fri, 12 Jan 2024 12:54:02 GMT, Olga Mikhaltsova <omikhaltcova at openjdk.org> wrote:

> I would like to backport [JDK-8318158](https://bugs.openjdk.org/browse/JDK-8318158) to jdk22u in order to optimize performance in double/float rounding operations by means of intrinsics.
> The patch applied cleanly.
> Tested: no regression in tier1 tests.
> 
> The benchmark shows the following performance improvement on the T-Head RVB-ICE board:
> **Before**
> 
> Benchmark                              (TESTSIZE)   Mode  Cnt    Score   Error   Units
> FpRoundingBenchmark.test_round_double        2048  thrpt   15   59.722  0.259  ops/ms
> FpRoundingBenchmark.test_round_float         2048  thrpt   15   49.729  0.127  ops/ms
> 
> **After**
> 
> Benchmark                              (TESTSIZE)   Mode  Cnt    Score   Error   Units
> FpRoundingBenchmark.test_round_double        2048  thrpt   15  118.496  0.277  ops/ms
> FpRoundingBenchmark.test_round_float         2048  thrpt   15  121.008  0.488  ops/ms

This pull request has now been integrated.

Changeset: 8ff288f9
Author:    Olga Mikhaltsova <omikhaltcova at openjdk.org>
URL:       https://git.openjdk.org/jdk22u/commit/8ff288f986eb661607b265d012c7ece805c3cdea
Stats:     82 lines in 3 files changed: 82 ins; 0 del; 0 mod

8318158: RISC-V: implement roundD/roundF intrinsics

Backport-of: 19147f326c6b0e78fe72f9a7e7100047f16a0921

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

PR: https://git.openjdk.org/jdk22u/pull/21


More information about the jdk-updates-dev mailing list