openj9
openj9 copied to clipboard
Support Java Behaviour w.r.t Math.max and Math.min for Floating Points
-
Enables inlining of Math.max/Math.min functions for floats and doubles
-
Implements Java standard found while testing
- +0 compares as strictly greater than -0
- if the first arg is a NaN, returns the corresponding quiet NaN, same for if only the second arg is a NaN
-
Depends on OMR PR:https://github.com/eclipse/omr/pull/7464
- Differs from this in that it returns the first NaN argument unchanged if present (the omr pr implements the IEEE-754 standard which returns the corresponding quiet NaN)
https://hyc-runtimes-jenkins.swg-devops.com/job/jvm.29.personal/34248/