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] | |
Hi,
>> check once more our coding standard.
Thank you for the valuable comments. We have taken care of the
comments in the modified patch.
Please find attached the patch "sh2a1.patch". This patch implements new
instructions RTS/N, JSR/N, JSR/N @@ and RESBANK for SH2A target.
No new regressions.
ChangeLog
2007-10-18 Anil Paranjape <anil.paranjape@kpitcummins.com>
Jayant Sonar <Jayant.sonar@kpitcummins.com>
* config/sh/sh.c (SH_ATTRIBUTES): Define.
(SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
(print_operand): "@" prints resbank if the instruction RESBANK
has to be generated.
(sh_encode_section_info): New.
(push_regs): Add conditions for resbank.
(sh_expand_epilogue): Add conditions for resbank.
(sh_insert_attributes): Add resbank attribute.
(sh_attribute_table): Add resbank and function_vector
attributes.
(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/sh.md: (calli): Add JSR/N instruction if the
instruction does not have delay slot.
(calli_tbr_rel): New.
(calli_pcrel): Add JSR/N instruction if the instruction does
not have delay slot.
(return_i): Add RTS/N instruction if the instruction does not
have delay slot.
(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 : Update as needed.
* doc/extend.texi (TBR relative addressing): Added description
for SH2A target.
(resbank): Added description for SH2A target.
* testsuite/gcc.target/sh/sh2a-resbank.c : New.
* testsuite/gcc.target/sh/sh2a-tbr-jump.c: New.
Regards,
Naveen.H.S.
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 http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on October 1, 2007.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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] |