This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH: PR target/40697] Use shifts to extract most or least significant bits


On Tue, Jul 14, 2009 at 9:36 AM, Carrot Wei<carrot@google.com> wrote:
> ? ? ? ?PR target/40416
> ? ? ? ?* config/arm/arm.c (all_ones_in_most_significant_bits): New function.
> ? ? ? ?(all_ones_in_least_significant_bits): New function.
> ? ? ? ?* config/arm/arm-protos.h (all_ones_in_most_significant_bits):
> ? ? ? ? ? ? ? ?Declare it.
> ? ? ? ? ? ? ? ?(all_ones_in_least_significant_bits): Declare it.
> ? ? ? ?* config/arm/arm.md: Add peephole2 rules to do the optimization.

I still don't see why this can't be done in the middle-end instead of
as a peephole...

Ciao!
Steven


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