On Mon, 30 Mar 2026 08:17:04 GMT, Emanuel Peter <[email protected]> wrote:

>> Ah no wait. It is sensible and correct.
>> But maybe I can reformulate it.
>> `resSizeLog2 = 0` means the logical result is exactly a single byte.
>> `resSizeLog2 < 0` would mean we have less than a byte in total for the 
>> logial result. So a fractional byte. That is obviously non-sense, hence the 
>> assert below.
>
> Going with this:
> 
> ~ 504         // resSizeLog2 = 0 => logical result only has a single byte
> ~ 505         //                    e.g. cast L64 (1-element long) to B8 
> (1-element byte)
> + 506         // resSizeLog2 < 0 => logical result has less than a byte -> 
> impossible!                                                                   
>                                                                               
>                                                                               
>                                                                               
>                                          
> + 507         //                    currently, all vectors start with at 
> least 8 bytes,
> + 508         //                    and we can contract by at most a factor 
> of 8.

Yes, that is better. Previously I was uncertain whether both cases were 
intending to talk about +ve cases, and now it is much clear and aligns better 
with the assert.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30113#discussion_r3011053037

Reply via email to