Re: [PATCH] Optimize AVX512 vpcmpeq* against 0 into vptestm* (PR target/85832)

2018-05-24 Thread Jeff Law
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

[PATCH] Optimize AVX512 vpcmpeq* against 0 into vptestm* (PR target/85832)

2018-05-22 Thread Jakub Jelinek
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? 2