On 10/13/2011 06:44 AM, Jakub Jelinek wrote:
> * config/i386/sse.md (reduc_umin_v8hi): New pattern.
> * config/i386/i386.c (ix86_build_const_vector): Handle
> also V32QI, V16QI, V16HI and V8HI modes.
> (emit_reduc_half): New function.
> (ix86_expand_reduc): Use phminpo
Hi!
This patch is partly taken from my part of the PR50374 patch,
though that patch will need some further work in the vectorizer
etc.
SSE4.1 has the phminposuw insn which can be used for reduction
instead of 3 shuffles and 3 min insns:
...
- vpsrldq $8, %xmm0, %xmm1
- vpminuw %xmm1,