This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Missing SCALAR_INT_MODE_P checks in simplify_subreg
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Sandiford <richard dot sandiford at linaro dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Sep 2011 10:25:19 +0200
- Subject: Re: Missing SCALAR_INT_MODE_P checks in simplify_subreg
- References: <g4fwk0k23q.fsf@richards-thinkpad.stglab.manchester.uk.ibm.com>
> Tested on arm-linux-gnueabi and x86_64-linux-gnu. Although I suppose
> I could self-approve this, I'd appreciate it if someone would double-check.
>
> Richard
>
>
> gcc/
> * simplify-rtx.c (simplify_subreg): Check that the inner mode is
> a scalar integer before applying integer-only optimisations to
> inner arithmetic.
Looks good to me.
--
Eric Botcazou