|
Message
From: Damjan Lampret<lampret@o...>
Date: Fri Jan 30 10:57:45 CET 2004
Subject: [openrisc] instruction set problem on openrisc
There is l.mac in the current insn set, but it doesn't get generated by the compiler. I tried twice to have it generated by compiler and compiler just didn't want to emit the l.mac insn. If somebody else can figure out how to generated it directly with the compiler (in the or32.md machine description file) it would be great.
regards, Damjan
----- Original Message ----- From: "Robert Cragie" <rcc@j...> To: "List about OpenRISC project" <openrisc@o...> Sent: Friday, January 30, 2004 9:27 AM Subject: RE: [openrisc] instruction set problem on openrisc
> I think Marko was suggesting that when you have implemented your own custom > multiply-accumulate in your own special version of the CPU, you can access > it from C code by using a #define. In this way, you don't have to modify the > compiler. As you rightly say, there is no MAC instruction in the current > instruction set. > Robert Cragie, Design Engineer > _______________________________________________________________ > Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK > http://www.jennic.com Tel: +44 (0) 114 281 2655 > _______________________________________________________________ > > -----Original Message----- > From: openrisc-bounces@o... > [mailto:openrisc-bounces@o...]On Behalf Of li stephen > Sent: 30 January 2004 03:28 > To: List about OpenRISC project > Subject: Re: [openrisc] instruction set problem on openrisc > > > Hi Marko, > Thank you for the advice. > I put the the statement,#define MAC(x,y), into my source code. > But it seems that there is not multiply-accumulate instruction in the asm > code. Did I do anything wrong? Can you give more details on it? Thank you > very much. > > Regards, > > Stephen > > Marko Mlinar <markom@o...> wrote: > > > One more question, If I want to add custom instruction set e.g. > > > multiply - accumulate in to the openrisc, is there any easy way to > make > > > the complier to generate the instruction set except modifying the > > > compiler? > > > > That;s the only way. You have to modify compiler to generate your > custom > > insns. > You can also make #define MAC(x,y), which will generate via asm > statement > "word 0xblabla" instruction. > > > Marko > > > _______________________________________________ > http://www.opencores.org/mailman/listinfo/openrisc > > > > Shining Friends¡B¦n¤ß¦n³ø¡B·³¤ë¦pºq... > ®öº©¹aÁn ±¡¤ß³sô > http://ringtone.yahoo.com.hk/ > >
---------------------------------------------------------------------------- ----
> _______________________________________________ > http://www.opencores.org/mailman/listinfo/openrisc
|
 |