This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how to add new instruction
- From: Ian Lance Taylor <ian at airs dot com>
- To: apollo <apollow at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 13 Jan 2005 22:21:07 -0500
- Subject: Re: how to add new instruction
- References: <64b5897905011313327bfbe605@mail.gmail.com>
apollo <apollow@gmail.com> writes:
> i want to add a new instruction for x86 platform. i added codes in
> tree.def and rtl.def, but i can't find the place for the instruction
> set. could anyone tell me which file/files contain the x86 instruction
> set? thanks a lot.
config/i386/i386.md
But if your instruction uses new RTL codes, then you will probably
have to change something else to cause the instruction to be
generated.
Ian