[PATCH i386 AVX512] [9/n] Extend iterators and attributes.

Uros Bizjak ubizjak@gmail.com
Thu Aug 14 11:35:00 GMT 2014


On Thu, Aug 14, 2014 at 1:20 PM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:

> This patch extends iterators and iterator modes
> to support new patterns (future patches).
>
> Bootstrapped.
>
> Is it ok trunk?
>
>         * config/i386/sse.md (define_mode_attr avx512): New.
>         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
>         V4DI modes.
>         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
>         (define_mode_attr ssse3_avx2): Ditto.
>         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
>         (define_mode_attr avx2_avx512bw): New.
>         (define_mode_attr ssedoublemodelower): New.
>         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
>         V32HI, V64QI modes.
>         (define_mode_attr ssebytemode): Allow V8DI modes.
>         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
>         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
>         (define_mode_attr ssePSmode2): New.
>         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
>         V16HI, V32HI modes.
>         (define_mode_attr dbpsadbwmode): New.
>         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
>         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
>         (vi8_sse4_1_avx2_avx512): New.
>         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
>         mode attribute.

OK (although I'd put single-use attributes - blendbits and probably
new dbpsadbwmode - nearby their users).

Uros.



More information about the Gcc-patches mailing list