On Mon, Dec 30, 2013 at 2:07 PM, Kirill Yukhin <kirill.yuk...@gmail.com> wrote: > Adding gcc-patches. > > On Mon, Dec 30, 2013 at 5:06 PM, Kirill Yukhin <kirill.yuk...@gmail.com> > wrote: >> Hello, >> It seems that we forgot about kmovw instruction in AVX512 patch series. >> >> Patch in the bottom, is it ok for trunk? >> >> gcc/ >> >> * config/i386/avx512fintrin.h (_mm512_kmov): New. >> * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto. >> (__builtin_ia32_kmov16): Ditto. >> * config/i386/i386.md (UNSPEC_KMOV): New. >> (kmovw): Ditto. >> >> testsuite/ >> * gcc.target/i386/avx512f-kmovw-1.c: New.
You don't need an unspec (or corresponding __builtin), generic movhi pattern should be able to generate correct insn. Uros.