From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1762 invoked by alias); 12 Nov 2015 22:40:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 1745 invoked by uid 89); 12 Nov 2015 22:40:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 12 Nov 2015 22:40:07 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id B1FF5226; Thu, 12 Nov 2015 22:40:06 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-52.phx2.redhat.com [10.3.113.52]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tACMe6C9016899; Thu, 12 Nov 2015 17:40:06 -0500 Subject: Re: [PATCH] Fix ICE for masked store of boolean value To: Ilya Enkovich , gcc-patches@gcc.gnu.org References: <20151112154842.GF51435@msticlxl57.ims.intel.com> From: Jeff Law Message-ID: <56451545.4030003@redhat.com> Date: Thu, 12 Nov 2015 22:40:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151112154842.GF51435@msticlxl57.ims.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01613.txt.bz2 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 > > * tree-vect-stmts.c (vectorizable_mask_load_store): Check > types of stored value and storage are compatible. > > gcc/testsuite/ > > 2015-11-12 Ilya Enkovich > > * g++.dg/vect/simd-mask-store-bool.cc: New test. OK. jeff