This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Boolean optimization
- To: robert123 at operamail dot com, bernds at cambridge dot redhat dot com
- Subject: Re: Boolean optimization
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Thu, 8 Mar 2001 22:55:37 +0000 (GMT)
- Cc: gcc at gcc dot gnu dot org
> I have noticed that then same logic produces very different assembler code for the SH, am I missing something obvious ?.
bool is 8 bots, int is 32.
> 8: 40 21 shar r0 //**** Lots of shars when an AND #16 would do
The SH port has started to pretend that there is a multi-bit-position
arithmetic shift right, even though there isn't.