JDK-8230591 : AArch64: Missing intrinsics for Math.ceil, floor, rint
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11.0.3,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2019-09-04
  • Updated: 2023-07-24
  • Resolved: 2020-01-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15
11.0.8Fixed 13.0.5Fixed 15 b06Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Original issue JDK-8226721 adds intrinsics for x86.

It looks like someone should add similar intrinsics for aarch64. There may need to be a few special case checks, but at first glance this looks like simple intrinsics around an aarch64 instruction (perhaps using FRINTM, FRINTN, FRINTP).
Comments
Review Request [13u] The reasons are performance improvements and code alignment. Review https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-June/003304.html
17-06-2020

11.0.8 backport reverted.
02-06-2020

Fix Request (11u) on behalf of Dan Lemmond <dlemmond@amazon.com>. Patch applies cleanly, pre-existing tests which pass, low risk.
15-05-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/7f2642fd19a1 User: njian Date: 2020-01-15 05:25:45 +0000
15-01-2020

patch for review https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2020-January/036696.html
09-01-2020

These intrinsics have been already enabled in Graal
08-01-2020

x86 and PowerPC both have implemented intrinsics for these methods.
08-01-2020

The x86 intrinsics were added in JDK 14.
05-11-2019