On 05/23/2018 12:45 AM, Jakub Jelinek wrote:
> Hi!
>
> As mentioned in the PR, vptestm* instructions with the same input operand used
> twice perform the same comparison as vpcmpeq* against zero vector, with the
> advantage that a register holding CONST0_RTX (mode) is not needed.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2018-05-23 Jakub Jelinek <ja...@redhat.com>
>
> PR target/85832
> * config/i386/sse.md (<avx512>_eq<mode>3<mask_scalar_merge_name>_1):
> Add (=Yk,v,C) variant using vptestm insn. Use TARGET_AVX512BW
> in test instead of TARGET_AVX512F for VI12_AVX512VL iterator.
>
> * gcc.target/i386/avx512f-pr85832.c: New test.
> * gcc.target/i386/avx512vl-pr85832.c: New test.
> * gcc.target/i386/avx512bw-pr85832.c: New test.
> * gcc.target/i386/avx512vlbw-pr85832.c: New test.
OK.
jeff