[PATCH] Fix ICE for masked store of boolean value

Jeff Law law@redhat.com
Thu Nov 12 22:40:00 GMT 2015


On 11/12/2015 08:48 AM, Ilya Enkovich wrote:
> Hi,
>
> We may get ICE in vectorizer in case stored value get vectype not compatible with a storage.  This may happen for bool values.  This patch fixes ICE.  Bootstrapped and tested on x86_64-unknown-linux-gnu.  OK for trunk?
>
> Thanks,
> Ilya
> --
> gcc/
>
> 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
>
> 	* tree-vect-stmts.c (vectorizable_mask_load_store): Check
> 	types of stored value and storage are compatible.
>
> gcc/testsuite/
>
> 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
>
> 	* g++.dg/vect/simd-mask-store-bool.cc: New test.
OK.
jeff



More information about the Gcc-patches mailing list