This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PR rtl-optimization/44695: [4.6 Regression] ice in simplify_subreg, at simplify-rtx.c:5117
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Bernd Schmidt <bernds at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, Uros Bizjak <ubizjak at gmail dot com>
- Date: Fri, 2 Jul 2010 08:55:16 +0200
- Subject: Re: RFC: PR rtl-optimization/44695: [4.6 Regression] ice in simplify_subreg, at simplify-rtx.c:5117
- References: <20100629191246.GA2770@intel.com> <i0fb81$ktf$1@dough.gmane.org> <AANLkTilRqA8xdQlrTmf-GfZrYgkpYvDZTmU7TLhN3Bxk@mail.gmail.com> <AANLkTikUHtwPtvdfmYH5Df-hh_zVqIGMhrZl_oMyyQBU@mail.gmail.com> <AANLkTikxeh-VKv6eZewxyu33Qi_keZFj7a5CrsPcuQ7a@mail.gmail.com>
On Fri, Jul 2, 2010 at 02:35, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Wed, Jun 30, 2010 at 11:59 PM, Paolo Bonzini <bonzini@gnu.org> wrote:
>> This is wrong. GCC may use this for a 16 to 8 bit division and cause a
>> divide overflow.
>>
>
> Bernd suggested to use truncate:QI to avoid this.
Right, this is even suggested by the manual! Thanks. Uros or Bernd,
can you approve this?
Paolo