This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [37/77] Use scalar_int_mode when emitting cstores
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, richard dot sandiford at linaro dot org
- Date: Tue, 15 Aug 2017 16:08:52 -0600
- Subject: Re: [37/77] Use scalar_int_mode when emitting cstores
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A75437ACA1
- References: <8760ewohsv.fsf@linaro.org> <87pod4hg7w.fsf@linaro.org>
On 07/13/2017 02:51 AM, Richard Sandiford wrote:
> cstore patterns always have a scalar integer result, which has the
> value 0 for "false" and STORE_FLAG_VALUE for "true". This patch
> makes that explicit using scalar_int_mode.
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * target.def (cstore_mode): Return a scalar_int_mode.
> * doc/tm.texi: Regenerate.
> * config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
> * targhooks.h (default_cstore_mode): Likewise.
> * targhooks.c (default_cstore_mode): Likewise, using a forced
> conversion.
> * expmed.c (emit_cstore): Expect the target of the cstore to be
> a scalar_int_mode.
OK.
jeff