https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101639

--- Comment #23 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 15 Oct 2025, liuhongt at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101639
> 
> --- Comment #19 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
> Created attachment 62562
>   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62562&action=edit
> avx512/avx2 reduc_mask_{and,ixor,xor}_m
> 
> I didn't support V*HImode for reduc_mask_xor_m since x86 only has vmovmskps/pd
> and vpmovmskb. for others, unit test looks ok and I'm going to have more test
> for that.

For V*HImode we could pack to V*QImode and use vpmovmskb?  Not sure what
tools plain SSE2 offers for HImode vectors here though.  packuswb
would require an additional AND to mask out the sign-bit of the word
-1 values, but that might be good enough?

Reply via email to