This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make more use of GET_MODE_UNIT_PRECISION
- 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: Sun, 3 Sep 2017 23:58:34 -0600
- Subject: Re: Make more use of GET_MODE_UNIT_PRECISION
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.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 AB1E94A6F4
- References: <87fucitutm.fsf@linaro.org>
On 08/23/2017 04:57 AM, Richard Sandiford wrote:
> This patch is like the earlier GET_MODE_UNIT_SIZE one,
> but for precisions rather than sizes. There is one behavioural
> change in expand_debug_expr: we shouldn't use lowpart subregs
> for non-scalar truncations, since that would just reinterpret
> some of the scalars and drop the rest. (This probably doesn't
> trigger in practice.) Using TRUNCATE is fine for scalars,
> since simplify_gen_unary knows when a subreg can be used.
>
> Tested on aarch64-linux-gnu and x86_64-linux-gnu, and by making sure
> that there were no differences in testsuite assembly output for one
> target per CPU. OK to install?
>
> Richard
>
>
> 2017-08-23 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_PRECISION.
> (expand_debug_source_expr): Likewise.
> * combine.c (combine_simplify_rtx): Likewise.
> * cse.c (fold_rtx): Likewise.
> * optabs.c (expand_float): Likewise.
> * simplify-rtx.c (simplify_unary_operation_1): Likewise.
> (simplify_binary_operation_1): Likewise.
OK.
jeff