Merge SSE and AVX ptest patterns.
authorKirill Yukhin <kirill.yukhin@intel.com>
Wed, 5 Aug 2015 07:58:54 +0000 (07:58 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Wed, 5 Aug 2015 07:58:54 +0000 (07:58 +0000)
commit0ea424263f9ebacd98be64e19a31972196a40b65
tree2b7b9572e37439040c91b437ef501d5ed5758fa8
parent97af59b2a431dd25e40d19eba669a62814bf7b7a
Merge SSE and AVX ptest patterns.

gcc/
* config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
CODE_FOR_avx_ptestv4di.
* config/i386/sse.md (define_mode_iterator V_AVX): New.
(define_mode_attr sse4_1): Extend to other 128/256-bit modes.
(define_insn "avx_ptest256"): Merge this ...
(define_insn "sse4_1_ptest"): And this ...
(define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.

From-SVN: r226611
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/sse.md