This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Constant fold 0 >> x.
- From: Nathan Sidwell <nathan at acm dot org>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 08 Oct 2002 10:12:59 +0100
- Subject: Re: [PATCH] Constant fold 0 >> x.
- References: <Pine.LNX.4.33.0210072033570.31760-100000@www.eyesopen.com>
- Reply-to: nathan at compsci dot bristol dot ac dot uk
Roger Sayle wrote:
> Whilst there, I also thought I'd add the related constant folding
> optimizations for rotations of ~0, i.e. all ones.
you can also do '~0 >> x' (arithmetic right shift)
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
The voices in my head told me to say this
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk