This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [67/77] Use scalar_mode in fixed-value.*
- 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: Thu, 24 Aug 2017 22:57:46 -0600
- Subject: Re: [67/77] Use scalar_mode in fixed-value.*
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.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 09C3D81DEF
- References: <8760ewohsv.fsf@linaro.org> <874lugd80w.fsf@linaro.org>
On 07/13/2017 03:02 AM, Richard Sandiford wrote:
> This patch makes the fixed-value.* routines use scalar_mode.
> It would be possible to define special classes for these modes, as for
> scalar_int_mode and scalar_float_mode, but at the moment nothing would
> benefit from them. In particular, there's no use case that would help
> select between one class for all fixed-point modes versus one class for
> fractional modes and one class for accumulator modes.
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * fixed-value.h (fixed_from_double_int): Take a scalar_mode
> rather than a machine_mode.
> (fixed_from_string): Likewise.
> (fixed_convert): Likewise.
> (fixed_convert_from_int): Likewise.
> (fixed_convert_from_real): Likewise.
> (real_convert_from_fixed): Likewise.
> * fixed-value.c (fixed_from_double_int): Likewise.
> (fixed_from_string): Likewise.
> (fixed_convert): Likewise.
> (fixed_convert_from_int): Likewise.
> (fixed_convert_from_real): Likewise.
> (real_convert_from_fixed): Likewise.
> * config/avr/avr.c (avr_out_round): Use as_a <scalar_mode>.
OK.
jeff