[jdk22u] RFR: 8318158: RISC-V: implement roundD/roundF intrinsics
Olga Mikhaltsova
omikhaltcova at openjdk.org
Mon Jan 15 13:17:31 UTC 2024
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
-------------
Commit messages:
- Backport 19147f326c6b0e78fe72f9a7e7100047f16a0921
Changes: https://git.openjdk.org/jdk22u/pull/21/files
Webrev: https://webrevs.openjdk.org/?repo=jdk22u&pr=21&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8318158
Stats: 82 lines in 3 files changed: 82 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk22u/pull/21.diff
Fetch: git fetch https://git.openjdk.org/jdk22u.git pull/21/head:pull/21
PR: https://git.openjdk.org/jdk22u/pull/21
More information about the jdk-updates-dev
mailing list