Re: [PATCH] Fix PR70509 (wrong code with extract from a v64qi)

2016-04-05 Thread Jakub Jelinek
On Mon, Apr 04, 2016 at 11:16:48PM +0200, Zdenek Sojka wrote: > gcc/Changelog: > > 2016-04-04  Zdenek Sojka  > >     PR tree-optimization/70509 >     * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int () instead > of the vector base type for index. > > > gcc/testsuite/Changelog: >

[PATCH] Fix PR70509 (wrong code with extract from a v64qi)

2016-04-04 Thread Zdenek Sojka
Hello, as discussed in the PR, when forwprop propagates VEC_PERM_EXPR through BIT_FIELD_REF in simplify_bitfield_ref(), the new BIT_FIELD_REF has the index of the same type as the vector base type. This patch changes the index to bitsize_int(). Bootstrapped on x86_64-pc-linux-gnu, regression t