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]

[AVR] changes zero_extendXXX2 instructions to 'define_insn_and_split'.


Hi.

  This patch changes zero_extendXXXX2 instructions pattern from 'define_insn'
to 'define_insn_and_split' and add zero_extendXXXX2 insn for DI mode. This
changes  allows  optimize 'CLR reg' instruction if the compiler knows that the
register already contains 0.  

  Code size reduction, in real word applications, approximately 1 instruction
for 2000. 

  No new regressions with this patch. Committed.

2007-07-05 Anatoly Sokolov <aesok@post.ru>

	* config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
	zero_extendhisi2): Change to define_insn_and_split. 
	(zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.

Anatoly.

Attachment: zero_extend.txt
Description: Text document


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