This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [38/77] Move SCALAR_INT_MODE_P out of strict_volatile_bitfield_p
- 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:09:45 -0600
- Subject: Re: [38/77] Move SCALAR_INT_MODE_P out of strict_volatile_bitfield_p
- 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 369BA7ACAB
- References: <8760ewohsv.fsf@linaro.org> <87lgnshg7c.fsf@linaro.org>
On 07/13/2017 02:52 AM, Richard Sandiford wrote:
> strict_volatile_bitfield_p returns false for any mode that isn't
> a scalar integer. This patch moves the check to the caller and
> makes strict_volatile_bitfield_p take the mode as a scalar_int_mode.
> The handling of a true return can then also use the mode as a
> 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/
> * expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
> to scalar_int_mode. Remove check for SCALAR_INT_MODE_P.
> (store_bit_field): Check is_a <scalar_int_mode> before calling
> strict_volatile_bitfield_p.
> (extract_bit_field): Likewise.
OK.
jeff