Yes, this was spotted and fixed already. Annoyingly the test I added didn't 
detect this so GHA was green, but it failed some tier2 tests on aarch64. I 
added extra safeguards by predicating matching the encode_iso_array 
instructions on the node being !ascii, which will cause C2 to report an error 
rather than silently using the iso variant for ascii-only nodes.

Hämta Outlook för Android<https://aka.ms/AAb9ysg>
________________________________
From: core-libs-dev <[email protected]> on behalf of Volker 
Simonis <[email protected]>
Sent: Tuesday, September 28, 2021 1:53:22 PM
To: [email protected] <[email protected]>; 
[email protected] <[email protected]>; 
[email protected] <[email protected]>
Subject: Re: RFR: 8274242: Implement fast-path for ASCII-compatible 
CharsetEncoders on x86 [v5]

On Tue, 28 Sep 2021 10:01:43 GMT, Claes Redestad <[email protected]> wrote:

>> Not too much work. I recently introduced platform-specific `matcher_*.hpp` 
>> files, so since then adding a boolean constant is easy (no need to muck with 
>> the .ad files).
>
> Does the changes in 9800a99 resolve your concerns?

In principle yes, but shouldn't the condition read:

if (!Matcher::match_rule_supported(Op_EncodeISOArray) || 
!Matcher::supports_encode_ascii_array) return false;

I.e. the intrinisc is supported if both conditions are true and not supported 
if either one of them is false?

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

PR: https://git.openjdk.java.net/jdk/pull/5621

Reply via email to