RFR: 8319705: RISC-V: signumF/D intrinsics fails compiler/intrinsics/math/TestSignumIntrinsic.java [v3]
Ilya Gavrilin
igavrilin at openjdk.org
Thu Nov 9 13:13:01 UTC 2023
On Thu, 9 Nov 2023 09:44:18 GMT, Hamlin Li <mli at openjdk.org> wrote:
>> Hi,
>> Can you review the patch to fix the bug introduced by [JDK-8317971](https://bugs.openjdk.org/browse/JDK-8317971) which implemented signumF/D intrinsics.
>> But seems the intrinsics failed since day 1 (I checkouted the commit to verify it.)
>> Thanks
>>
>> ## Test
>> hotspot tests:
>>
>> test/hotspot/jtreg/compiler/intrinsics/math/TestSignumIntrinsic.java
>> test/hotspot/jtreg/compiler/c2/PolynomialRoot.java
>>
>>
>> other jdk tests contains Math.signum(...):
>>
>> test/jdk/java/math/BigInteger/BigIntegerTest.java
>> test/jdk/java/math/BigInteger/largeMemory/DivisionOverflow.java
>> test/jdk/java/math/BigInteger/SerializationTests.java
>> test/jdk/java/math/BigInteger/ModInvTime.java
>> test/jdk/java/math/BigDecimal/SquareRootTests.java
>> test/jdk/java/math/BigDecimal/DivideTests.java
>> test/jdk/java/lang/Math/IeeeRecommendedTests.java
>> test/jdk/java/lang/Math/IeeeRemainderTests.java
>
> Hamlin Li has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
>
> - use t0 directly instead of get another tmp from reg allocator
> - Merge branch 'master' into fix-signum
> - remove rFlagsReg
> - Kill cr
> - Initial commit
Hi, could you, please, add this small update to jtreg: hotspot/jtreg/compiler/intrinsics/math/TestSignumIntrinsic.java:
diff --git a/test/hotspot/jtreg/compiler/intrinsics/math/TestSignumIntrinsic.java b/test/hotspot/jtreg/compiler/intrinsics/math/TestSignumIntrinsic.java
index 65d261bb8e2..a5546ba9e5c 100644
--- a/test/hotspot/jtreg/compiler/intrinsics/math/TestSignumIntrinsic.java
+++ b/test/hotspot/jtreg/compiler/intrinsics/math/TestSignumIntrinsic.java
@@ -35,6 +35,10 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:-UseSignumIntrinsic -XX:+UseCopySignIntrinsic
* compiler.intrinsics.math.TestSignumIntrinsic
+ * @run main/othervm
+ * -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions
+ * -Xcomp -XX:+UseSignumIntrinsic
+ * compiler.intrinsics.math.TestSignumIntrinsic
*/
package compiler.intrinsics.math;
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16557#issuecomment-1803802867
More information about the hotspot-compiler-dev
mailing list