Bernd Schmidt - Blackfin patch: rotate by 16 patterns (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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]

Rotate by 16 can be implemented with the PACK instruction on the Blackfin. Committed as 122377.

Bernd

This footer brought to you by insane German lawmakers. Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen Registergericht Muenchen HRB 40368 Geschaeftsfuehrer Thomas Wessel, Vincent Roche, Joseph E. McDonough

Index: ChangeLog

--- ChangeLog (revision 122376) +++ ChangeLog (working copy) @@ -46,6 +46,8 @@ * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg instead of R2. + * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns. + 2007-02-27 Andreas Schwab schwab@suse.de * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi. Index: config/bfin/bfin.md

--- config/bfin/bfin.md (revision 122374) +++ config/bfin/bfin.md (working copy) @@ -1477,6 +1477,37 @@ (define_insn "ashrsi3" %0 = %1 >>> %2%!" [(set_attr "type" "shft,dsp32")])

+(define_insn "rotl16"

+}) + +(define_expand "rotrsi3"


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