[PATCH, AVR]PING^2 Fix PR target/41885 AVR Rotate patterns
Andrew Hutchinson
andrewhutchinson@cox.net
Sat Jan 2 13:44:00 GMT 2010
Hopefully final patch for approval for 4.5 Head
The attached patch changes AVR target rotate split patterns to use
simple moves in all cases where the rotation is by 8,16,24 bits etc
Theses new patterns use mode iterators and now also split DI mode rotates.
2010-1-2 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
PR target/41885
* avr.md (rotlqi3): Add CONST_INT_P check.
(rotlhi3): Delete.
(rotlhi3_8): Delete.
(rotlsi3): Delete.
(rotlsi3_8): Delete.
(rotlsi3_16): Delete.
(rotlsi3_24): Delete.
(rotl<mode>3): New.
(*rotw<mode>3): New.
(*rotb<mode>3): New.
*avr.c (avr_rotate_bytes): New function.
*avr-proto.h (avr_rotate_bytes): New function.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rotate612.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100102/6b5bc606/attachment.ksh>
More information about the Gcc-patches
mailing list