This is the mail archive of the 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,SH] Add SH2A new instructions 1/6

Hi Kaz,

>> The last line should be removed and there is no diff against 
>> extend.texi in your sh2a1.patch.

The hunk was missed out in the posted patch. It has been added in 
the present patch

>> It seems that the line of that test is unneeded in the first place.  
The line is removed from the testcase.

Please find the revised patch attached "sh2a1.patch" as per the

2008-03-24  Anil Paranjape  <>
		Jayant Sonar  <>
		Naveen.H.S  <>
	* config/sh/sh.c (SH_ATTRIBUTES): Define.
	(print_operand): Handle resbank in %@ operand code.
	(sh_encode_section_info): New.
	(push_regs): Add conditions for resbank.
	(sh_expand_epilogue): Likewise.
	(sh_insert_attributes): Likewise.
	(sh_attribute_table): Likewise.
	(sh_handle_resbank_handler_attribute): New.
	(sh2a_handle_function_vector_handler_attribute): New.
	(sh2a_is_function_vector_call): New.
	(sh2a_get_function_vector_number): New.
	(sh2a_function_vector_p): New.
	(sh_cfun_resbank_handler_p): New.
	* config/sh/ (calli): Emit jsr/n if possible.
	(calli_tbr_rel): New.
	(calli_pcrel): Emit jsr/n if possible.
	(return_i): Emit rts/n if possible.
	(call_valuei_tbr_rel): New.
	(call_valuei_pcrel): Add condition for SH2A target.
	(call_value): Add condition for SH2A target.
	* config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
	(sh2a_get_function_vector_number): Likewise.
	(sh2a_is_function_vector_call): Likewise.
	* doc/extend.texi: Document TBR relative addressing of SH2A.
	(resbank): Add description for SH2A.
	(resbank): Added description for SH2A target.
	* New test.
	* New test.
	* New test.
	* New test.

KPIT Cummins Infosystems Ltd,
Pune (INDIA) 
Free download of GNU based tool-chains for Renesas' SH, H8, R8C, M16C	
and M32C Series. The following site also offers free technical support	
to its users. Visit for details. 	
Latest versions of KPIT GNU tools were released on February 4, 2008.	

Attachment: sh2a1.patch
Description: sh2a1.patch

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