On Tue, 16 Jan 2024 06:13:43 GMT, Jatin Bhateja <jbhat...@openjdk.org> wrote:

>> src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp line 5309:
>> 
>>> 5307:     assert(bt == T_LONG || bt == T_DOUBLE, "");
>>> 5308:     vmovmskpd(rtmp, mask, vec_enc);
>>> 5309:     shlq(rtmp, 5); // for 64 bit rows (4 longs)
>> 
>> Suggestion:
>> 
>>     shlq(rtmp, 5); // for 32 bit rows (4 longs)
>
> Each long/double permute lane holds 64 bit value.

@jatin-bhateja so why do you shift by 5? I thought 4 longs are 32 bit?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17261#discussion_r1453003935

Reply via email to