RFR: 8355913: RISC-V: improve hotspot/jtreg/compiler/vectorization/runner/BasicFloatOpTest.java
Hamlin Li
mli at openjdk.org
Wed Apr 30 08:18:45 UTC 2025
On Wed, 30 Apr 2025 05:43:17 GMT, Fei Yang <fyang at openjdk.org> wrote:
>> Hi,
>> Can you help to review this simple patch?
>> Previously, BasicFloatOpTest.java is accidently not really enabled on riscv.
>> And FmaVF/FmaVD depends on both UseFMA and UseRVV, the code should make it clear in this sense.
>> And IR verification of FmaVF in BasicFloatOpTest.java should only be enabled when UseFMA && rvv.
>>
>> Thanks!
>
> test/hotspot/jtreg/compiler/vectorization/runner/BasicFloatOpTest.java line 35:
>
>> 33: * @run main/othervm -Xbootclasspath/a:.
>> 34: * -XX:+UnlockDiagnosticVMOptions
>> 35: * -XX:+WhiteBoxAPI
>
> This test also covers x86 avx and aarch64 asimd targets. I think UseFMA is also needed for IR checks for these platforms, right? Seems to me more reasonable to add a `-XX:+UseFMA` VM option when running this test. Then we won't need to add all these `applyIf = {"UseFMA", "true"}`.
I suggest we don't touch other platforms unless I have to do so (e.g. in https://github.com/openjdk/jdk/pull/24947, I have to touch an existing test in another platform), because we need to test it, and it could introduce potential failures, so I won't risk for it.
For `-XX:+UseFMA`, I suggest we don't add it to the whole test, as there are other IR verifications, which does not depend on it.
How do you think about it?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24950#discussion_r2068136856
More information about the hotspot-compiler-dev
mailing list