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


i'm afraid so. i add a new rtl expression in rtl.def. and when i add a
new define_insn
 section in i386.md, it said the instruction is undefined. 



On 13 Jan 2005 22:21:07 -0500, Ian Lance Taylor <ian@airs.com> wrote:
> 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]