This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix *two* AVR backend bugs (PR19293 + PR19329)
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Paul Schlie <schlie at comcast dot net>
- Cc: Giovanni Bajo <rasky at develer dot com>, denisc at overta dot ru, Stefano Fedrigo <aleph at develer dot com>,Marek Michalkiewicz <marekm at amelek dot gda dot pl>, gcc-patches at gcc dot gnu dot org, Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 24 Jan 2005 01:55:38 +0100
- Subject: Re: [PATCH] Fix *two* AVR backend bugs (PR19293 + PR19329)
- References: <BE194B36.8BDFfirstname.lastname@example.org>
Paul Schlie wrote:
From: Paul Schlie <email@example.com>
... (minimally, likely doing nothing for out-of-range shifts, as
generating code to implement an undefined behavior may not be necessarily
Although acknowledge that a saturating behavior for non-negative shifts may
be desirable if the middle-end presumes ((x >> y) >> y) :: (x >> (2 * y)),
or it's analogy for left-shifts; but it's not clear that it officially does?
For arithmetical right shifts > N, we may also want to
fill the result with the sign bit instead of clearing.
// Bernardo Innocenti - Develer S.r.l., R&D dept.