On 12/05/2016 09:52 AM, Jakub Jelinek wrote:
Hi!

For VECTOR_BOOLEAN_TYPE_P vectype the element type can have different
precision from TYPE_SIZE, which is what we use for the bitsize.
The following patch uses then some other integral type of that precision
before it is actually converted to lhs_type (boolean_type_node).

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

2016-12-05  Jakub Jelinek  <ja...@redhat.com>

        PR tree-optimization/78675
        * tree-vect-loop.c (vectorizable_live_operation): For
        VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
        instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.

        * gcc.target/i386/pr78675-1.c: New test.
        * gcc.target/i386/pr78675-2.c: New test.
OK.
jeff

Reply via email to