This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Boolean optimization


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]