RFR: 8337791: VectorAPI jtreg ABSMaskedByteMaxVectorTests crashes with UseAVX=0 -XX:MaxVectorSize=8 [v4]
Emanuel Peter
epeter at openjdk.org
Mon Dec 1 12:12:47 UTC 2025
On Mon, 1 Dec 2025 11:45:16 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> test/hotspot/jtreg/compiler/vectorapi/TestABSMaskedMaxByteVector.java line 48:
>>
>>> 46: @Test
>>> 47: @IR(failOn = {IRNode.ABS_VB}, applyIfAnd={"MaxVectorSize", " <= 8 ", "UseAVX", "0"})
>>> 48: @IR(counts = {IRNode.ABS_VB, "1"}, applyIf={"MaxVectorSize", " > 8 "})
>>
>> Are you sure this is going to pass on all platforms? Does this test run ok on `aarch64` where there is no `UseAVX` flag?
>
> Thanks, fixed
>
> I intent to pass UseAVX=0 as a run flag to reproduce exact bug scenario, our framework is not sensitive to IgnoreUnrecoginzedVMOptions.
You could also just limit the rules to `sse4.1` platforms. Then you can run the tests everywhere, but limit IR rules to what is easy to test for you ;)
Platform features get tested before flags, so that helps with platform specific flags ;)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28533#discussion_r2576821786
More information about the hotspot-compiler-dev
mailing list