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

Re: how to add new instruction


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


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