[jdk18] RFR: 8279076: C2: Bad AD file when matching SqrtF with UseSSE=0

Aleksey Shipilev shade at openjdk.java.net
Wed Dec 22 14:02:15 UTC 2021


On Tue, 21 Dec 2021 19:32:18 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> See the reproducer and the analysis in the bug. 
> 
> The fix is simple: `Matcher::match_rule_supported` should handle the predicates for current `SqrtF` and `SqrtD` match rules.
> 
> Additional testing:
>  - [x] Linux x86_32 `-XX:UseAVX=0 -XX:UseSSE=0`, new test now passes
>  - [x] Linux x86_32 `-XX:UseAVX=0 -XX:UseSSE=1`, new test passes
>  - [x] Linux x86_32 `-XX:UseAVX=0 -XX:UseSSE=2`, new test passes
>  - [x] Linux x86_32 `-XX:UseAVX=0 -XX:UseSSE=0`, `jdk/incubator/vector/` now passes
>  - [x] Linux x86_32 `-XX:UseAVX=0 -XX:UseSSE=1`, `jdk/incubator/vector/` passes
>  - [x] Linux x86_32 `-XX:UseAVX=0 -XX:UseSSE=2`, `jdk/incubator/vector/` passes (some unrelated failures)
>  - [x] Linux x86_64, new test passes

Thanks for reviews! I see all GHA failures are known, not related to this patch, and reported as bugs already. I will integrate this after 24 hrs expire.

-------------

PR: https://git.openjdk.java.net/jdk18/pull/60


More information about the hotspot-compiler-dev mailing list